From owner-freebsd-ipfw@FreeBSD.ORG Tue Aug 17 21:07:19 2004 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71B6716A4CE for ; Tue, 17 Aug 2004 21:07:19 +0000 (GMT) Received: from parati.mdbrasil.com.br (parati.mdbrasil.com.br [200.210.70.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 421D443D1D for ; Tue, 17 Aug 2004 21:07:18 +0000 (GMT) (envelope-from eksffa@freebsdbrasil.com.br) Received: (qmail 63008 invoked by uid 0); 17 Aug 2004 21:08:04 -0000 Received: from eksffa@freebsdbrasil.com.br by parati.mdbrasil.com.br by uid 82 with qmail-scanner-1.20rc1 (uvscan: v4.1.60/v4288. Clear:RC:1:. Processed in 0.086536 secs); 17 Aug 2004 21:08:04 -0000 Received: from unknown (HELO freebsdbrasil.com.br) (200.166.90.226) by parati.mdbrasil.com.br with SMTP; 17 Aug 2004 18:08:04 -0300 Message-ID: <4122738D.1020607@freebsdbrasil.com.br> Date: Tue, 17 Aug 2004 18:07:25 -0300 From: Patrick Tracanelli Organization: FreeBSD Brasil LTDA User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030524 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kelly Yancey References: <4120DA69.8080609@freebsdbrasil.com.br> <20040817125600.I2020@gateway.posi.net> In-Reply-To: <20040817125600.I2020@gateway.posi.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: ipfw@freebsd.org cc: Dario Basso Cardoso Subject: Re: FWD under bridged enviroment... X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2004 21:07:19 -0000 Right; I have checked it is really not fwding (ok should have done it before posting)... case O_FORWARD_IP: if (args->eh) /* not valid on layer2 pkts */ break; if (!q || dyn_dir == MATCH_FORWARD) args->next_hop = &((ipfw_insn_sa *)cmd)->sa; retval = 0; goto done; I considered there was a chance it would already work, since the fwd rule counts packets. Kelly, I remember you said once that you had modified the code in a different way Luigi had done and posted here (Rizzo's patch for revision); I considere patching ip_fw2.c and ip_input.c to get it working, where can I find your patches to read it? I want to see the two ways it was done :} Btw, (maybe Rizzo can comment) what's the reason it has not been commited when the patch was posted? :) It's a feature that is usually discussed (probably, maybe I should check the lists history before saying so, but I remember it got on topic a number times before...). Thanks :) > I believe I've mentioned having code to implement fwd for IPv4 packets > filtered from ether_input (net.link.ether.ipfw=1). Unfortunately, the > patches are against 4.10. If someone else doesn't implement it before > then, I plan on porting the functionality to 6-current (and then backport > to 5-stable) after 5.3 is released. > > Kelly > -- Atenciosamente, Patrick Tracanelli FreeBSD Brasil LTDA. The FreeBSD pt_BR Documentation Project http://www.freebsdbrasil.com.br patrick @ freebsdbrasil.com.br "Long live Hanin Elias, Kim Deal!"