From owner-freebsd-questions@FreeBSD.ORG Thu Oct 23 18:01:11 2003 Return-Path: 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 00EC716A4B3 for ; Thu, 23 Oct 2003 18:01:11 -0700 (PDT) Received: from lariat.org (lariat.org [63.229.157.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C8D643FD7 for ; Thu, 23 Oct 2003 18:01:08 -0700 (PDT) (envelope-from brett@lariat.org) Received: from runaround.lariat.org (IDENT:ppp1000.lariat.org@lariat.org [63.229.157.2]) by lariat.org (8.9.3/8.9.3) with ESMTP id TAA16227 for ; Thu, 23 Oct 2003 19:01:03 -0600 (MDT) X-message-flag: Warning! Use of Microsoft Outlook renders your system susceptible to Internet worms. Message-Id: <6.0.0.22.2.20031023184442.04f99b18@localhost> X-Sender: brett@localhost (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Thu, 23 Oct 2003 19:01:02 -0600 To: questions@freebsd.org From: Brett Glass Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Static NAT with natd and ipfw X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2003 01:01:11 -0000 A client wants to "expose" a host on a LAN behind a NAT firewall to the Internet at large. The host is is behind a FreeBSD machine that's functioning as (among other things) a NAT router. The host already has an unregistered internal address (which it needs to keep), but also must allow others to connect to it from the outside world via a "real" IP address that's distinct from that of the router. In other words, from the point of view of the Internet, I want the host to look as if it's outside the firewall at a separate address from the firewall itself. The natd man page mentions a -redirect_address command line option which looks as if it would do PART of the job. But what other configuration do I have to do (e.g. changes to rc.firewall, rc.conf, etc.) to make this work? I'm sure I could tinker and figure all of this out, but this week is quite busy and I need to get things set up in a hurry. (Also, it's a production system and don't want to cause unnecessary downtime while I experiment.) Advice, and sample lines from configuration files, would be much appreciated. --Brett Glass