From owner-freebsd-questions@FreeBSD.ORG Thu Jan 12 14:57:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5621D16A423 for ; Thu, 12 Jan 2006 14:57:16 +0000 (GMT) (envelope-from cgross@2blc.Com) Received: from bruce.cnv.fr (bruce.cnv.fr [84.96.23.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66C7743D48 for ; Thu, 12 Jan 2006 14:57:15 +0000 (GMT) (envelope-from cgross@2blc.Com) Received: from localhost (localhost [127.0.0.1]) by bruce.cnv.fr (Postfix) with ESMTP id 809616F19C for ; Thu, 12 Jan 2006 15:57:14 +0100 (CET) Received: from bruce.cnv.fr ([127.0.0.1]) by localhost (bruce.cnv.fr [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13435-04-3 for ; Thu, 12 Jan 2006 15:57:07 +0100 (CET) Received: from PRTCEDRICXP (prt-cedricxp.cnv.local [10.0.0.31]) by bruce.cnv.fr (Postfix) with ESMTP id 76A8D6D667 for ; Thu, 12 Jan 2006 15:57:07 +0100 (CET) From: "cedric Gross" To: Date: Thu, 12 Jan 2006 15:58:06 +0100 Organization: 2BLC MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 thread-index: AcYXiJWENUhaas1+SLGZ4Yr0hQlJew== Message-Id: <20060112145707.76A8D6D667@bruce.cnv.fr> X-Virus-Scanned: by amavisd-new at cnv.fr Subject: IpNat and 3 NIC X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2006 14:57:16 -0000 Hello, I have my FreeBSD 5.4 box with 3 NIC : Xl0 LAN with network 10.0.0.0/8 and 192.168.0.0/30 VR0 Wan 84.96.23.106/32 VR1 LAN with network 192.168.0.32/27 and 192.168.0.96/27 I use IPNAT and Ip filter. I'm doing NAT from Xl0 to Vr0, it's working fine I'm trying to do the same thing with vr1 to Vr0 but it's seems that traffic coming from vr1 are not translated. Is there a interface limitation with IPNAT ? Is there a way to do translation from both NIC ? Here is my ipnat.conf : map vr0 10.0.0.0/8 -> 84.96.23.106/32 proxy port ftp ftp/tcp map vr0 10.0.0.0/8 -> 84.96.23.106/32 portmap tcp/udp 20000:60000 map vr0 10.0.0.0/8 -> 84.96.23.106/32 map vr0 192.168.0.0/30 -> 84.96.23.106/32 portmap tcp/udp auto map vr1 192.168.0.32/27 -> 84.96.23.106/32 portmap tcp/udp auto map vr1 192.168.0.32/27 -> 84.96.23.106/32 map vr1 192.168.0.96/27 -> 84.96.23.106/32 portmap tcp/udp auto map vr1 192.168.0.96/27 -> 84.96.23.106/32 rdr xl0 0.0.0.0/0 port 80 -> 10.0.0.254 port 3128 tcp rdr vr1 192.168.0.32/27 port 80 -> 10.0.0.254 port 3128 tcp rdr vr1 192.168.0.96/27 port 80 -> 10.0.0.254 port 3128 tcp Thanks for help. Cedric