From owner-freebsd-questions Tue Dec 7 12:28:55 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.tsi-net.com (smtp.tsi-net.com [207.202.145.135]) by hub.freebsd.org (Postfix) with ESMTP id 6133F14BFC for ; Tue, 7 Dec 1999 12:28:44 -0800 (PST) (envelope-from james3838@tsi-net.com) Received: from mins05 ([131.107.88.65]) by smtp.tsi-net.com (8.9.1/8.9.1) with SMTP id MAA04968; Tue, 7 Dec 1999 12:28:32 -0800 (PST) Message-ID: <010501bf40f1$699212e0$41586b83@mins05> From: "James Webster" To: "Chameleon" , References: <3.0.32.19991207091837.0195da10@mail.wavefire.com> Subject: Re: Problems with NATD Date: Tue, 7 Dec 1999 12:25:57 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00FF_01BF40AE.36F02C20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.4200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.4200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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
That didn't work either.....  just = to make=20 sure I have it right....
 
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).
 
IPnat would be: rdr ex0 172.30.224.9/32 = port 80=20 -> 10.0.0.2 port 80
natd I have: redirect_port tcp = 10.0.0.2:80=20 172.30.224.9:80
I also added: redirect_port tcp 10.0.0.2:23=20 172.30.224.9:23
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.
----- Original Message -----
From:=20 Chameleon=20
To: James=20 Webster ; freebsd-questions@FreeBSD.ORG =
Sent: Tuesday, December 07, = 1999 9:18=20 AM
Subject: Re: Problems with = NATD

At 09:02 PM 12/6/99 -0800, James Webster = wrote:
>I'm a=20 first time user of FreeBSD ( my NIC card wouldn't work with netBSD=20 for
>some reason). While I'm familiar with networking, and = network=20 address
>translation, so some reason I can't get it working on=20 FreeBSD.
>
>I'm setting up a weird testing topology to = simulate a=20 slow link (serial), so
>I have a box with an Ethernet card = (fixed IP=20 172.30.224.9) and a PPP
>(10.0.0.1) connection. I want all = connections=20 going to the Ethernet address
>to be redirected to the machine = on the=20 other side of the PPP (10.0.0.2)
>connection. I have everything = working=20 but the redirection.
>
>I have used "/sbin/natd -n ex0=20 -redirect_port tcp 10.0.0.2:80 80" and "-n
>ex0 -f = /etc/natd.conf" with=20 "redirect_port tcp 10.0.0.2:80 80" in the conf
>file. Neither = has worked=20 for me.
>
>If I've some how misread the man pages, please = feel=20 free to let me know what
>I'm doing wrong. I'm not on this = mailing list,=20 so please include me in=20 any
>response.
>
>Thanks,
>James=20 Webster
>
Been through all this myself last week...

in = the=20 natd.conf try:

redirect_port tcp 10.0.0.2:80=20 172.30.224.9:80

that should do it... seems to work for me at=20 least.
Cheers, Swen
Windows 98: n.
useless extension = to a=20 minor patch release for
32-bit extensions and a graphical shell = for a=20
16-bit patch to an 8-bit operating system
originally coded for = a 4-bit=20 microprocessor,
written by a 2-bit company that can't stand = for
1 bit=20 of competition. ------=_NextPart_000_00FF_01BF40AE.36F02C20-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message