First question is about the non-routable / reserved address spaces.
Are _ALL_ of them needed or just the four mentioned in the pf manual?

# Block all inbound traffic from non-routable or reserved address spaces
# RFC 1918 private IP
block in quick on rl0 from 192.168.0.0/16 to any
block in quick on rl0 from 172.16.0.0/12 to any
block in quick on rl0 from 10.0.0.0/8 to any
# loopback
block in quick on rl0 from 127.0.0.0/8 to any
block in quick on rl0 from 0.0.0.0/8 to any
# DHCP auto-config
block in quick on rl0 from 169.254.0.0/16 to any
# reserved for docs
block in quick on rl0 from 192.0.2.0/24 to any
# SUN cluster interconnect
block in quick on rl0 from 204.152.64.0/23 to any
# Class D & E multicast
block in quick on rl0 from 224.0.0.0/3 to any

The manual of pf only writes about:

priv_nets = "{ 127.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 }"

It's my guess I can leave them out _OR_ I include them in $priv_nets.
If I do that the rule becomes very large.

Second question: can I rewrite the pf.conf rule (with a "\") like this:

priv_nets = "{ 127.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 \
  0.0.0.0/8, 169.254.0.0/16, 102.0.2.0/24, 204.152.64.0/23,
224.0.0.0/3 }"

-- 
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.11-stable ++ FreeBSD 5.4
+ Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to