I am having problems setting up dial-on-demand using diald on my
S.u.S.E. 5.2 (kernel 2.0.35) system. I added these lines to the top
of the stock diald.conf that comes with the diald distribution, and I
set up my PPP scripts using the PPP HOWTO in Linux: The Complete
Reference. (Due to my not thinking this email through very well,
those ppp scripts appear after the segment from /var/log/messages
below.) The specific problem I am having is shown below in the snippet
of /var/log/messages I have included below. I can not get any traffic
going over the PPP link, although I can get the link established.
diald keeps giving me the same message: "Connect script timed out.
Killing script." I have played with the TIMEOUT setting in the dialer
script an have set it up to 40 seconds, but it still times out. So, I
wonder if I am adjusting the right script. BTW, PPP works fine when I
connect using the scripts supplied with S.u.S.E. Linux, in fact I
am using that now. I also tried using the S.u.S.E. scripts as my
diald scripts, but still got the connect script timeouts. Can someone
here help me?
As mentioned above, I added these settings to the top of the stock
diald.conf file, and that file is at /etc/diald.conf.
local 0.0.0.0
remote 0.0.0.0
dynamic
defaultroute
# proxyarp
device /dev/ttyS3
lock
speed 38400
mtu 1524
connect /etc/suseppp/diald/dialdppp-up
disconnect /etc/suseppp/dialdppp-down
modem
crtscts
This is a snippet of /var/log/messages taken during one of the (many)
failed attempts to get a ppp link running:
Oct 3 15:35:38 dragoon diald[6605]: Running connect (pid = 6719).
Oct 3 15:35:38 dragoon syslog: IPX support is not present in the kernel
Oct 3 15:35:38 dragoon pppd[6719]: pppd 2.2.0 started by root, uid 0
Oct 3 15:35:38 dragoon chat[6721]: timeout set to 40 seconds
Oct 3 15:35:38 dragoon chat[6721]: abort on (\nBUSY\r)
Oct 3 15:35:38 dragoon chat[6721]: abort on (\nNO ANSWER\r)
Oct 3 15:35:38 dragoon chat[6721]: abort on (\nRINGING\r\n\r\nRINGING\r)
Oct 3 15:35:38 dragoon chat[6721]: send (rAT^M)
Oct 3 15:35:38 dragoon chat[6721]: expect (OK)
Oct 3 15:35:38 dragoon chat[6721]: rAT^M^M
Oct 3 15:35:38 dragoon chat[6721]: OK -- got it
Oct 3 15:35:38 dragoon chat[6721]: send (ATH0^M)
Oct 3 15:35:38 dragoon chat[6721]: timeout set to 30 seconds
Oct 3 15:35:38 dragoon chat[6721]: expect (OK)
Oct 3 15:35:38 dragoon chat[6721]: ^M
Oct 3 15:35:38 dragoon chat[6721]: ATH0^M^M
Oct 3 15:35:38 dragoon chat[6721]: OK -- got it
Oct 3 15:35:38 dragoon chat[6721]: send (ATDT0620227780^M)
Oct 3 15:35:38 dragoon chat[6721]: expect (CONNECT)
Oct 3 15:35:38 dragoon chat[6721]: ^M
Oct 3 15:36:02 dragoon chat[6721]: ATDT0620227780^M^M
Oct 3 15:36:02 dragoon chat[6721]: CONNECT -- got it
Oct 3 15:36:02 dragoon chat[6721]: send (^M)
Oct 3 15:36:02 dragoon chat[6721]: expect (ogin:)
Oct 3 15:36:02 dragoon chat[6721]: 38400^M
Oct 3 15:36:07 dragoon chat[6721]: ^M
Oct 3 15:36:07 dragoon chat[6721]:
Oct 3 15:36:07 dragoon last message repeated 23 times
Oct 3 15:36:07 dragoon chat[6721]: Bunt Communications Access Server^M
Oct 3 15:36:07 dragoon chat[6721]: ^M
Oct 3 15:36:07 dragoon chat[6721]: ^M
Oct 3 15:36:07 dragoon chat[6721]: Username:Login: -- got it
Oct 3 15:36:07 dragoon chat[6721]: send (tschulze^M)
Oct 3 15:36:07 dragoon chat[6721]: expect (assword:)
Oct 3 15:36:07 dragoon chat[6721]: tschulze^M
Oct 3 15:36:07 dragoon chat[6721]: Password: -- got it
Oct 3 15:36:07 dragoon chat[6721]: send (mypassword^M)
Oct 3 15:36:07 dragoon pppd[6719]: Serial connection established.
Oct 3 15:36:08 dragoon pppd[6719]: Using interface ppp0
Oct 3 15:36:08 dragoon pppd[6719]: Connect: ppp0 <--> /dev/ttyS3
Oct 3 15:36:08 dragoon pppd[6719]: sent [LCP ConfReq id=0x1 <mru 1500> <magic
0x47c98e2e> <pcomp> <accomp>]
[Bunches of negotiation messages snipped.]
Oct 3 15:36:09 dragoon pppd[6719]: rcvd [IPCP ConfAck id=0x1 <addr 192.168.0.3>
<compress VJ 0f 01>]
Oct 3 15:36:09 dragoon pppd[6719]: local IP address 192.168.0.3
Oct 3 15:36:09 dragoon pppd[6719]: remote IP address 195.178.7.130
Oct 3 15:36:09 dragoon pppd[6719]: rcvd [CCP ConfRej id=0x1]
Oct 3 15:36:38 dragoon diald[6605]: Connect script timed out. Killing script.
Oct 3 15:36:38 dragoon pppd[6719]: Terminating on signal 2.
Oct 3 15:36:38 dragoon pppd[6719]: sent [LCP TermReq id=0x2]
Oct 3 15:36:38 dragoon pppd[6719]: rcvd [LCP TermAck id=0x2]
Oct 3 15:36:38 dragoon pppd[6719]: Connection terminated.
Oct 3 15:36:38 dragoon pppd[6719]: Exit.
Oct 3 15:36:39 dragoon diald[6605]: Delaying 30 seconds before clear to dial.
Here is my dialdppp-up script:
#!/bin/sh
#
# This script is adapted from the PPP HOWTO paragraph 15.2.
#
TELEPHONE=0620227780
# ACCOUNT=tschulze
# PASSWORD=mypassword
#
#
export TELEPHONE # ACCOUNT PASSWORD
#
#
DIALER_SCRIPT=/etc/suseppp/diald/dialdppp-up-dialer
#
#
exec /usr/sbin/pppd debug connect $DIALER_SCRIPT
This is my dialdppp-up-script:
#!/bin/sh
#
# This is my diald ppp dialer script.
#
#
/usr/sbin/chat -v \
TIMEOUT 40 \
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 '' \
ogin:--ogin: tschulze \
assword: mypassword
Please let me know if I need to send anything else. BTW, I have also
read man (8) diald, and that is why a number of settings normally
found in a ppp options file are in the diald.conf and there is no
reference in this setup to a ppp options file.
TIA,
Sean.