Home > Security > Frequently used pf commands

Frequently used pf commands

November 9, 2013 Posted by KP

For my own convenience due to bad memory: (valid only with this article)

// Add or remove IP/subnet
# pfctl -t blockedips -T add
# pfctl -t blockedips -T delete

// Flush all NAT, filter, state, and table rules and reload /etc/pf.conf.
# pfctl -F all -f /etc/pf.conf

// View all IP address listed in tables
# pfctl -t blockedips -T show

// View statistics for each IP/CIDR
# pfctl -t blockedips -T show -v

Related Posts:

Filed Under: Security

Leave a Comment

(will not be published, required)

* Copy this password:

* Type or paste password here: