New to FreeBSD and PF. How do I reload my pf rules after making changes to the anchor file or
I usually go
I've also tried
And also tried
Is there any best practice for production environments? What are the implications of each option?
pf.conf?I usually go
pfctl -a my.anchor -Fr or simply pfctl -Fr (I guess -a is for when you have more than one anchor and you only want to flush one of them, correct? And pfctl -Fr would flush all anchors referenced in the pf.conf file?):
Code:
-F modifier
Flush the filter parameters specified by modifier (may be
abbreviated) [...]
-F rules Flush the filter rules.
I've also tried
pfctl -f /etc/pf.conf and it worked as well:
Code:
-f file
Load the rules contained in file. This file may contain macros,
tables, options, and normalization, queueing, translation, and
filtering rules. With the exception of macros and tables, the
statements must appear in that order.
And also tried
service pf reload and it worked as well.Is there any best practice for production environments? What are the implications of each option?