Is x.x.x the same as xxx?
30.5.3. Example Ruleset
Instead of www, I should write http in pf.conf?
30.3.2. PF Rulesets
# Allow outbound access to public DNS servers.
# Replace x.x.x. with address listed in /etc/resolv.conf.
# Repeat for each DNS server.
pass out quick on dc0 proto tcp from any to x.x.x. port = 53 flags S keep state
pass out quick on dc0 proto udp from any to xxx port = 53 keep state
30.5.3. Example Ruleset
Instead of www, I should write http in pf.conf?
PF understands port names as well as port numbers, as long as the names are listed in /etc/services.
Code:
tcp_services = "{ ssh, smtp, domain, www, pop3, auth, pop3s }"
udp_services = "{ domain }"
Code:
root@FreeBSD:~ # less /etc/services | grep www
# http://www.iana.org/assignments/port-numbers
http 80/sctp www www-http #World Wide Web HTTP
http 80/tcp www www-http #World Wide Web HTTP
http 80/udp www www-http #World Wide Web HTTP
30.3.2. PF Rulesets