Hello,
I am unable to connect by script to my ISP. the process stops after
the serial conection is made. the last thing in the log file is:
Mar 1 22:53:55 localhost pppd[448]: Serial connection established.
Mar 1 22:53:56 localhost pppd[448]: Using interface ppp0
Mar 1 22:53:56 localhost pppd[448]: Connect: ppp0 <--> /dev/cua2
(the entire log output is below)
I can connect manually
using minicom and running pppd from the command line. I have read the PPP
how-tos, FAQ and browsed several weeks of postings, but have not found a
solution.
Below are the scripts am using and the log file.
____________________
The PPP-on script
#!/bin/sh
#
# Script to initiate a PPP connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command. However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=xxx-xxxx # The telephone number for the connection
ACCOUNT=ppp:xxxxxxx # The account name for logon (as in 'George
Burns')
PASSWORD=****** # The password for this account (and 'Gracie
Allen')
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.255.0 # The proper netmask if needed
#
# Export them so that they will be available to 'ppp-on-dialer'
export TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script which dials the phone and logs
# in. Please use the absolute file name as the $PATH variable is not
# used on the connect option. (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
#
# Initiate the connection
#
#
exec /usr/sbin/pppd -d /dev/cua2 \
$LOCAL_IP:$REMOTE_IP \
connect $DIALER_SCRIPT
____________
The ppp-on-dialer script:
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
/usr/sbin/chat -v \
TIMEOUT 3 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' \rAT \
'OK-+++\c-OK' ATH0 \
TIMEOUT 45 \
OK ATDT$TELEPHONE \
CONNECT '' \
ogin:--ogin: $ACCOUNT \
assword: $PASSWORD
_____________________
options file:
-detach
#
#use the modem control lines
modem
#use uucp style locks to ensure exclusive access
lock
#use hardware flow control
crtscts
#create a default route for this connection in the routing table
defaultroute
#do not set up any "escaped" control sequences
asyncmap 0
________________________
log:
Mar 1 22:53:22 localhost kernel: CSLIP: code copyright 1989 Regents of
the Univ
ersity of California
Mar 1 22:53:22 localhost kernel: PPP: version 2.2.0 (dynamic channel
allocation
)
Mar 1 22:53:22 localhost kernel: PPP Dynamic channel allocation code
copyright
1995 Caldera, Inc.
Mar 1 22:53:22 localhost kernel: PPP line discipline registered.
Mar 1 22:53:22 localhost kernel: registered device ppp0
Mar 1 22:53:22 localhost pppd[448]: pppd 2.3.3 started by root, uid 0
Mar 1 22:53:23 localhost chat[453]: timeout set to 3 seconds
Mar 1 22:53:23 localhost chat[453]: abort on (\nBUSY\r)
Mar 1 22:53:23 localhost chat[453]: abort on (\nNO ANSWER\r)
Mar 1 22:53:23 localhost chat[453]: abort on (\nRINGING\r\n\r\nRINGING\r)
Mar 1 22:53:23 localhost chat[453]: send (rAT^M)
Mar 1 22:53:23 localhost chat[453]: expect (OK)
Mar 1 22:53:23 localhost chat[453]: AT^M^M
Mar 1 22:53:23 localhost chat[453]: OK
Mar 1 22:53:23 localhost chat[453]: -- got it
Mar 1 22:53:23 localhost chat[453]: send (ATH0^M)
Mar 1 22:53:23 localhost chat[453]: timeout set to 45 seconds
Mar 1 22:53:23 localhost chat[453]: expect (OK)
Mar 1 22:53:23 localhost chat[453]: ^M
Mar 1 22:53:23 localhost chat[453]: ATH0^M^M
Mar 1 22:53:23 localhost chat[453]: OK
Mar 1 22:53:23 localhost chat[453]: -- got it
Mar 1 22:53:23 localhost chat[453]: send (ATDTxxx-xxxx^M)
Mar 1 22:53:23 localhost chat[453]: expect (CONNECT)
Mar 1 22:53:23 localhost chat[453]: ^M
Mar 1 22:53:52 localhost chat[453]: ATDTxxx-xxxx^M^M
Mar 1 22:53:52 localhost chat[453]: CONNECT
Mar 1 22:53:52 localhost chat[453]: -- got it
Mar 1 22:53:52 localhost chat[453]: send (^M)
Mar 1 22:53:52 localhost chat[453]: expect (ogin:)
Mar 1 22:53:52 localhost chat[453]: 48000 V42bis^M
Mar 1 22:53:54 localhost chat[453]: South Valley Internet (SM9-26)^M
Mar 1 22:53:54 localhost chat[453]: ^M
Mar 1 22:53:54 localhost last message repeated 2 times
Mar 1 22:53:54 localhost chat[453]: login:
Mar 1 22:53:54 localhost chat[453]: -- got it
Mar 1 22:53:54 localhost chat[453]: send (ppp:xxxxxx^M)
Mar 1 22:53:54 localhost chat[453]: expect (assword:)
Mar 1 22:53:54 localhost chat[453]: ^M
Mar 1 22:53:54 localhost chat[453]: Password:
Mar 1 22:53:54 localhost chat[453]: -- got it
Mar 1 22:53:54 localhost chat[453]: send (*******^M)
Mar 1 22:53:55 localhost pppd[448]: Serial connection established.
Mar 1 22:53:56 localhost pppd[448]: Using interface ppp0
Mar 1 22:53:56 localhost pppd[448]: Connect: ppp0 <--> /dev/cua2
-------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]