NAME

pfs - saves and restores information for NAT and state tables.

SYNOPSIS

pfs [-v] -l pfs [-v] -u pfs [-v] [-b] -w filename pfs [-v] [-b] -r filename pfs [-v] [-b] -R filename pfs [-v] [-b] -W filename

DESCRIPTION

The pfs command allows state information created for NAT entries and rules using keep state to be locked (modification prevented) and then saved to disk, allowing for the system to experience a reboot, followed by the restoration of that information, resulting in connections not being interrupted.

OPTIONS

-b
The information are read or stored using binary format. The default format is a readable ascii format, similar to pfctl.conf syntax.

-v
Provides a verbose description of what's being done.

-u
Unlock state tables in the kernel.

-l
Lock state tables in the kernel.

-r
Read information in from the specified file and load it into the kernel. This requires the state tables to have already been locked and does not change the lock once complete.

-w
Write information out to the specified file and from the kernel. This requires the state tables to have already been locked and does not change the lock once complete.

-R
Restores information in from the specified file and load it into the kernel. The state tables are locked at the beginning of this operation and unlocked once complete.

-W
Write information out to the specified file and from the kernel. The state tables are locked at the beginning of this operation and unlocked once complete.

FILES

/dev/pf

SEE ALSO

pf(4)