From owner-freebsd-questions Tue Apr 30 18: 1: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.vividnet.com (mail.vividnet.com [206.149.144.3]) by hub.freebsd.org (Postfix) with ESMTP id 2402637B404 for ; Tue, 30 Apr 2002 18:00:56 -0700 (PDT) Received: from vividnet.com (guardian.vividnet.com [206.149.144.166]) by mail.vividnet.com (8.8.8/8.8.8) with ESMTP id SAA04430 for ; Tue, 30 Apr 2002 18:00:55 -0700 (PDT) (envelope-from robinche@vividnet.com) Message-ID: <3CCF3E13.637C110F@vividnet.com> Date: Tue, 30 Apr 2002 18:00:03 -0700 From: Robin Chen X-Mailer: Mozilla 4.78 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: NAT using real ip References: <20020501023812.A37800@Deadcell.ant> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I have 2 providers giving me static ip access to the internet. Generally I want to use provider A for all traffic because I have several ip addresses to use, but I want to utilize provider B for all http traffic. Can I utilize natd for this? Currently I have a FreeBSD router as the main gateway to the internet using provider A. I've also installed a nat server connected to provider B. The nat server has 2 interfaces, fxp0 using ip address from provider A and rl0 using ip address from provider B. The default route for nat server is using provider B. On the main gateway, I'm using: ipfw add fwd nat.server.machine tcp from provider.a.ip to any 80 I've set up the nat server running natd -interface rl0 with following: ipfw add divert natd tcp from any to any 80 via rl0 ipfw add allow ip from any to any The result of the verbose output is: Out [TCP] [TCP] client.provider.a.ip:4094 -> outside.web.site:80 aliased to [TCP] provider.b.ip:4094 -> outside.web.site:80 but the client using provider a's ip cannot pull up any websites. What do I need to change? Thanks, Robin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message