I just about got diald working. I need more help. I know I can issue the command from the command line: # /usr/sbin/pppd connect "/usr/sbin/chat -v -f /etc/ppp/pppscript" and it will connect my machine to my ISP and dynamically assign it an IP address. I am using a Motorola ISDN TA through my serial port. So I took the sample diald.conf and modified it to suit my sytem (see diald.conf). I started diald with the daemon (see /usr/sbin/diald -daemon) option so I could see what it was doing. My machine connected (see /var/log/messages), but the ping (see ping brie.com) did not work. I investigated the problem and it looks as if the ppp is interfering with the proxy slip (see syslog) diald has formed. I am not sure I understand how "connect" functions. It looks as if it appears in several places. What modifications should I make? brian. darkstar:# cat /var/log/syslog Dec 17 15:00:36 darkstar pppd[2061]: ppp not replacing existing default route to sl0[0.0.0.0] darkstar:# /usr/sbin/diald -daemon diald[2050]: Running connect (pid = 2060). diald[2050]: Connect script timed out. Killing script. diald[2050]: child process 2060 terminated with signal 9 diald[2050]: Delaying 30 seconds before clear to dial. darkstar:# cat /var/log/messages Dec 17 14:51:13 darkstar diald[2006]: Running connect (pid = 2014). Dec 17 14:51:13 darkstar pppd[2015]: pppd 2.2.0 started by root, uid 0 Dec 17 14:51:13 darkstar chat[2016]: timeout set to 60 seconds Dec 17 14:51:13 darkstar chat[2016]: abort on (ERROR) Dec 17 14:51:13 darkstar chat[2016]: abort on (BUSY) Dec 17 14:51:13 darkstar chat[2016]: abort on (NO CARRIER) Dec 17 14:51:13 darkstar chat[2016]: abort on (NO DIALTONE) Dec 17 14:51:13 darkstar chat[2016]: send (AT%A4=0%A2=95@B0=1^M) Dec 17 14:51:13 darkstar chat[2016]: expect (OK) Dec 17 14:51:13 darkstar chat[2016]: AT%A4=0%A2=95@B0=1^M^M Dec 17 14:51:13 darkstar chat[2016]: OK -- got it Dec 17 14:51:13 darkstar chat[2016]: send (atd19164480131^M) Dec 17 14:51:14 darkstar chat[2016]: timeout set to 75 seconds Dec 17 14:51:14 darkstar chat[2016]: expect (CONNECT) Dec 17 14:51:14 darkstar chat[2016]: ^M Dec 17 14:51:15 darkstar chat[2016]: atd19164480131^M^M Dec 17 14:51:15 darkstar chat[2016]: CONNECT -- got it Dec 17 14:51:15 darkstar pppd[2015]: Serial connection established. Dec 17 14:51:16 darkstar pppd[2015]: Using interface ppp0 Dec 17 14:51:16 darkstar pppd[2015]: Connect: ppp0 <--> /dev/cua1 Dec 17 14:51:21 darkstar pppd[2015]: Remote message: Dec 17 14:51:21 darkstar pppd[2015]: local IP address 207.215.85.18 Dec 17 14:51:21 darkstar pppd[2015]: remote IP address 206.171.130.58 Dec 17 14:52:12 darkstar diald[2006]: Connect script timed out. Killing script. Dec 17 14:53:13 darkstar pppd[2015]: Modem hangup Dec 17 14:53:13 darkstar pppd[2015]: Connection terminated. Dec 17 14:53:13 darkstar pppd[2015]: Exit. Dec 17 14:53:14 darkstar diald[2006]: Delaying 30 seconds before clear to dial. darkstar:# cat /etc/diald.conf mode ppp connect /usr/lib/diald/myconnect device /dev/cua1 speed 115200 modem lock crtscts local 192.168.0.12 remote 192.168.0.20 dynamic defaultroute include /usr/lib/diald/standard.filter darkstar:# cat /usr/lib/diald/myconnect #!/bin/sh /usr/sbin/pppd connect "/usr/sbin/chat -v -f /etc/ppp/pppscript" darkstar:# cat /etc/ppp/options lock defaultroute noipdefault modem /dev/cua1 115200 crtscts debug passive asyncmap 0 name "bigbrie" darkstar:# cat /etc/ppp/pppscript TIMEOUT 60 ABORT ERROR ABORT BUSY ABORT "NO CARRIER" ABORT "NO DIALTONE" "" "AT%A4=0%A2=95@B0=1" OK "atd19164480131" TIMEOUT 75 CONNECT darkstar:# cat /etc/ppp/pap-secrets # PAP authentication file: /etc/ppp/pap-secrets # This file should have a permission of 600. # ~# chmod 600 /etc/ppp/pap-secrets # Username Server Password IP addresses "bigbrie" * "mypasswd" darkstar:# ping brie.com ping: unknown host brie.com -------- Brian E. Lavender http://www.brie.com/brian/ "For every complex problem, there is a solution that is simple, neat, and wrong." -- H. L. Mencken - To unsubscribe from this list: send the line "unsubscribe linux-diald" in the body of a message to [EMAIL PROTECTED]
