2 .\" To view license terms, attribution, and copyright for IP Filter, the default path is /usr/lib/ipf/IPFILTER.LICENCE. If the Solaris operating environment has been installed anywhere other than the default, modify the given path to access the file at the installed
4 .\" Portions Copyright (c) 2008, Sun Microsystems Inc. All Rights Reserved.
5 .TH IPFS 1M "Apr 3, 2008"
7 ipfs \- saves and restores information for NAT and state tables
11 \fBipfs\fR [\fB-nv\fR] \fB-l\fR
16 \fBipfs\fR [\fB-nv\fR] \fB-u\fR
21 \fBipfs\fR [\fB-nv\fR] [\fB-d\fR \fIdirname\fR] \fB-R\fR
26 \fBipfs\fR [\fB-nv\fR] [\fB-d\fR \fIdirname\fR] \fB-W\fR
31 \fBipfs\fR [\fB-nNSv\fR] [\fB-f\fR \fIfilename\fR] \fB-r\fR
36 \fBipfs\fR [\fB-nNSv\fR] [\fB-f\fR \fIfilename\fR] \fB-w\fR
41 \fBipfs\fR [\fB-nNSv\fR] \fB-f\fR \fIfilename\fR \fB-i\fR \fI<if1>\fR,\fI<if2>\fR
47 The \fBipfs\fR utility enables the saving of state information across reboots.
48 Specifically, the utility allows state information created for NAT entries and
49 rules using "keep state" to be locked (modification prevented) and then saved
50 to disk. Then, after a reboot, that information is restored. The result of this
51 state-saving is that connections are not interrupted.
55 The following options are supported:
62 Change the default directory used with \fB-R\fR and \fB-W\fR options for saving
72 Do not take any action that would affect information stored in the kernel or on
82 Provides a verbose description of \fBipfs\fR activities.
91 Operate on NAT information.
100 Operate on filtering state information.
109 Unlock state tables in the kernel.
118 Lock state tables in the kernel.
127 Read information in from the specified file and load it into the kernel. This
128 requires the state tables to have already been locked and does not change the
138 Write information out to the specified file and from the kernel. This requires
139 the state tables to have already been locked and does not change the lock once
149 Restores all saved state information, if any, from two files, \fBipstate.ipf\fR
150 and \fBipnat.ipf\fR, stored in the \fB/var/db/ipf\fR directory. This directory
151 can be changed with the \fB-d\fR option. The state tables are locked at the
152 beginning of this operation and unlocked once complete.
161 Saves in-kernel state information, if any, out to two files, \fBipstate.ipf\fR
162 and \fBipnat.ipf\fR, stored in the \fB/var/db/ipf\fR directory. This directory
163 can be changed with the \fB-d\fR option. The state tables are locked at the
164 beginning of this operation and unlocked once complete.
172 \fB/var/db/ipf/ipstate.ipf\fR
178 \fB/var/db/ipf/ipnat.ipf\fR
201 See \fBattributes\fR(5) for descriptions of the following attributes:
209 ATTRIBUTE TYPE ATTRIBUTE VALUE
211 Interface Stability Committed
217 \fBipf\fR(1M), \fBipmon\fR(1M), \fBipnat\fR(1M), \fBattributes\fR(5)
221 Arguably, the \fB-W\fR and \fB-R\fR operations should set the locking and,
222 rather than undo it, restore it to what it was previously.
225 Fragment table information is currently not saved.