#### General PFCTL Commands ####$pfctl-ddisable# packet-filtering$pfctl-eenable# packet-filtering$pfctl-q# run quiet$pfctl-v-v# run even more verbose#### Loading PF Rules ####$pfctl-f/etc/pf.conf# load /etc/pf.conf$pfctl-n-f/etc/pf.conf# parse /etc/pf.conf, but dont load it$pfctl-R-f/etc/pf.conf# load only the FILTER rules$pfctl-N-f/etc/pf.conf# load only the NAT rules$pfctl-O-f/etc/pf.conf# load only the OPTION rules#### Clearing PF Rules & Counters ####$pfctl-Fall# flush ALL (note: flushing rules do not touch any existing stateful connections)$pfctl-Frules# flush only the RULES$pfctl-Fqueue# flush only queue’s$pfctl-Fnat# flush only NAT$pfctl-Finfo# flush all stats that are not part of any rule.$pfctl-zclear# all counters#### Output PF Information ####$pfctl-srules# show filter information$pfctl-v-srules# show filter information for what FILTER rules hit..$pfctl-vvsr# show filter information as above and prepend rule numbers$pfctl-v-snat# show NAT information, for which NAT rules hit..$pfctl-snat-ixl1# show NAT information for interface xl1$pfctl-squeue# show QUEUE information$pfctl-slabel# show LABEL information$pfctl-sstate# show contents of the STATE table$pfctl-sinfo# show statistics for state tables and packet normalization$pfctl-sall# show everything#### Maintaining PF Tables ####$pfctl-taddvhosts-T# show show table addvhosts$pfctl-vvsTables# view global information about all tables$pfctl-taddvhosts-Tadd192.168.1.50# add entry to table addvhosts$pfctl-taddvhosts-Tadd192.168.1.0/16# add a network to table addvhosts$pfctl-taddvhosts-Tdelete192.168.1.0/16# delete nework from table addvhosts$pfctl-taddvhosts-Tflush# remove all entries from table addvhosts$pfctl-taddvhosts-Tkill# delete table addvhosts entirely$pfctl-taddvhosts-Treplace-f/etc/addvhosts# reload table addvhosts on the fly$pfctl-taddvhosts-Ttest192.168.1.40# find ip address 192.168.1.40 in table addvhosts$pfctl-Tload-f/etc/pf.conf# load a new table definition$pfctl-taddvhosts-Tshow-v# output stats for each ip address in table addvhosts$pfctl-taddvhosts-Tzero# reset all counters for table addvhosts