Home arrow Journal arrow PF Firewall Quick Tips
PF Firewall Quick Tips PDF
Wednesday, 13 August 2014
Here are some quick tips for PF firewall.

See info about PF Tables:

  pfctl -vvsTables

Show IPs from a PF table:

  pfctl -T show -t blocklist

If you modify a table you should reload PF:

  pfctl -f /etc/pf.conf

To show all main and anchor rules run:

  pfctl -a '*' -sr

List redirects and rules for ftp-proxy anchor:

  pfctl -a ftp-proxy -sr

See PF rules:

  pfctl -vvsr

Debug PF with tcpdump (will show logs for rules that contain log tag):

  tcpdump -n -e -ttt -i pflog0

Find if PF is enabled (see first line from next command output):

  pfctl -si

Last Updated ( Wednesday, 13 August 2014 )
< Prev   Next >

Other BSD Systems





Best BSD firewall?