Przejdลบ do treล›ci

๐Ÿงฑ PF Firewall

PF is FreeBSDโ€™s packet filter.


๐Ÿ”ง Enable PF

1
2
/etc/rc.conf:
pf_enable="YES"

๐Ÿงฉ Rules

1
2
3
block in all
pass out all
pass in on em0 proto tcp to port 22

๐Ÿ”ง Apply Rules

1
2
pfctl -f /etc/pf.conf
pfctl -sr