From owner-freebsd-questions@FreeBSD.ORG Sun May 8 10:22:27 2005 Return-Path: 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 077CC16A4E1 for ; Sun, 8 May 2005 10:22:27 +0000 (GMT) Received: from webmail-outgoing.us4.outblaze.com (webmail-outgoing.us4.outblaze.com [205.158.62.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id D89B943D8D for ; Sun, 8 May 2005 10:22:26 +0000 (GMT) (envelope-from fteg@london.com) Received: from unknown (unknown [192.168.9.180])5E1CD1800120 for ; Sun, 8 May 2005 10:22:26 +0000 (GMT) X-OB-Received: from unknown (205.158.62.49) by wfilter.us4.outblaze.com; 8 May 2005 10:22:26 -0000 Received: by ws1-1.us4.outblaze.com (Postfix, from userid 1001) id 5380B4BEAD; Sun, 8 May 2005 10:22:26 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [213.187.181.70] by ws1-1.us4.outblaze.com with http for fteg@london.com; Sun, 08 May 2005 05:22:26 -0500 From: "Fafa Hafiz Krantz" To: questions@freebsd.org Date: Sun, 08 May 2005 05:22:26 -0500 X-Originating-Ip: 213.187.181.70 X-Originating-Server: ws1-1.us4.outblaze.com Message-Id: <20050508102226.5380B4BEAD@ws1-1.us4.outblaze.com> Subject: PF RULES! But mine doesn't ... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 10:22:27 -0000 Hello. My ruleset is all twisted. Unless I disable the default deny policy, this is what happens: * My nameserver setup goes disfunctional. * My web, mail and fileserver goes disfunctional. * I cannot SSH and FTP into certain servers. * I cannot ping my IP from the outside. Can anyone tell what's wrong? And maybe also how I can simplify my ruleset? int_if=3D"ep0" ext_if=3D"lnc0" # *** Options # set block-policy drop # *** Scrub incoming packets # scrub in all # *** NAT # nat on $ext_if from $int_if:network to any -> ($ext_if) rdr on $int_if proto tcp from any to any \ port 21 -> 127.0.0.1 port 8021 # *** Default deny policy # # block drop log all # *** Pass loopback traffic # pass quick on { lo0 $int_if } # *** Outgoing # pass out on $ext_if inet proto { tcp, udp, icmp } \ from ($ext_if) to any keep state # *** Bootstrap # pass out on $ext_if inet proto udp \ from any port 68 to any port 67 keep state # *** DNS and NTP # pass out on $ext_if inet proto udp \ from ($ext_if) to any port { 53, 123 } keep state # *** SSH, HTTP and Ident # pass in on $ext_if inet proto tcp \ from any to ($ext_if) port { 22, 80, 113 } flags S/SA keep state # *** Active FTP # pass in on $ext_if inet proto tcp \ from port 20 to ($ext_if) user proxy flags S/SA keep state Thank you so much. Keep in touch! -- Fafa Hafiz Krantz Research Designer @ http://www.bleed.no --=20 ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm