Return to BSD News archive
#! rnews 3545 bsd Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!serv.hinet.net!spring.edu.tw!howland.erols.net!feed1.news.erols.com!news From: Ken Bigelow <kbigelow@www.play-hookey.com> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: LAN with a BSD(PPP) gateway Date: Tue, 15 Oct 1996 19:58:31 +0000 Organization: Erol's Internet Services Lines: 81 Message-ID: <3263ECE7.337D@www.play-hookey.com> References: <32642AEA.208C@iap.net.au> Reply-To: kbigelow@www.play-hookey.com NNTP-Posting-Host: kenjb05.play-hookey.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (Win16; U) To: dans@iap.net.au dans@iap.net.au wrote: > > Hi, > > Am nearly at wits end in trying to set this up. We have 2 NT boxes, one > 3.51 & one 4.0 plus one 95 box and a freebsd box. All of these are > conected to a lan and we are using the public IP set 192.168.0.1 for > this. This will of course change soon as we have just recieved our IP > numbers. > > We have set up the bsd box to dial out ppp style to our ISP. Now for > some reason we cannot telnet or ftp to our bsd box when we alter the > routing tables. When we reinstate them we can telnet to the bsd box then > telnet out. > > What we would like to do is to set up the BSD box to dial and remain on > line and then for the other boxes to use netscape and the usual apps > directly onto the net. > > Does anyone have any ideas or suggestions that we can follow. If > possible can you treat us as totally ignorant and spelt it all out in > detail. That will help us make sure we dont miss anything. I think we're > strong on some points but not on others. > > As usual can anyone who can help please mail directly back to us as we > have little time to follow the news groups looking for replies. We'll > post any help we get in case anyone else is as stuck as we are. > [CC sent] Hi, there, Gavin! Since you're using your FreeBSD box as the gateway, it really doesn't matter what else you have on the network; the gateway configuration is the key. Since I'm doing the same with a full-time, 24/7 connection to my ISP via pppd, you should be able to do the same. I have only two IP connections to my box: a net card (lnc0) and the modem. For my purposes, I gave them the same IP address (not necessary, but my choice here). What you do have to do is set the GATEWAY option in /etc/sysconfig to YES. Then, you need to set up /etc/ppp/options to control the connection. Mine is: crtscts modem 206.161.179.129: mtu 576 mru 576 connect /etc/ppp/dial-erols disconnect /etc/ppp/ip-down ipcp-accept-remote defaultroute asyncmap 0xa0000 debug Here, dial-erols is the chat script that actually calls my ISP. ip-down is the script that gets executed when the ip connection is lost. In my case, it shuts down any existing connection and then forces a redial. The IP address is my connection point; the other end is read from them by the ipcp-accept-remote line, and is then made default. I start the thing at bootup with a line in /etc/rc.local: pppd /dev/cuaa0 115200 In case the ip-down script fails for any reason, I also have a linechek script that pings my ISP and then re-runs ip-down in case of failure. It is run by the cron daemon every 5 minutes. For more info on pppd, check the Handbook. It's really quite complete. I hope this helps! -- Ken Are you interested in | byte-sized education | http://www.play-hookey.com over the Internet? |