• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

LICENSEH A D31-Jul-20161.3 KiB2519

README.mdH A D31-Jul-2016787 1813

pftablesH A D31-Jul-20162.6 KiB8433

README.md

1pftables
2========
3
4Minimal rc script to save / restore pf tables to / from disk upon reboots
5
6While the [FreeBSD Handbook on pf](https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-pf.html) explains the simple steps necessary to make pf tables survive a reboot, it does not point to an already existing script.
7This rc script provides a minimum solution.
8It expects the following variables to be set in /etc/rc.conf:
9
10```
11pftables_enable="YES"
12pftables_list="NameOfTable1 NameOfTable2 NameOfTable3" # ...and so on
13pftables_dir="/path/to/existing/dir/where/tables/should/be/stored"
14```
15
16The tables mentioned in `pftables_list` are the same names as in pf.conf.
17The script will then save all the mentioned tables upon system shutdown and restore them upon system startup.
18