Hi all,

Over the last day or so I've tried out the suggestions I've received and gathered some 
more information about my continuing diald problem.

System information:

PowerMac 9600 running LinuxPPC 1999 (red hat 5 I think)
Kernel 2.2.6
pppd version 2.3.7
diald version 0.99.1

I have attached all the diald configuration files and scripts at the bottom of 
this message.  I have also included an example of how a manual connection proceeds.

I have tried Lazarus' solution of using Ethertap.  To do this, I had to recompile the 
kernel.  
I now have both AF_PACKET and ETHERTAP as modules.  Ethertap seems to load OK. 

However, diald seems to fail in much the same way as it always has done ie ppp 
never really gets going.  As ever, suggestions are very welcome!

  Iain Stevenson



My diald.conf is:- 

mode ppp
fifo /etc/ppp/diald.fifo
connect /etc/ppp/chat_script.diald
disconnect "/usr/sbin/chat -t15 -V -f /etc/ppp/chat_disconnect_script"
device /dev/modem
speed 115200
modem
lock
crtscts
local   192.168.0.1
remote  192.168.0.2
dynamic
defaultroute
debug 24
include /usr/lib/diald/standard.filter

My chat_script.diald is:-

#!/bin/sh
#
exec /usr/sbin/chat -v    \
TIMEOUT 3 \
ABORT "BUSY" \
ABORT "NO CARRIER" \
ABORT "NO DIALTONE" \
"" AT\&F \
TIMEOUT 20 \
OK ATD08450885128 \
CONNECT ""

My ppp options are:-

name    UKXYZ/pqr12
kdebug 7

My pap-secrets is:-

# Secrets for authentication using PAP
# client        server  secret                  IP addresses
UKXYZ/pqr12     *       mypassword

When I start diald from a terminal window, this is what gets written to 
/var/log/messages 
as it tries to set up a connection:-


Sep 25 21:57:21 Wallace diald[881]: keepup parsing error. Got token 'tcp.ssl'. Not a 
known tcp service
port.
Sep 25 21:57:21 Wallace diald[881]: parse string: 'tcp 120 tcp.dest=tcp.ssl'
Sep 25 21:57:21 Wallace diald[881]: keepup parsing error. Got token 'tcp.ssl'. Not a 
known tcp service
port.
Sep 25 21:57:21 Wallace diald[881]: parse string: 'tcp 120 tcp.source=tcp.ssl'
Sep 25 21:57:21 Wallace diald[882]: Using fifo /etc/ppp/diald.fifo
Sep 25 21:57:21 Wallace diald[882]: Proxy device established on interface tap0
Sep 25 21:57:22 Wallace diald[882]: start tap0: SIOCSIFMETRIC: Invalid argument
Sep 25 21:57:22 Wallace diald[882]: start tap0: SIOCSIFMTU: Invalid argument
Sep 25 21:57:22 Wallace diald[882]: Diald initial setup completed.
Sep 25 21:57:44 Wallace diald[882]: Trigger: udp       192.168.0.1/1028   
194.131.104.225/53
Sep 25 21:57:44 Wallace diald[882]: Calling site 192.168.0.2
Sep 25 21:57:45 Wallace chat[887]: timeout set to 3 seconds
Sep 25 21:57:45 Wallace chat[887]: abort on (BUSY)
Sep 25 21:57:45 Wallace chat[887]: abort on (NO CARRIER)
Sep 25 21:57:45 Wallace chat[887]: abort on (NO DIALTONE)
Sep 25 21:57:45 Wallace chat[887]: send (AT&F^M)
Sep 25 21:57:45 Wallace chat[887]: timeout set to 20 seconds
Sep 25 21:57:45 Wallace chat[887]: expect (OK)
Sep 25 21:57:45 Wallace chat[887]: AT&F^M^M
Sep 25 21:57:45 Wallace chat[887]: OK
Sep 25 21:57:45 Wallace chat[887]:  -- got it
Sep 25 21:57:45 Wallace chat[887]: send (ATD08450885128^M)
Sep 25 21:57:45 Wallace chat[887]: expect (CONNECT)
Sep 25 21:57:45 Wallace chat[887]: ^M
Sep 25 21:57:48 Wallace chat[887]: ATD08450885128^M^M
Sep 25 21:57:48 Wallace chat[887]: CONNECT
Sep 25 21:57:48 Wallace chat[887]:  -- got it
Sep 25 21:57:48 Wallace chat[887]: send (^M)
Sep 25 21:57:48 Wallace diald[882]: Connected to site 192.168.0.2
Sep 25 21:57:48 Wallace diald[882]: Running pppd (pid = 888).
Sep 25 21:57:48 Wallace pppd[888]: pppd 2.3.7 started by root, uid 0
Sep 25 21:58:48 Wallace diald[882]: pppd startup timed out. Check your pppd options. 
Killing pppd.
Sep 25 21:58:48 Wallace diald[882]: start tap0: SIOCSIFMETRIC: Invalid argument
Sep 25 21:58:48 Wallace diald[882]: start tap0: SIOCSIFMTU: Invalid argument
Sep 25 21:58:48 Wallace diald[882]: start tap0: SIOCADDRT: File exists
Sep 25 21:58:48 Wallace diald[882]: start tap0: SIOCADDRT: File exists
Sep 25 21:58:48 Wallace pppd[888]: Terminating on signal 2.
Sep 25 21:58:48 Wallace pppd[888]: Exit.
Sep 25 21:58:48 Wallace diald[882]: start tap0: SIOCSIFMETRIC: Invalid argument
Sep 25 21:58:48 Wallace diald[882]: start tap0: SIOCSIFMTU: Invalid argument
Sep 25 21:58:48 Wallace diald[882]: start tap0: SIOCADDRT: File exists
Sep 25 21:58:48 Wallace diald[882]: start tap0: SIOCADDRT: File exists
Sep 25 21:58:48 Wallace diald[882]: Reopening modem device
Sep 25 21:58:59 Wallace diald[882]: Trigger: udp       192.168.0.1/1028   
194.131.104.225/53
Sep 25 21:59:05 Wallace diald[882]: disconnector: +++
Sep 25 21:59:05 Wallace diald[882]: Closing /dev/modem

