Dial-in Server mgetty + pppd (Nighmare Nightmare Nightmare)

James Kaufman jmk at kaufman.eden-prairie.mn.us
Tue Feb 15 11:50:55 UTC 2005


On Tue, Feb 15, 2005 at 11:53:07AM +0000, Chadley Wilson wrote:
> Greetings,
> 
> /etc/ppp/options
> /etc/ppp/options.ttyS0
> /etc/mgetty+sendfax/mgetty.config
> /etc/mgetty+sendfax/login.config
> /etc/inittab
> /etc/passwd
> /etc/group
> 
> Simple I have a server, I attach a serial US-Robotics modem to the first 
> serial port. <ttyS0>
> I insert the line from the wall after testing it with a telephone into the 
> only line jack at back of modem.
> 
> I have a Quanta Zw9 laptop with a smartlink modem. I have completed a dialup 
> test to my own ISP succesfully.
> 
> The Server: (I copied configs from a mailing search that supposed to work!)
> <servers ip addr is 192.168.2.1>
> 
> [root at preload root]# cat /etc/ppp/options
> lock
> crtscts
> modem
> login
> noauth
> netmask 255.255.255.0
> ms-dns 192.168.2.1
> proxyarp
> 192.168.2.1:192.168.2.8
>
> [root at preload root]# cat /etc/ppp/options.ttyS0
> #hostname-s1:hostname
> 192.168.2.8:192.168.2.5       [local box is .8, remote is .5]
> 
> 
> [root at preload root]# cat /etc/ppp/pap-secrets
> #INBOUND connections
> 
> #allow
> 
> *      *               ""      192.168.2.8
> 
> #not allowed
> 
> guest   fliwatut        "*"     -
> master  fliwatut        "*"     -
> root    fliwatut        "*"     -
> support fliwatut        "*"     -
> stats   fliwatut        "*"     -
> 
> [root at preload root]# cat /etc/mgetty+sendfax/login.config
> /AutoPPP/ - a_ppp /usr/sbin/pppd -chap +pap 192.168.2.5:192.168.2.1 login 
> noauth debug proxyarp
> * - - /bin/false

[Remove the IP address from the above config file]

/AutoPPP/ - a_ppp /usr/sbin/pppd -chap +pap login noauth debug proxyarp

[AutoPPP is used if you want someone to dial your system, then get
automatically logged in, using the user's credentials. It looks like you really
don't want users to log in. Just the 'ppp' user, right?

At this point, I'm not sure exactly how you should change the config file, but
have you looked at the output in mgetty.log.ttyS0? Are you starting mgetty in
inittab with the -x 6 flag? Like: s2:2345:respawn:/sbin/mgetty -n 1 -x 6 ttyS0]

> --
> Chadley Wilson
> Redhat Certified Technician
> Cert Number: 603004708291270
> Pinnacle Micro
> Manufacturers of Proline Computers
> Proudly South African
> ISO9001:2000 Certified Production Line

-- 
Jim Kaufman
Linux Evangelist
public key 0x6D802619, CISSP# 65668




More information about the users mailing list