From owner-freebsd-questions Tue Oct 6 17:15:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA06639 for freebsd-questions-outgoing; Tue, 6 Oct 1998 17:15:21 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ms1.dgsys.com (ms1.dgsys.com [204.97.64.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA06557 for ; Tue, 6 Oct 1998 17:14:52 -0700 (PDT) (envelope-from jchill@dgsys.com) Received: from [192.168.0.3] (gueuze.dgsys.com [204.97.64.155]) by ms1.dgsys.com (8.8.7/8.7.3) with ESMTP id UAA13735; Tue, 6 Oct 1998 20:14:34 -0400 (EDT) X-Sender: jchill@pop.dgsys.com Message-Id: In-Reply-To: <21F0744D3BFBD111A9D400805FA7E84815CF10@MAILSF01> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Tue, 6 Oct 1998 20:18:49 -0400 To: David Peng From: Chris Hill Subject: Re: Setup PPP client/gateway Cc: FreeBSD Questions list Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David Peng wrote, >Goal: Setup a PPP client and establish a gateway for ether machines > >Machines: FreeBSD 2.2.7 (just installed) > Windows 98 > Winwoes 95 > All ethered by a 5 port hub I have an almost identical setup, except it's MacOS and an 8-port hub. I have a LAN of two Macs, the FreeBSD box and a networked printer. I'm running natd on the fBSD box, with the LAN addresses set to 192.168.0.x - this is a network that is "non-routable;" I'm not sure exactly how/why this works, but there are a few address spaces like this that are guaranteed not to belong to anyone outside. Details are in Greg's book in the chapter on IP alaising. Anyway, my FreeBSD box is running pppd, and nat redirects connections between ppp and the ethernet. To my surprise, this actually works! >Upon boot, FreeBSD should dial out and make a PPP connection. >I'm assuming I'm getting a dynamic IP from PacBell so somehow >the windows machines should know where the gateway is. pppd does in fact dial in upon boot up, although I'm in the odd position where I have a static IP but my ISP >Any documentation or how-to's I can look at before I attack this? Check the natd and pppd man pages. I don't remember if natd comes with the basic fBSD distribution; if not, all the man pages are available on the FreeBSD web site. >If I get this far, I'll be pretty happy, but if you have a idea on how >to make FreeBSD re-connect upon disconnection...I'll kiss you. j/k In your /etc/ppp/options file, put a line containing the word persist. This will make pppd try to stay connected 24 x 7. >Basically I want a virtual direct connection to the outside world. This works, for me at least. The only downside is that I can't seem to send mail between machines on the LAN; there's probably a way to do it, I just haven't looked very hard. -- Chris Hill jchill@dgsys.com [place witty saying here] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message