From owner-freebsd-net@FreeBSD.ORG Sat Jan 17 10:25:04 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67D2416A4CE; Sat, 17 Jan 2004 10:25:04 -0800 (PST) Received: from ftp.bjpu.edu.cn (ftp.bjpu.edu.cn [202.112.78.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 046B543D49; Sat, 17 Jan 2004 10:24:50 -0800 (PST) (envelope-from delphij@frontfree.net) Received: by ftp.bjpu.edu.cn (Postfix, from userid 426) id B532452D4; Sun, 18 Jan 2004 02:24:48 +0800 (CST) Received: from beastie.frontfree.net (beastie.frontfree.net [218.107.145.7]) by ftp.bjpu.edu.cn (Postfix) with ESMTP id EDEAF5299; Sun, 18 Jan 2004 02:24:47 +0800 (CST) Received: by beastie.frontfree.net (Postfix, from userid 426) id 4340511A43; Sun, 18 Jan 2004 02:24:46 +0800 (CST) Received: from phantasm205 (unknown [221.216.129.200]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by beastie.frontfree.net (Postfix) with ESMTP id A47E511A3F; Sun, 18 Jan 2004 02:24:44 +0800 (CST) Message-ID: <01ae01c3dd27$2f459c20$0401a8c0@phantasm205> From: "Xin LI" To: "Andre Oppermann" References: <042601c3dcb0$de90c410$0401a8c0@phantasm205> <400976AA.169D1440@freebsd.org> Date: Sun, 18 Jan 2004 02:24:44 +0800 Organization: Phantasm Studio MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3790.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 cc: freebsd-net@FreeBSD.org Subject: Re: Newbie question: is net.inet.ip.fastforwarding intended for routersonly? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jan 2004 18:25:04 -0000 Hi Andre, Thank you for the information. I have a NAT gateway running with the following ipnat.rules: ----------------------------------------------------------------------- map fxp0 172.22.1.0/24 -> 0.0.0.0/32 proxy port ftp ftp/tcp map fxp0 172.22.1.0/24 -> 0.0.0.0/32 portmap tcp/udp 1025:7999 map fxp0 172.22.1.0/24 -> 0.0.0.0/32 portmap tcp/udp 49152:65535 map fxp0 172.22.1.0/24 -> 0.0.0.0/32 # Internal Servers rdr fxp0 0.0.0.0/0 port 8100 -> 172.22.1.1 port 8100 rdr fxp0 0.0.0.0/0 port 3389 -> 172.22.1.1 port 3389 ----------------------------------------------------------------------- And I have two if's installed, one is fxp0 (configured as 192.168.122.253/24) and the other is dc0(configured as 172.22.1.254/24). When the fastforwarding is set to 0, it works well, however if I turn it to 1, the packets immediately stops to flow between the two if's. (DEVICE_POLLING is enabled). So I guess I have done something wrong? Not so sure in this issue though... Thanks in advance. Xin LI ----- Original Message ----- From: "Andre Oppermann" To: "Xin LI" Cc: Sent: Sunday, January 18, 2004 1:53 AM Subject: Re: Newbie question: is net.inet.ip.fastforwarding intended for routersonly? > I have written a new fastforward code for 5.2 and -current which does > everything including ipfw, NAT and ipfilter.