You must be sure you have a kernel with PPP support. Typically, kernels will
have PPP configured in as a module. If this is the case, you will need to type
modprobe ppp.o to load the module.
This
is the first of three scripts. Lines beginning with '#' are comments; do
not enter those into the script.
| modem |
|
# We're using a modem |
| /dev/modem |
|
# Modem Device |
| 57600 |
|
# Port speed |
| asyncmap 0x0 |
|
# 8-bit clean line |
| connect "chat -f
/etc/ppp/chatopts" |
|
# Chat program and script |
| crtscts |
|
# Need hardware flow control |
| defaultroute |
|
# Automagically add default
route |
| lock |
|
# Lock modem when in use |
| mru 576 |
|
# Largest packet to accept |
| mtu 576 |
|
# Largest packet to send |
| user XXXXX |
|
# Specify pap-secrets entry;
replace XXXXX with the full username |
Logs are usually kept in "/var/log/messages" (readable only by root) in
many distributions. If errors are vague, you might try adding '-v' in front of
the '-f' on the chat line above:
connect "chat -v -f /etc/ppp/chatopts"
/etc/ppp/chatopts
This is the second script. This script consists of a series of quoted
expect and send string pairs. The first string is what to expect or look for
from the remote communications server. The second string is what to send when
the first string is received. The column beginning with a '#' is a comment to
explain each lines function. Use the script appropriate for the type of
dial-up connection that you have. The INIT string "at&f1" assumes that this is
the correct INIT string for the default hardware flow control profile for your
modem. When in doubt, check your modems manual. If hardware flow control is
not enabled, your data connection will not be reliable.
Lines beginning with '#' are comments; do not enter those into the script.
| "" |
|
"at&f1" |
|
#Your modem INIT string |
| "OK" |
|
"atdt
xxxxxxxxxxxx" |
|
#The access
phonenumber |
| "CONNECT" |
|
|
|
# Wait for CONNECT string. |
/etc/ppp/pap-secrets
This third script is the configuration file that contains the usernames and
passwords for PAP-authentication. Each line follows the format:
| # client |
|
server |
|
secret |
| dial-username |
|
* |
|
dial-password |
Save this script and be sure to change the permissions on it to 600.
chmod 600 /etc/ppp/pap-secrets
IMPORTANT: Before you try to connect, change the permissions of the
ppp directory.
chmod 700 /etc/ppp
| As root... |
| To connect type: |
|
/usr/sbin/pppd |
| To connect with logs (^C to stop
logs), type: |
|
/usr/sbin/pppd;
tail -f /var/log/messages |
| To disconnect type: |
|
kill `cat /var/run/ppp0.pid` |