From owner-freebsd-net Sun May 7 22:49:44 2000 Delivered-To: freebsd-net@freebsd.org Received: from juice.shallow.net (node16229.a2000.nl [24.132.98.41]) by hub.freebsd.org (Postfix) with ESMTP id E250637B924 for ; Sun, 7 May 2000 22:49:26 -0700 (PDT) (envelope-from joshua@roughtrade.net) Received: from localhost (joshua@localhost) by juice.shallow.net (8.9.3/8.9.3) with ESMTP id HAA25992; Mon, 8 May 2000 07:50:09 +0200 (CEST) (envelope-from joshua@roughtrade.net) Date: Mon, 8 May 2000 07:50:09 +0200 (CEST) From: Joshua Goodall To: Jan Koum Cc: freebsd-net@FreeBSD.ORG Subject: Re: possible /etc/rc.firewall bug? In-Reply-To: <20000507163857.A92100@ethereal.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org hi Jan ... You may be comfortable fixing it yourself - but other readers of this list may not, and these *are* related issues. I agree that the inadequacies of rc.firewall+natd have been highlighted often enough that a fix should've been committed long ago. Anyone committers listening to this thread? - joshua On Sun, 7 May 2000, Jan Koum wrote: > > i don't need a fix that works for me -- i can figure out how to make > things work. i'd like someone to commit change i describe below (either > giving natd rule assignment of 50 or going away from numbers all together > in rc.firewall and let ipfw do internal number assignments) > > it's a very simple fix. i don't know why nobody commited it yet. > > > On Sun, May 07, 2000 at 05:00:20PM +0200, Joshua Goodall wrote: > > > > This is a "known problem". Since the implications compromise natd > > security, it should have been fixed. However, it isn't in the latest > > 4.0-STABLE. > > > > There is a potential fix that may work for you. See > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=13769 > > > > but beware the warnings about making your firewall "weak". The resulting > > firewall ruleset should provide a basis for a stronger configuration. > > > > -- > > Joshua Goodall > > IP Systems Engineer - InterXion - http://www.InterXion.com/ > > > > On Sat, 6 May 2000, Jan Koum wrote: > > > > > > > > i just noticed something. if you setup natd and ipfw, you end up with: > > > > > > # ipfw -a l > > > 00100 677369 166815520 divert 8668 ip from any to any via ed0 > > > 00100 397358 45078874 allow ip from any to any via lo0 > > > 00200 0 0 deny ip from any to 127.0.0.0/8 > > > 65000 1709011 373169093 allow ip from any to any > > > 65535 0 0 deny ip from any to any > > > > > > two rules with number 100 -- i suggest moving divert rule to 50 by changing > > > > > > ${fwcmd} add divert natd all from any to any via ${natd_interface} > > > > > > to: > > > > > > ${fwcmd} add 50 divert natd all from any to any via ${natd_interface} > > > > > > > > > of course another way to do this is to remove #'s from following rules: > > > ${fwcmd} add 100 pass all from any to any via lo0 > > > ${fwcmd} add 200 deny all from any to 127.0.0.0/8 > > > > > > > > > thanks, > > > > > > -- yan > > > > > > > > > p.s. - this is 4.0 box with rc.firewall: > > > # $FreeBSD: src/etc/rc.firewall,v 1.30 2000/02/06 19:24:37 paul Exp $ > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-net" in the body of the message > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message