From owner-freebsd-questions Mon Mar 27 19:58:33 2000 Delivered-To: freebsd-questions@freebsd.org Received: from weeble.dyndns.org (ubppp248-187.dialin.buffalo.edu [128.205.248.187]) by hub.freebsd.org (Postfix) with ESMTP id 788DD37B582 for ; Mon, 27 Mar 2000 19:58:18 -0800 (PST) (envelope-from cjm2@earthling.net) Received: from shithead (shithead.weeble.dyndns.org [10.0.0.2]) by weeble.dyndns.org (8.9.3/8.9.3) with SMTP id WAA74206; Mon, 27 Mar 2000 22:56:33 -0500 (EST) (envelope-from cjm2@earthling.net) From: "C J Michaels" To: "Dennis Jun" , "Sarton O'Brien" Cc: Subject: RE: ppp -nat port redirection Date: Mon, 27 Mar 2000 22:56:33 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: <20000327174121.13536.qmail@web612.mail.yahoo.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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