The Ethertap device, tap0, appears to be set up ok (on the assumption that an ifconfig 
shows it!).

For reference, this is how a manual connection using pppd procedes:-

[root@Wallace root]# dial
AT&F
OK
ATD08450885128
CONNECTSerial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/modem
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdd3e6fe5> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xdd3e6fe5> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <mru 1524> <asyncmap 0xa0000> <auth chap MD5> <pcomp> 
<accomp> < 13 09
03 00 c0 7b 7e 1f 28>]
sent [LCP ConfRej id=0x1 < 13 09 03 00 c0 7b 7e 1f 28>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xdd3e6fe5> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x2 <mru 1524> <asyncmap 0xa0000> <auth chap MD5> <pcomp> 
<accomp>]
sent [LCP ConfNak id=0x2 <auth pap>]
rcvd [LCP ConfReq id=0x3 <mru 1524> <asyncmap 0xa0000> <auth pap> <pcomp> <accomp>]
sent [LCP ConfAck id=0x3 <mru 1524> <asyncmap 0xa0000> <auth pap> <pcomp> <accomp>]
sent [PAP AuthReq id=0x1 user="UKXYZ/pqr12" password="mypassword"]
rcvd [PAP AuthAck id=0x1 "Protocol: "]
Remote message: Protocol:
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 158.43.173.249>]
sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 158.43.173.249>]
rcvd [IPCP ConfNak id=0x1 <addr 62.188.132.140>]
sent [IPCP ConfReq id=0x2 <addr 62.188.132.140> <compress VJ 0f 01>]
rcvd [LCP ProtRej id=0x4 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
rcvd [IPCP ConfAck id=0x2 <addr 62.188.132.140> <compress VJ 0f 01>]
local  IP address 62.188.132.140
remote IP address 158.43.173.249
Script /etc/ppp/ip-up started; pid = 847
Script /etc/ppp/ip-up finished (pid 847), status = 0x0

-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to