Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Mar 2000 22:56:33 -0500
From:      "C J Michaels" <cjm2@earthling.net>
To:        "Dennis Jun" <dennisjun@yahoo.com>, "Sarton O'Brien" <roguetr@patho.gen.nz>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   RE: ppp -nat port redirection
Message-ID:  <NDBBILKDCLLECBCLPMBIEEBICAAA.cjm2@earthling.net>
In-Reply-To: <20000327174121.13536.qmail@web612.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Apparently you didn't read the original question.  Sarton is trying to use
the nat port redirection of ppp, using the pppctl command.  So your
suggestions Dennis are not relevant.

The command you are using looks correct to me.  I have a couple lines in my
config...

 nat port udp 10.0.0.2:30000-30500 30000-30500
 nat port tcp 10.0.0.2:30000-30500 30000-30500

...that work fine.

I take it that the port redirection isn't working for you.  What exactly is
happening?  I usually find that telnetting to the port is a good test to see
what is going on, or to at least see if the port is being listened to.

-Chris

-----Original Message-----
From: owner-freebsd-questions@FreeBSD.ORG
[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Dennis Jun
Sent: Monday, March 27, 2000 12:41 PM
To: Sarton O'Brien
Cc: freebsd-questions@FreeBSD.ORG
Subject: Re: ppp -nat port redirection



--- Sarton O'Brien <roguetr@patho.gen.nz> wrote:
> Hey all,
>
> I have been trying to (unsuccessfully) redirect port 700 from my ppp
> gateway to my windows desktop.
>
> I've been using pppctl and manually typing:
>
> nat port tcp 192.168.0.2:700 700

I believe it's "redirect_port" not "port".

> which I'm assuming is wrong. If I could find an example I would be right
> but the help and manual aren't extremely explicit and I can't seem to
> work it out.
>
> Information on how to correctly specify this and how to test (other than
> using buddyphone which is what I'm trying to operate) would be GREATLY
> appreciated. I normally access this mail list from work so if any replys
> could CCed to this address that would also be great. Thanks.
>
> Sarton

Try the following:

In rc.conf add this line:
natd_flags="-f /etc/rc.natd"

Next, using your favourite editor, create a file called /etc/rc.natd

Next, enter the following 2 lines:

redirect_port tcp 192.168.0.2:700 700


Note that the 2nd line is a blank line. Hope this works.


=====
PGP public key:
http://i.am/dennisjun/
or ldap://certserver.pgp.com/

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


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



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?NDBBILKDCLLECBCLPMBIEEBICAAA.cjm2>