Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!vic.news.telstra.net!act.news.telstra.net!psgrain!news.uoregon.edu!arclight.uoregon.edu!gatech!newsfeed.internetmci.com!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!bone.think.com!blanket.mitre.org!sed.psrw.com!psinntp !psinntp!psinntp!psinntp!prophet.unoverica.com!mikasa.iol.it!news From: goober@galatea.neptune.com Newsgroups: comp.unix.bsd.freebsd.misc,comp.protocols.ppp Subject: FreeBSD and PPP (server side) Date: 10 May 1996 00:21:53 GMT Organization: Italia Online Lines: 88 Sender: root@luna.neptune.com (root) Message-ID: <4mu271$594@mikasa.iol.it> NNTP-Posting-Host: luna.neptune.com X-Newsreader: knews 0.9.3 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:19105 comp.protocols.ppp:13824 Does anyone out there have an idea how to help me with this. I have gotten FreeBSD set up on a Dell Pentium 100. Good system, appears very responsive. There seems to be a lot of overlap between Linux and BSD, so I'm not totally lost... I have a customer who wants to connect intermittently throughout the working day and collect her e-mail. She administers a LAN and there will be several users collecting their e-mail at the same time. Her mail server (PostOffice for NT) will dial up my FreeBSD box and download the mail for her domain, and upload mail as well. It will establish a PPP connection. I have figured out that I will have to do some rudimentary routing between the two networks, that I will have to make my FreeBSD box a secondary mail- server with a lower priority than her NT machine, and that she will have to run 'sendmail -q' to process the queue when she attaches. I have also learned that FreeBSD's PPP implementation differs slightly from that of Linux. The PPP interface is a psuedo-device in the kernel, and needs to be compiled in, as it is not by default. Fortunately FreeBSD takes even less time to compile than Linux. Also FreeBSD's PPP works more like Linux's PPP 2.2.x rather than the 2.0.x I had been using, utilizing the /etc/ppp/options file. It was also fun modifying the 'adduser' Perl script to allow the su to use /etc/ppp/ppplogin as a user 'shell'. Anyway. the problem I am having is this. I can use her modem to call my FreeBSD machine. It connects. (I have no trouble getting a login: prompt and I think it looks ReeL kEWl to say MYKERNEL....) Then it begins to process the ppplogin script and the FreeBSD machine disconnects me... There is nothing in the /var/adm/messages that gives me any clue as to the reason why. I have the serial port on the NT machine assigned an IP address X.X.X.1 as befits its gateway status. I have this 'hard-wired' into the NT machine's Registry. (Well, I don't, but I am assuming my customer will know how to do this with NT's equivalent of 'ifconfig') Therefore, I don't use any IP address for the 'remote' machine in my FreeBSD /etc/ppp/options file. Here is the /etc/ppp/options file I am using: ************************************************************* crtscts #Hardware flow control netmask 255.255.255.0 #Netmask YYY.YYY.YYY.15: #Home Page is on the YYY.YYY.YYY network #PETCO will be the gateway to their network #The serial port on the NT Server #It is 'hard wired' into the NT Registry # defaultroute #Should I be using this??? # passive # modem # *************************************************************** This is the (admittedly very simple) etc/ppp/ppplogin I am using: #!/bin/sh stty 115200 #if test `last | grep logged | grep -w $LOGNAME | grep -c ttyR ` -gt 1 ; then # echo "one phone connection only is allowed per user" # echo $LOGNAME `date` >> /var/adm/bums # exit 0 # /usr/sbin/pppd /dev/ttyd0 asyncmap 0 debug 57600 *************************************************************** So, why does it not make the connection??? Thank you all for your help. (Avi, where do you find the time to read all this????) If there is enough interest in my travails with FreeBSD, I would be glad to share my experiences thus far. The Goober (Robert Lubbers)