From owner-freebsd-questions@FreeBSD.ORG Wed Mar 31 11:44:23 2004 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 849E116A4CE for ; Wed, 31 Mar 2004 11:44:23 -0800 (PST) Received: from point1.weat.node.easybow.net (unknown [62.177.138.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D4D743D2D for ; Wed, 31 Mar 2004 11:44:23 -0800 (PST) (envelope-from apost@high-low.net) Received: from localhost (localhost [127.0.0.1]) by point1.weat.node.easybow.net (Postfix) with ESMTP id 9F4C88A09E; Wed, 31 Mar 2004 21:44:21 +0200 (CEST) Received: from point1.weat.node.easybow.net ([127.0.0.1])port 10024) with ESMTP id 44341-08; Wed, 31 Mar 2004 21:44:18 +0200 (CEST) Received: from remote.high-low.net (localhost [127.0.0.1]) by point1.weat.node.easybow.net (Postfix) with ESMTP id C108E8A083; Wed, 31 Mar 2004 21:44:17 +0200 (CEST) From: Andre Post To: Prodigy In-Reply-To: <003f01c4174d$c38ffa50$6900a8c0@prodigy> References: <003f01c4174d$c38ffa50$6900a8c0@prodigy> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-11) Date: 31 Mar 2004 21:44:25 +0200 Message-Id: <1080762266.1094.6.camel@remote.high-low.net> Mime-Version: 1.0 cc: freebsd-questions Subject: Re: problems with ipfw + natd rules 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: Wed, 31 Mar 2004 19:44:23 -0000 On Wed, 2004-03-31 at 20:27, Prodigy wrote: > ${fwcmd} add 400 pass tcp from any 22,80,110,119,143,443,3306,5190,6667-7000 > to any via rl1 > ${fwcmd} add 500 pass tcp from any to any > 22,80,110,119,143,443,3306,5190,6667-7000 via rl1 > > When I comment out 400 and 500 rules and add "allow all from any to any via > rl1" it's all ok. The problem is somewhere in 400 and 500 rules. Those lines (400 and 500) sure look like they could cause trouble. Try chopping them up per port number/range across multiple lines. ipfw and natd are nice for the quick-and-dirty setups, but if you need something more predictable, configurable, and debuggable....switch to ipfilter and ipnat. You'll find yourself very much in control over your firewall/nat environment. Andre