Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 1998 20:18:49 -0400
From:      Chris Hill <jchill@dgsys.com>
To:        David Peng <DPeng@scient.com>
Cc:        FreeBSD Questions list <questions@FreeBSD.ORG>
Subject:   Re: Setup PPP client/gateway
Message-ID:  <v03007801b2405fe45775@[192.168.0.3]>
In-Reply-To: <21F0744D3BFBD111A9D400805FA7E84815CF10@MAILSF01>

next in thread | previous in thread | raw e-mail | index | archive | help
David Peng <DPeng@scient.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v03007801b2405fe45775>