Date: Mon, 27 May 1996 20:33:34 GMT From: James Raynard <fqueries@jraynard.demon.co.uk> To: ANDRSN@hoover.stanford.edu Cc: freebsd-questions@freebsd.org Subject: Re: PPP Server Question Message-ID: <199605272033.UAA10546@jraynard.demon.co.uk> In-Reply-To: <01I56G20ICIA007N8T@HOOVER.STANFORD.EDU> (message from Annelise Anderson on Sun, 26 May 1996 23:18:21 -0700 (PDT))
next in thread | previous in thread | raw e-mail | index | archive | help
> I'm trying to get my office machine to function as a ppp server using > user ppp (this happens to be the one I got working first). The > office machine is running 2.1-STABLE and has options GATEWAY in > the kernel; sysctl shows that ip forwarding is turned on. It's probably worth mentioning that "options GATEWAY" won't be around for much longer - in fact it's already disappeared from -current. The approved method is to put gateway=YES in /etc/sysconfig. This shouldn't cause you any problems at the moment, though. > The ppp connection works fine, and I can ping the office machine > from home and vice versa. I have an ip address to use for the home > machine (and another one if I need it). What I can't do is ping > or reach any host beyond the office computer from the computer at > home. This usually means that everything's set up right, *except* for your home computer not having a default route set. [Cue simplistic explanation - there are three possible decisions that BSD networking software can make when deciding where to send a packet:- "It's addressed to me - I'll keep it". "It's addressed to a computer that's directly connected to me - I'll send it straight to them." "Don't know how to reach them - I'll send it over my default route to someone else who might know". If it doesn't have a default route, it throws it away. So you could ping your office machine, because it was directly connected by the PPP link, but your home computer didn't know what to do when you wanted to reach another host, as there wasn't a default route to send it over.] You can get PPP to do set a default route up for you when it makes the connection. If you're using user-mode ppp, your home computer's ppp.linkup file should look like this:- MYADDR: add 0 0 HISADDR For kernel-mode pppd, add a line saying defaultroute to your home computer's "options" file. > It seemed from the handbook that running gated would be the right > thing to do, so I installed it and changed sysconfig accordingly, > turning off routed. No offence intended, but gated always makes me think of an eminent Victorian politician's opinion on the Dreyfuss affair:- "Only three people have ever really understood this case. One is now dead. Another is now insane. The third is myself." <Pause for laughter> "Unfortunately, I appear to have forgotten most of the details!" Sorry about that. Anyway, my advice is not to bother with any kind of routing daemons, unless you're doing something like setting up a dedicated router for an ISP. If your office computer can talk to the outside world, and has IP forwarding enabled, setting a default route on your home computer *should* be all that's needed. -- James Raynard, Edinburgh, Scotland jraynard@dial.pipex.com james@jraynard.demon.co.uk
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605272033.UAA10546>
