Hi There

I'm having trouble getting pppd to work properly with diald. My connect
script works perectly, hoever pppd just hangs on invocation. An strace of
the pppd doesn't appear to show anything interesting (AFAI can see).
Dialling using the exact same pppd etc with the normal RH ppp dial scripts
works perfectly.

Any help would be much appreciated.

My version numbers:

RH 5.2 i386
Linux 2.2.1
diald-0.98.2
ppp-2.3.5

I've included my logs below:

/var/log/messages:

Feb 17 18:19:19 gel01 diald[7160]: Using fifo /etc/diald/diald.ctl
Feb 17 18:19:19 gel01 diald[7160]: Proxy device established on interface sl0
Feb 17 18:19:19 gel01 diald[7160]: Diald initial setup completed.
Feb 17 18:19:19 gel01 diald[7160]: Trigger: udp       192.168.0.1/61655
196
.7.0.138/53
Feb 17 18:19:19 gel01 diald[7160]: Calling site 196.7.0.145
Feb 17 18:19:20 gel01 diald[7160]: Running connector (pid = 7165).
Feb 17 18:19:20 gel01 connect: Initializing Modem
Feb 17 18:19:21 gel01 connect: Dialing system
Feb 17 18:19:56 gel01 connect: Connected
Feb 17 18:19:56 gel01 connect: Logging in
Feb 17 18:19:56 gel01 chat[7173]: timeout set to 5 seconds
Feb 17 18:19:56 gel01 chat[7173]: expect (ogin:)
Feb 17 18:19:56 gel01 chat[7173]:  33600/ARQ^M
Feb 17 18:19:57 gel01 chat[7173]: UUNET Internet Africa
ts15.cpt:slot:3/mod:4 Lo
gin:
Feb 17 18:19:57 gel01 chat[7173]:  -- got it
Feb 17 18:19:57 gel01 chat[7173]: send (XXXXXXXXXXX^M)
Feb 17 18:19:57 gel01 chat[7173]: timeout set to 45 seconds
Feb 17 18:19:57 gel01 chat[7173]: expect (word:)
Feb 17 18:19:57 gel01 chat[7173]: XXXXXXXXXXXXX^M
Feb 17 18:19:57 gel01 chat[7173]:  -- got it
Feb 17 18:19:57 gel01 chat[7173]: send (XXXXXXXXXXXXX^M)
Feb 17 18:19:58 gel01 connect: Protocol started
Feb 17 18:19:58 gel01 diald[7160]: Connected to site 196.7.0.145
Feb 17 18:19:58 gel01 diald[7160]: Running pppd (pid = 7176).
Feb 17 18:19:58 gel01 pppd[7176]: pppd 2.3.5 started by root, uid 0
Feb 17 18:20:58 gel01 diald[7160]: pppd startup timed out. Check your pppd
optio
ns. Killing pppd.
Feb 17 18:20:58 gel01 diald[7160]: Nonzero exit status (7) on command
'/sbin/rou
te add default metric 1  netmask 0.0.0.0 dev sl0'
Feb 17 18:20:58 gel01 pppd[7176]: Terminating on signal 2.
Feb 17 18:20:59 gel01 pppd[7176]: Exit.
Feb 17 18:20:59 gel01 diald[7160]: Nonzero exit status (7) on command
'/sbin/rou
te add default metric 1  netmask 0.0.0.0 dev sl0'
Feb 17 18:20:59 gel01 diald[7160]: Disconnected. Call duration 61 seconds.
Feb 17 18:20:59 gel01 diald[7160]: IP transmitted 1904 bytes and received 0
byte
s.
Feb 17 18:20:59 gel01 diald[7160]: Closing /dev/ttyS0
Feb 17 18:21:00 gel01 diald[7160]: Delaying 30 seconds before clear to dial.

strace  of pppd pid 7176:
[root@gel01 /root]# strace -p 7176
open("/dev/ttyS0", O_RDWR

and sits there.....

there _is_ receive activity on the modem...

My /etc/diald.conf file:

accounting-log /var/log/diald.log
fifo /etc/diald/diald.ctl
mode ppp
connect "/etc/diald/connect.gel"
device /dev/ttyS0
speed 38400
modem
lock
crtscts
local 192.168.0.1
remote 196.7.0.145
dynamic
defaultroute
include /usr/lib/diald/standard.filter
debug 0x0008
pppd-options "debug"

my connect script can be found attached....

My ppp options file only contains "lock".

Anybody have any ideas?

Thanks!

Daniel
--
Daniel Chalef
Freelance Technology Consulting    -    http://www.zoo.co.za/cv

connect.gel

Reply via email to