Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
LICENSE | H A D | 31-Jul-2016 | 1.3 KiB | 25 | 19 | |
README.md | H A D | 31-Jul-2016 | 787 | 18 | 13 | |
pftables | H A D | 31-Jul-2016 | 2.6 KiB | 84 | 33 |
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