From owner-freebsd-questions@FreeBSD.ORG Thu Aug 4 19:16:32 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9CC216A41F for ; Thu, 4 Aug 2005 19:16:32 +0000 (GMT) (envelope-from dick@nagual.st) Received: from nagual.st (cc20684-a.assen1.dr.home.nl [82.74.2.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9846C43D5D for ; Thu, 4 Aug 2005 19:16:31 +0000 (GMT) (envelope-from dick@nagual.st) Received: from pooh.nagual.st (pooh.nagual.st [192.168.11.22]) by nagual.st with esmtp; Thu, 04 Aug 2005 21:16:28 +0200 id 00000024.42F2698C.00000CFB Date: Thu, 4 Aug 2005 21:16:47 +0200 From: dick hoogendijk To: fbsdq Message-Id: <20050804211647.734d3360.dick@nagual.st> Organization: de nagual X-Mailer: Sylpheed version 2.0.0 (GTK+ 2.6.9; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: two pf questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2005 19:16:32 -0000 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