![]()
|
Network Group
|
Net Home Sitemap Search Contact Us |
|
Linux: Configuring PPP to Work With the CMU Dialup Pool
This was posted to cmu.comp.os.linux by Traber Campbell <ctc@andrew.cmu.edu> on ;September 5, 1998:
From: Traber Campbell <ctc@andrew.cmu.edu> Check out my contrib page <www.contrib.andrew.cmu.edu/~ctc>. It has all the scripts that I use for connecting. Note: most of the pppd options in ppp-on can be put in your /etc/ppp/options file instead of the 'exec' line. I'm running RedHat 5.1 and these scripts work; I'm not sure if they work under others, but I would expect so.
Hope it helps,
His web page contained the following: Getting Linux PPP to work with the CMU dialup poolAssuming/dev/modem is a symbolic link to your actual
/dev/cuax or /dev/ttySx device
file, the only thing you will need to edit in these files is the
username and password in pap-secrets and the ACCOUNT line
in ppp-onFile /etc/ppp/pap-secrets
# Secrets for authentication using PAP # client server secret IP addresses [username] * [password] "" * "" # end pap-secrets File ppp-on
#!/bin/sh
# These are the parameters. Change as needed.
TELEPHONE=268-9000 # The telephone number for the connection
ACCOUNT=username # The account name for logon (as in 'George Burns')
LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.0.0 # The proper netmask if needed
export TELEPHONE
DIALER_SCRIPT=/etc/ppp/scripts/ppp-on-dialer
exec /usr/sbin/pppd debug lock modem crtscts /dev/modem 57600 \
asyncmap 0 $LOCAL_IP:$REMOTE_IP +pap user $ACCOUNT \
noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT
# end ppp-on
File ppp-on-dialer
#!/bin/sh
#
exec chat -v \
TIMEOUT 3 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' \rAT \
'OK-+++\c-OK' ATH0 \
TIMEOUT 30 \
OK ATDT$TELEPHONE \
CONNECT
# end ppp-on dialer
|