Pfctl Konsole

Aus Xinux Wiki
Version vom 21. Juni 2022, 10:49 Uhr von Thomas.will (Diskussion | Beiträge) (→‎reset all states)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Shortview

pf deactivate

  • pfctl -d

pf activate

  • pfctl -e

read rules from another directory

  • pfctl -ef /home/thomas/pf.conf

load default-rules

  • pfctl -f /etc/pf.conf

short state info

  • pfctl -s info

detailinfo to every rule

  • pfctl -vs info

show firewall rules

  • pfctl -sr

show NAT rules

  • pfctl -sn

show all

  • pfctl -sa

states

  • pfctl -s state

oder

  • pftop

reset all states

  • pfctl -F state

reset some states

  • pfctl -k x.x.x.x
  • pfctl -k 0.0.0.0/0 -k x.x.x.x