From owner-freebsd-questions Fri Mar 29 6:47:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from eising.k-net.dk (eising.k-net.dtu.dk [130.225.71.229]) by hub.freebsd.org (Postfix) with ESMTP id 63E9037B416 for ; Fri, 29 Mar 2002 06:47:11 -0800 (PST) Received: from odin.pop.k-net.dk (odin.pop.k-net.dk [192.38.220.3]) by eising.k-net.dk (Postfix) with ESMTP id 30BACC179 for ; Fri, 29 Mar 2002 15:47:10 +0100 (CET) Received: by odin.pop.k-net.dk with Internet Mail Service (5.5.2655.55) id ; Fri, 29 Mar 2002 15:25:48 +0100 Message-ID: <4D0E007A80ACD84F95688E6E9B981AE209406D@odin.pop.k-net.dk> From: Thomas Hanson To: freebsd-questions@FreeBSD.ORG Subject: natd static mapping for outgoing translation Date: Fri, 29 Mar 2002 15:25:47 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1D72D.9E447030" 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 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1D72D.9E447030 Content-Type: text/plain Hi I have set up a freebsd 4.3 with natd. We have 2 external ip numbers (one for the firewall/gateway, a.b.c.d , and one for our web/ftp server, e.f.g.h ) I am using a static mapping (e.f.g.h) for the webserver, and that works fine for traffic inwards. However when I use the webserver and go out to the internet, the world sees it as ip a.b.c.d, but I want them to see it as ip e.f.g.h. How do I do that? Here is part of my rc.conf : gateway_enable="YES" router_enable="YES" ifconfig_rl0="inet a.b.c.d netmask 255.255.255.248" ifconfig_rl0_alias0="inet e.f.g.h netmask 255.255.255.248" ifconfig_rl1="inet 192.168.1.1 netmask 255.255.255.0" firewall_enable="YES" firewall_type="simple" firewall_quiet="NO" natd_enable="YES" natd_interface="rl0" natd_flags="-u -m -dynamic -redirect_address 192.168.1.3 e.f.g.h" Thomas Hanson ------_=_NextPart_001_01C1D72D.9E447030 Content-Type: text/html Content-Transfer-Encoding: quoted-printable

Hi

I have set up a freebsd 4.3 with natd. We have 2 = external ip numbers (one for the firewall/gateway, a.b.c.d = , and one for our web/ftp server, e.f.g.h )

I am using a static mapping (e.f.g.h) for the = webserver, and that works fine for traffic inwards. However when I use the webserver = and go out to the internet, the world sees it as ip a.b.c.d, but I want them = to see it as ip e.f.g.h. How do I do that? Here is part of my rc.conf :

 

gateway_enable=3D"YES"

router_enable=3D"YES"

ifconfig_rl0=3D"inet a.b.c.d  netmask = 255.255.255.248"

ifconfig_rl0_alias0=3D"inet e.f.g.h  netmask = 255.255.255.248"

ifconfig_rl1=3D"inet 192.168.1.1 netmask 255.255.255.0"

firewall_enable=3D"YES"

firewall_type=3D"simple"<= /font>

firewall_quiet=3D"NO"

natd_enable=3D"YES"

natd_interface=3D"rl0"

natd_flags=3D"-u -m -dynamic -redirect_address 192.168.1.3 e.f.g.h"

 

Thomas Hanson

------_=_NextPart_001_01C1D72D.9E447030-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message