From owner-cvs-all Tue Feb 13 10:48:25 2001 Delivered-To: cvs-all@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id EFE2737B4EC; Tue, 13 Feb 2001 10:48:20 -0800 (PST) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.11.1) with ESMTP id f1DImHw52788; Tue, 13 Feb 2001 19:48:17 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Luigi Rizzo Cc: imp@harmony.village.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/netinet ip_fw.c ip_fw.h src/sbin/ipfw ipfw.8 ipfw.c In-Reply-To: Your message of "Tue, 13 Feb 2001 10:41:09 PST." <200102131841.f1DIfEJ31419@iguana.aciri.org> Date: Tue, 13 Feb 2001 19:48:17 +0100 Message-ID: <52786.982090097@critter> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200102131841.f1DIfEJ31419@iguana.aciri.org>, Luigi Rizzo writes: >> > In message <52435.982085938@critter> Poul-Henning Kamp writes: >> > : A forwarded packet would encounter three lists of rules: >> > : >> > : Input list on arrival interface >> > : forwarding list >> > : Output list on departure interface >> > >> > That would make my life easier here. Right now I have a shell script >> > with nested for loops to prevent bogus packets coming in (and no >> > filtering at all going out). When there's 8 interfaces, it gets ugly >> > fast. >> >> What you would actually need is a rule (which to the best >> of my knowledge does not exist now) that lets you check >... and my knowledge proved to be wrong: > > ipfw add ... out recv any > ^^^^^^^^^^^^ > >does what i wanted. So you can jump to your "forwarding list" >with a rule like > > ipfw add skipto 10000 ip from any to any out recv any > >and have code your access-list 10000 as your forwarding ruleset. I still think having separate lists, with well defined insert points would make it a lot easier for people. I generally meet a lot of people who have trouble with the fact that a forwarded packet gets filteret twice... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message