Date: Tue, 7 Dec 1999 12:25:57 -0800 From: "James Webster" <james3838@tsi-net.com> To: "Chameleon" <swen@wavefire.com>, <freebsd-questions@freebsd.org> Subject: Re: Problems with NATD Message-ID: <010501bf40f1$699212e0$41586b83@mins05> References: <3.0.32.19991207091837.0195da10@mail.wavefire.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_00FF_01BF40AE.36F02C20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable That didn't work either..... just to make sure I have it right.... 172.30.224.9 (ex0) is the address that machines will connect to on port = 80. All of those connections need to be redirected to 10.0.0.2 port 80 = through 10.0.0.1 (ppp0). IPnat would be: rdr ex0 172.30.224.9/32 port 80 -> 10.0.0.2 port 80 natd I have: redirect_port tcp 10.0.0.2:80 172.30.224.9:80 I also added: redirect_port tcp 10.0.0.2:23 172.30.224.9:23 and tried to telnet to the box through 172.30.224.9. The local telnetd = server answered indicating that Nat is not redirecting the ports. I may = be missing some configuration settings though. Any help troubleshooting = would be appreciated. ----- Original Message -----=20 From: Chameleon=20 To: James Webster ; freebsd-questions@FreeBSD.ORG=20 Sent: Tuesday, December 07, 1999 9:18 AM Subject: Re: Problems with NATD At 09:02 PM 12/6/99 -0800, James Webster wrote: >I'm a first time user of FreeBSD ( my NIC card wouldn't work with = netBSD for >some reason). While I'm familiar with networking, and network address >translation, so some reason I can't get it working on FreeBSD. > >I'm setting up a weird testing topology to simulate a slow link = (serial), so >I have a box with an Ethernet card (fixed IP 172.30.224.9) and a PPP >(10.0.0.1) connection. I want all connections going to the Ethernet = address >to be redirected to the machine on the other side of the PPP = (10.0.0.2) >connection. I have everything working but the redirection. > >I have used "/sbin/natd -n ex0 -redirect_port tcp 10.0.0.2:80 80" and = "-n >ex0 -f /etc/natd.conf" with "redirect_port tcp 10.0.0.2:80 80" in the = conf >file. Neither has worked for me. > >If I've some how misread the man pages, please feel free to let me = know what >I'm doing wrong. I'm not on this mailing list, so please include me = in any >response. > >Thanks, >James Webster > Been through all this myself last week... in the natd.conf try: redirect_port tcp 10.0.0.2:80 172.30.224.9:80 that should do it... seems to work for me at least. Cheers, Swen Windows 98: n. useless extension to a minor patch release for=20 32-bit extensions and a graphical shell for a=20 16-bit patch to an 8-bit operating system=20 originally coded for a 4-bit microprocessor,=20 written by a 2-bit company that can't stand for 1 bit of competition.=20 ------=_NextPart_000_00FF_01BF40AE.36F02C20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2919.3800" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>That didn't work either..... just = to make=20 sure I have it right....</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>172.30.224.9 (ex0) is the address that = machines=20 will connect to on port 80. All of those connections need to be = redirected=20 to 10.0.0.2 port 80 through 10.0.0.1 (ppp0).</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>IPnat would be: rdr ex0 172.30.224.9/32 = port 80=20 -> 10.0.0.2 port 80</FONT></DIV> <DIV><FONT face=3DArial size=3D2>natd I have: redirect_port tcp = 10.0.0.2:80=20 172.30.224.9:80<BR>I also added: redirect_port tcp 10.0.0.2:23=20 172.30.224.9:23<BR>and tried to telnet to the box through = 172.30.224.9. =20 The local telnetd server answered indicating that Nat is not redirecting = the=20 ports. I may be missing some configuration settings though. = Any help=20 troubleshooting would be appreciated.</FONT></DIV> <BLOCKQUOTE=20 style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: = 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>From:</B>=20 <A href=3D"mailto:swen@wavefire.com" = title=3Dswen@wavefire.com>Chameleon</A>=20 </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20 href=3D"mailto:James3838@tsi-net.com" = title=3DJames3838@tsi-net.com>James=20 Webster</A> ; <A href=3D"mailto:freebsd-questions@FreeBSD.ORG"=20 = title=3Dfreebsd-questions@FreeBSD.ORG>freebsd-questions@FreeBSD.ORG</A> = </DIV> <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, December 07, = 1999 9:18=20 AM</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: Problems with = NATD</DIV> <DIV><BR></DIV>At 09:02 PM 12/6/99 -0800, James Webster = wrote:<BR>>I'm a=20 first time user of FreeBSD ( my NIC card wouldn't work with netBSD=20 for<BR>>some reason). While I'm familiar with networking, and = network=20 address<BR>>translation, so some reason I can't get it working on=20 FreeBSD.<BR>><BR>>I'm setting up a weird testing topology to = simulate a=20 slow link (serial), so<BR>>I have a box with an Ethernet card = (fixed IP=20 172.30.224.9) and a PPP<BR>>(10.0.0.1) connection. I want all = connections=20 going to the Ethernet address<BR>>to be redirected to the machine = on the=20 other side of the PPP (10.0.0.2)<BR>>connection. I have everything = working=20 but the redirection.<BR>><BR>>I have used "/sbin/natd -n ex0=20 -redirect_port tcp 10.0.0.2:80 80" and "-n<BR>>ex0 -f = /etc/natd.conf" with=20 "redirect_port tcp 10.0.0.2:80 80" in the conf<BR>>file. Neither = has worked=20 for me.<BR>><BR>>If I've some how misread the man pages, please = feel=20 free to let me know what<BR>>I'm doing wrong. I'm not on this = mailing list,=20 so please include me in=20 any<BR>>response.<BR>><BR>>Thanks,<BR>>James=20 Webster<BR>><BR>Been through all this myself last week...<BR><BR>in = the=20 natd.conf try:<BR><BR>redirect_port tcp 10.0.0.2:80=20 172.30.224.9:80<BR><BR>that should do it... seems to work for me at=20 least.<BR>Cheers, Swen<BR><B>Windows 98</B>: n.<BR>useless extension = to a=20 minor patch release for <BR>32-bit extensions and a graphical shell = for a=20 <BR>16-bit patch to an 8-bit operating system <BR>originally coded for = a 4-bit=20 microprocessor, <BR>written by a 2-bit company that can't stand = for<BR>1 bit=20 of competition. </BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_00FF_01BF40AE.36F02C20-- 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?010501bf40f1$699212e0$41586b83>