From owner-freebsd-stable@FreeBSD.ORG Tue Oct 3 06:38:09 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0154416A49E for ; Tue, 3 Oct 2006 06:38:09 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98CD443D4C for ; Tue, 3 Oct 2006 06:38:08 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 21193 invoked from network); 3 Oct 2006 16:38:07 +1000 Received: from andromeda.lef.com.au (HELO localhost) (210.8.93.2) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 3 Oct 2006 16:38:07 +1000 Date: Tue, 3 Oct 2006 16:38:04 +1000 From: Norberto Meijome To: Matt Herzog Message-ID: <20061003163804.1dbce904@localhost> In-Reply-To: <20061001003028.GK13429@mail.blisses.org> References: <20061001003028.GK13429@mail.blisses.org> X-Mailer: Sylpheed-Claws 2.5.2 (GTK+ 2.8.20; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: ipfilter nat w/IPFILTER_DEFAULT_BLOCK kernel X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 06:38:09 -0000 On Sat, 30 Sep 2006 20:30:28 -0400 Matt Herzog wrote: > As the Subject states, I'm trying to get a FreeBSD 6.1 on sparc64 to be a > firewall/gateway/nat machine using a IPFILTER_DEFAULT_BLOCK kernel. > (hme0 is the external NIC. hme1 is the internal NIC.) > > If I remove the line: > > pass in quick on hme0 all > > none of the machines inside the NAT can reach the Internet although I can > still ssh into the firewall/gateway machine from inside the NAT. > i.e. NAT breaks without "pass in quick on hme0 all" I haven't read all your config...but i think the problem you are having is that you are either blocking ALL traffic to hme0 (by removing the 'allow all'), or allowing all (including external traffic! ) with 'pass in quick on hme0 all'. You need to be more specific about what you allow in and out. Read the following and you'll get a better understanding of how it works. Howto : http://www.obfuscation.org/ipf/ipf-howto.pdf : http://www.nwo.net/ipf/ipf-howto.html (html format of the pdf) > > "pass in quick on hme0 all" pretty obviously defeats the purpose of the > IPFILTER_DEFAULT_BLOCK kernel so I'm trying to figure out a rule set that > will work with NAT. well, yes, you are not supposed to open your firewall completely - just enough to allow you to do whatever you want :) Good luck, B _________________________ {Beto|Norberto|Numard} Meijome Sysadmins can't be sued for malpractice, but surgeons don't have to deal with patients who install new versions of their own innards. I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.