How can I see the full PF ruleset

From PFSenseDocs
Jump to: navigation, search


Summary

I would like to see the firewall rules in their natural command line output, how can I see this?

Solution

In the SSH console or Execute Shell Command field in the GUI, run the following:

# Show Firewall Rules:
pfctl -sr
# Show NAT rules
pfctl -sn
# Show all
pfctl -sa

For more verbose output including rule counters, ID numbers, and so on, use:

pfctl -vvsr