From owner-freebsd-questions Tue Sep 22 19:55:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA06630 for freebsd-questions-outgoing; Tue, 22 Sep 1998 19:55:10 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mailhub.ainet.com (mailhub.ainet.com [204.30.40.29]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA06621 for ; Tue, 22 Sep 1998 19:55:07 -0700 (PDT) (envelope-from jmscott@shell.ainet.com) Received: from shell.ainet.com (jmscott@shell.ainet.com [204.30.40.108]) by mailhub.ainet.com (8.9.1/8.9.1) with SMTP id TAA06712; Tue, 22 Sep 1998 19:55:05 -0700 (PDT) Received: by shell.ainet.com (4.1/SMI-4.1) id AA21977; for freebsd-questions@FreeBSD.ORG; Tue, 22 Sep 98 19:56:29 PDT Date: Tue, 22 Sep 1998 19:56:28 -0700 (PDT) From: "Joseph M. Scott" X-Sender: jmscott@shell To: James Johnson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: PPP Redirect Question In-Reply-To: <010d01bde684$0a2d3b90$0101a8c0@flashpoint> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I don't think that -alias in PPP will support redirection ( if it does I'd like to know too :-). What I've got at home is basically the same thing ( with 2.2.7 & win95 machine ). I use natd in conjunction with ppp to do the redirection. So far it's worked very well. Redirecting http is no problem. I have had a problem redirecting ftp however. It works if you use passive ftp, but I believe that's the only way it works. The bad part is I don't think any of the browsers ( Netscape & IE ) support passive ftp. Natd isn't too hard to setup, take a look at the man page and the basic setup should get you going. You'll want to pay special attention to the redirect_port section. Joseph Scott jmscott@ainet.com On Tue, 22 Sep 1998, James Johnson wrote: > Hello, > Well I've gone ahead and reinstalled freebsd 2.2.6. I figure a clean > install would help me debug my problem > > I've got an NT box on my lan at 192.168.1.1 running IIS 4.0 which I want > available to the Outside. The FreeBSD box is at 192.168.1.2 on the lan and > it server as a gateway. It establishes via modem a ppp connection which > gives me a Dynamic IP. To do the redirect I am attempting using the -alias > switch and commands with PPP however it isnt working. > > I can telnet to and from, ping etc all boxes on my lan just fine. > > My ppp.conf file is setup like this > > ---- > default: > alias port tcp 192.168.1.1:http http > alias port udp 192.168.1.1:http http > set device /dev/cuaa1 > set speed 57600 > deny lqr > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 > OK \\dATDT\\T TIMEOUT 40 CONNECT" > > isp: > set phone 1234567 > set login > set authname yaddayadda > set authkey woop > set ifaddr 192.168.1.1/0 192.168.1.2/0 255.255.255.0 0.0.0.0 > delete ALL > add 0 0 HISADDR > > > > I invoke ppp with the following command > > > ppp -alias -ddial isp > > What else could I check to fix this problem? > > oh yeah, of note, I can telnet to my box using the IP my isp assigns me, > just port 80 doesnt redirect to the box on the lan > > > > 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