[ale] ppp server setup -- successful!!!

Alfred Grahame Leach aleach at cc.gatech.edu
Fri Aug 2 16:15:26 EDT 1996

Well, thanks to all who offered their help.  In case anybody's interested 
in setting up a Linux box as a ppp server, here's what I did.

preliminary draft of new PPP-HOWTO w/ server setup info(hartr at hedland.edu.au)

Much of what follows is very near to examples in the above-mentioned 
documentation...  Thanks to all the authors...

 server side:
created a user called ppp with: (entry from /etc/passwd)
ppp:<password stuff here>:501:501:PPP dialup passwd:/tmp:/etc/ppp/ppplogin

created /etc/ppp/ppplogin script:
# This is the script to run as specified in the Network Administrator's Guide

# ppplogin - script to fire up pppd on login
mesg n
stty -echo
exec /usr/sbin/pppd -detach silent modem crtscts

added an entry to /etc/inittab:
# Added to allow logins on the modem on Serial 1
S0:3:respawn:/sbin/uugetty ttyS0 38400

created /etc/conf.uugetty.ttyS0:
# line to initialize
# timeout to disconnect if idle...
# modem initialization string...
# format: <expect> <send> ... (chat sequence)
INIT="" AT\r OK\r\n
# this line sets the time to delay before sending the login banner

made pppd executable as root for everybody:
-r-sr-xr-x   1 root     root        84262 Feb 26 00:13 /usr/sbin/pppd

client side:
created three scripts to establish the ppp connection, setup the routing 
table, and reset the routing table (certain things don't work if I leave
the entries in the routing table):

script 1:
exec pppd connect \
        'chat -v -f /etc/ppp/chatscript' \
        -detach crtscts modem defaultroute \
        user ppp \
        /dev/modem 115200

script 2:
route del default
route add -host <ppp server addr> ppp0
route add default gw <ppp server addr>
echo "nameserver" >> /etc/resolv.conf
echo "nameserver" >> /etc/resolv.conf

script 3:
cp -f /etc/resolv.conf.bootable /etc/resolv.conf

created a simple /etc/ppp/chatscript (called by first script above):
"" ATM0
OK ATDT<telephone number here>
login: ppp
Password: <password stuff here>

Thanks again for all the help...  Let me know if I can help somebody with 
this stuff...

- Al

  | Al Leach              |  Georgia Tech              | Sailing is:       |
  | Graduate Student      |  College of Computing      |  hours and hours  |
  | MS, CS/Networking     |  Atlanta, GA 30332         |  of boredom,      |
  +-----------------------+----------------------------|  punctuated by    |
  | email: aleach at cc.gatech.edu                        |  moments of sheer |
  | WWW: http://www.cc.gatech.edu/people/home/aleach   |  stark terror...  |
  |     < Georgia Tech - Olympic Village of the 1996 Summer Olympics >     |

More information about the Ale mailing list