From owner-freebsd-ipfw Mon Oct 9 13:10:29 2000 Delivered-To: freebsd-ipfw@freebsd.org Received: from jade.chc-chimes.com (jade.chc-chimes.com [216.28.46.6]) by hub.freebsd.org (Postfix) with ESMTP id 029C037B66D for ; Mon, 9 Oct 2000 13:10:28 -0700 (PDT) Received: by jade.chc-chimes.com (Postfix, from userid 1001) id 7C8811C64; Mon, 9 Oct 2000 16:10:27 -0400 (EDT) Date: Mon, 9 Oct 2000 16:10:27 -0400 From: Bill Fumerola To: achilov@granch.ru Cc: freebsd-ipfw@freebsd.org Subject: Re: FWD rules Message-ID: <20001009161027.M38472@jade.chc-chimes.com> References: <39E1A709.CAC1A5B7@sentry.granch.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <39E1A709.CAC1A5B7@sentry.granch.ru>; from shelton@sentry.granch.ru on Mon, Oct 09, 2000 at 06:07:53PM +0700 X-Operating-System: FreeBSD 3.3-STABLE i386 Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Oct 09, 2000 at 06:07:53PM +0700, Rashid N. Achilov wrote: > When the packet match the "fwd" rule, search terminates or to it apply > next rules? (I still about my problem...) case IP_FW_F_FWD: if (next_hop != NULL /* Make sure, first... */ && (q == NULL || direction == MATCH_FORWARD) ) *next_hop = &(f->fw_fwd_ip); return(0); /* Allow the packet */ Packet is manipulated and then allowed. The result of the manipulation is that it gets forwarded. So the answer is "the search terminates". -- Bill Fumerola - Network Architect, BOFH / Chimes, Inc. billf@chimesnet.com / billf@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message