Date: Fri, 29 Mar 2002 15:25:47 +0100 From: Thomas Hanson <klon@nybro.dk> To: freebsd-questions@FreeBSD.ORG Subject: natd static mapping for outgoing translation Message-ID: <4D0E007A80ACD84F95688E6E9B981AE209406D@odin.pop.k-net.dk>
next in thread | raw e-mail | index | archive | help
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 <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <meta name=3DProgId content=3DWord.Document> <meta name=3DGenerator content=3D"Microsoft Word 10"> <meta name=3DOriginator content=3D"Microsoft Word 10"> <link rel=3DFile-List href=3D"cid:filelist.xml@01C1D738.ECF51670"> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:GrammarState>Clean</w:GrammarState> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} span.EmailStyle17 {mso-style-type:personal-compose; mso-style-noshow:yes; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; font-family:Arial; mso-ascii-font-family:Arial; mso-hansi-font-family:Arial; mso-bidi-font-family:Arial; color:windowtext;} span.GramE {mso-style-name:""; mso-gram-e:yes;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:35.4pt; mso-footer-margin:35.4pt; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 10]> <style> /* Style Definitions */=20 table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple = style=3D'tab-interval:36.0pt'> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Hi<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>I have set up a freebsd 4.3 with natd. We have 2 = external ip numbers (one for the firewall/gateway, <span class=3DGramE>a.b.c.d = ,</span> and one for our web/ftp server, e.f.g.h )<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>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 <span = class=3DGramE>rc.conf :</span><o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>gateway_enable=3D"YES"<o:p></o:p></span></f= ont></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>router_enable=3D"YES"<o:p></o:p></span></fo= nt></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>ifconfig_rl0=3D"inet <span = class=3DGramE>a.b.c.d<span style=3D'mso-spacerun:yes'> </span>netmask</span> = 255.255.255.248"<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>ifconfig_rl0_alias0=3D"inet <span = class=3DGramE>e.f.g.h<span style=3D'mso-spacerun:yes'> </span>netmask</span> = 255.255.255.248"<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>ifconfig_rl1=3D"inet 192.168.1.1 netmask 255.255.255.0"<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>firewall_enable=3D"YES"<o:p></o:p></span></= font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>firewall_type=3D"simple"<o:p></o:p></span><= /font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>firewall_quiet=3D"NO"<o:p></o:p></span></fo= nt></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>natd_enable=3D"YES"<o:p></o:p></span></font= ></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>natd_interface=3D"rl0"<o:p></o:p></span></f= ont></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>natd_flags=3D"-u -m -dynamic -redirect_address 192.168.1.3 e.f.g.h"<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Thomas Hanson<o:p></o:p></span></font></p> </div> </body> </html> ------_=_NextPart_001_01C1D72D.9E447030-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D0E007A80ACD84F95688E6E9B981AE209406D>