Litt strengere

/etc/pf.conf

tcp_services = "{ ssh, smtp, domain, www, pop3, auth, pop3s }"
udp_services = "{ domain }"

block all
pass out proto tcp to any port $tcp_services keep state
pass proto udp to any port $udp_services keep state

- laste de nye reglene

$ sudo pfctl -f /etc/pf.conf

bare syntakssjekk:

$ sudo pfctl -nf /etc/pf.conf