I'm trying to set up a PPP server using mgetty with AutoPPP option enabled. But
my user cannot establish a connection using win95 dialup client.
Here's an excerpt of my ppp.log:
Jul 19 15:28:51 hylx pppd[839]: pppd 2.3.5 started by a_ppp, uid 0
Jul 19 15:28:51 hylx pppd[839]: Using interface ppp0
Jul 19 15:28:51 hylx pppd[839]: Connect: ppp0 -- /dev/ttyS1
Jul 19 15:28:51 hylx pppd[839]: sent [LCP ConfReq id=0x1 asyncmap 0x0 auth
pap magic 0x221ab194 pcomp accomp]
Jul 19 15:28:51 hylx pppd[839]: rcvd [LCP ConfAck id=0x1 asyncmap 0x0 auth
pap magic 0x221ab194 pcomp accomp]
Jul 19 15:28:53 hylx pppd[839]: rcvd [LCP ConfReq id=0x3 asyncmap 0xa
magic 0x359b31 pcomp accomp callback 0x602]
Jul 19 15:28:53 hylx pppd[839]: sent [LCP ConfRej id=0x3 callback 0x600]
Jul 19 15:28:54 hylx pppd[839]: rcvd [LCP ConfReq id=0x4 asyncmap 0xa
magic 0x359b31 pcomp accomp]
Jul 19 15:28:54 hylx pppd[839]: sent [LCP ConfAck id=0x4 asyncmap 0xa
magic 0x359b31 pcomp accomp]
Jul 19 15:28:54 hylx pppd[839]: sent [LCP EchoReq id=0x0 magic=0x221ab194]
Jul 19 15:28:54 hylx pppd[839]: rcvd [PAP AuthReq id=0x1 user=guest
password=]
Jul 19 15:28:54 hylx pppd[839]: user guest logged in
Jul 19 15:29:31 hylx pppd[839]: Hangup (SIGHUP)
Jul 19 15:30:11 hylx pppd[839]: sent [PAP AuthAck id=0x1 Login ok]
Jul 19 15:30:11 hylx pppd[839]: write: warning: Input/output error(5)
Jul 19 15:30:11 hylx pppd[839]: sent [IPCP ConfReq id=0x1 addr 192.168.0.73
compress VJ 0f 01]
Jul 19 15:30:11 hylx pppd[839]: write: warning: Input/output error(5)
Jul 19 15:30:11 hylx pppd[839]: ioctl(PPPIOCSASYNCMAP): Input/output error(5)
Jul 19 15:30:11 hylx pppd[839]: Exit.
It seems that once 'guest' logged in, the pppd would not try to exchange
packets with the remote peer anymore util the connection was dropped upon
connection timeout.
My configuration is as following:
Hardware/software environment:
An ethernet LAN with Internet access. One of the PCs acts as the PPP server,
running Debian 2.0 with mgetty (package version 1.1.18-1) and ppp (package
version 2.3.5-2) installed
related section in configuration files:
/etc/inittab:
T3:23:respawn:/sbin/mgetty -x2 -D ttyS1
/etc/mgetty/login.config:
/AutoPPP/ - a_ppp /etc/ppp/ppplogin
* - - /bin/login @
/etc/ppp/ppplogin:
#!/bin/sh
mesg n
stty -echo
/usr/sbin/pppd file /etc/ppp/options.server
/etc/ppp/options.server:
ms-dns 192.168.0.1
asyncmap 0
auth
crtscts
lock
modem
netmask 255.255.255.0
-detach
+pap
-chap
proxyarp
login
/etc/ppp/options/ttyS1:
192.168.0.1:192.168.0.2
/etc/ppp/pap-secrets:
* * *
root* * *
the guest entry in my /etc/passwd is:
guest:x:1003:1003:,,,:/home/guest:/bin/bash
I'm puzzled. Please help me - thanks a lot! And, would someone mind showing me
how to set up a PPP dialup account with shell access and a PPP dialup account
without shell access, respectively?