Author: Yuri Slobodyanyuk, [email protected]
Command | Description |
---|---|
pfct -d |
Disable PF in place, does not survive reboot. |
pfctl -ef /etc/pf.conf |
Enable PF and load the rule set from file |
pfctl -nf /etc/pf.conf |
Parse security rules stored in a file without installing them (dry run). |
pfctl -F <all/rules/nat/states> |
Flush, accordingly:
|
pfct -k <source IP of connection to clear> [-k <destination>] |
Kill an active connection from the state table. You can specify IP address as the 1st selector to the 1st |
pfctl -z |
Clear all per rule statistics/counters |
pass in quick on egress from 62.13.77.141 to any |
'Quick' rule, means allow this traffic to pass through on all interfaces, otherwise we would need 2nd rule allowing this traffic in outgoing direction on egress interface, to allow destined to ANY port/protocol with the source being |