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 1.2.3.4
# pfctl -t blockedips -T delete 1.2.3.4

// 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

(required)
(will not be published, required)

* Copy this password:

* Type or paste password here:






Archives