PF, The OpenBSD Packet Filter: Building The Network You Need: BSDCan, Ottawa, June 10th 2015 | ||
---|---|---|
Prev | Next |
/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 pass proto udp to any port $udp_services
NOTE: Default to deny, enable only the stuff we need
- load your new rules
$ sudo pfctl -f /etc/pf.conf
for syntax check only:
$ sudo pfctl -nf /etc/pf.conf
Note: only valid rule sets load, flushing rarely makes sense