PPP Dial-in problems

Neil Ford neil at ourshack.com
Sun May 20 22:11:07 BST 2001


I'm trying to connect a couple of small lans using FreeBSD boxes and PPP.

The dail-out box works fine, dialing as and when necessary. However, the
dial-in box does not answer the phone :-(

I've gone through the ppp man page, the example ppp.conf and the handbook
double checking what I've done but I can't see what I've missed.

Included below are the relevent bits of the various config files. If anyone
can spot any mistakes or point me at better ways of doing things, I'd
be grateful.

Neil.


/etc/gettytab
default:\
        :pp=/usr/local/bin/ppplogin:\
        :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:


/etc/ttys
ttyd0   "/usr/libexec/getty std.38400"  dialup  on secure


/usr/local/bin/ppplogin
#! /bin/sh
exec /usr/sbin/ppp -direct incoming


/etc/ppp/ppp.conf
default:
 ident user-ppp VERSION (built COMPILATIONDATE)

 # Ensure that "device" references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #
 set device /dev/cuaa0

 set log Phase Chat LCP IPCP CCP tun command
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
           \"\" AT OK-AT-OK ATE0Q1 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 #set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 set ifaddr 192.168.100.12 192.168.200.12
 set timeout 120                        # 3 mintue idle timer (the default)
 add default HISADDR                    # Add a (sticky) default route
 #enable dns                            # request DNS info (for resolv.conf)

incoming:

 #
 # As per ppp.conf.sample, allowing both PAP and CHAP
 # NCF - 2001.05.18
 #

 enable pap
 enable chap


-- 
Neil C. Ford
Managing Director, Yet Another Computer Solutions Company Limited
neil at yacsc.com - http://www.yacsc.com




More information about the Ukfreebsd mailing list