From owner-freebsd-questions Tue Nov 9 23: 9:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.island.net.au (mail.island.net.au [203.28.142.3]) by hub.freebsd.org (Postfix) with ESMTP id E3DC114BD7 for ; Tue, 9 Nov 1999 23:09:48 -0800 (PST) (envelope-from hugh@island.net.au) Received: from solo (solo.island.net.au [203.28.142.5]) by mail.island.net.au (8.8.5/8.8.5) with SMTP id SAA16279 for ; Wed, 10 Nov 1999 18:09:48 +1100 (EST) Message-ID: <014e01bf2b4a$70ecbac0$088ea8c0@island.net.au> From: "Hugh Blandford" To: Subject: NAT on two interfaces of the same machine? Date: Wed, 10 Nov 1999 18:08:50 +1100 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 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, I have a situation where I have a web server running on a 192.168 address behind a freebsd box which is redirecting a real address to it. (The real address is aliased incase it matters). This works fine. However, I am on the inside (192.168) of the freebsd box and it is my default gateway. When I try and view any of the websites it doesn't work, as, I assume, the IP address resolves to the internal interface of the gateway and it never gets translated and redirected. I could have a set of special DNS records for each of the websites but that isn't going to scale very well. Is there a way to redirect the packets to the internal address and have the conversation work. Even if all the packets have to go to the gateway box this wouldn't be too bad as the traffic will be very light. Thanks for your help. Hugh Blandford To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message