1 .\" $NetBSD: ipfs.8,v 1.5 2004/03/28 12:56:41 wiz Exp $
5 ipfs \- saves and restores information for NAT and state tables.
45 \fBipfs\fP allows state information created for NAT entries and rules using
46 \fIkeep state\fP to be locked (modification prevented) and then saved to disk,
47 allowing for the system to experience a reboot, followed by the restoration
48 of that information, resulting in connections not being interrupted.
52 Change the default directory used with
56 options for saving state information.
59 Don't actually take any action that would affect information stored in
60 the kernel or on disk.
63 Provides a verbose description of what's being done.
65 .B \-i <ifname1>,<ifname2>
66 Change all instances of interface name ifname1 in the state save file to
67 ifname2. Useful if you're restoring state information after a hardware
68 reconfiguration or change.
71 Operate on NAT information.
74 Operate on filtering state information.
77 Unlock state tables in the kernel.
80 Lock state tables in the kernel.
83 Read information in from the specified file and load it into the
84 kernel. This requires the state tables to have already been locked
85 and does not change the lock once complete.
88 Write information out to the specified file and from the kernel.
89 This requires the state tables to have already been locked
90 and does not change the lock once complete.
93 Restores all saved state information, if any, from two files,
94 \fIipstate.ipf\fP and \fIipnat.ipf\fP, stored in the \fI/var/db/ipf\fP
95 directory unless otherwise specified by the
97 option. The state tables are locked at the beginning of this
98 operation and unlocked once complete.
101 Saves in-kernel state information, if any, out to two files,
102 \fIipstate.ipf\fP and \fIipnat.ipf\fP, stored in the \fI/var/db/ipf\fP
103 directory unless otherwise specified by the
105 option. The state tables are locked at the beginning of this
106 operation and unlocked once complete.
109 /var/db/ipf/ipstate.ipf
111 /var/db/ipf/ipnat.ipf
119 ipf(8), ipl(4), ipmon(8), ipnat(8)
122 Perhaps the -W and -R operations should set the locking but rather than
123 undo it, restore it to what it was previously. Fragment table information
124 is currently not saved.
127 If you find any, please send email to me at darrenr@pobox.com