I'm having some problems with diald on Rh5.1 and
hope someone can help. The problem is that when I enable diald and it dials in,
it freezes after the modems negotiate. (I can kill it, but it will just hang
there if I don't.) When I launch my connection manually, it works
fine.
I am connecting using chap to AT&T worldnet, I
use a script to connect rather than the GUI within Xwindows. I have been to the
diald home page and read the FAQ. I followed the instructions for the section on
diald freezing up during the connection process, without any luck. I also have
IP Masquerading set up to put my little LAN on the net. I have rebuilt the
kernel with slip support for diald.
Here are the various scripts and config files I am
using.
ppp-on
#!/usr/bin/perl
#
# Script to establish connection from a Linux system to
# worldnet via PPP.
#
$DOMAIN="worldnet.att.net";
$SEARCH=$DOMAIN;
$NAMESERVER1="204.127.160.1";
$NAMESERVER2="204.127.129.1";
$NAMESERVER3="204.127.129.2";
mailto:$NAME="*********\@worldnet.att.net;
$PHONE="3244003"; # Cambridge, MA
$MODEM="/dev/modem";
#
# Script to establish connection from a Linux system to
# worldnet via PPP.
#
$DOMAIN="worldnet.att.net";
$SEARCH=$DOMAIN;
$NAMESERVER1="204.127.160.1";
$NAMESERVER2="204.127.129.1";
$NAMESERVER3="204.127.129.2";
mailto:$NAME="*********\@worldnet.att.net;
$PHONE="3244003"; # Cambridge, MA
$MODEM="/dev/modem";
$command="/usr/sbin/pppd name \"".$NAME."\"".
" -d connect \'/usr/sbin/chat -t 45 -v ABORT BUSY \"\" ATDT".
$PHONE." CONNECT \"\"\' ".$MODEM.
" 57600 noipdefault modem defaultroute crtscts";
$ENV{'PATH'} = ''; # Make $ENV{'PATH'} untainted
system($command);
" -d connect \'/usr/sbin/chat -t 45 -v ABORT BUSY \"\" ATDT".
$PHONE." CONNECT \"\"\' ".$MODEM.
" 57600 noipdefault modem defaultroute crtscts";
$ENV{'PATH'} = ''; # Make $ENV{'PATH'} untainted
system($command);
diald.conf
mode ppp
connect /usr/sbin/ppp-on
device /dev/ttyS2
speed 57600
modem
lock
crtscts
pppd-options name *********@worldnet.att.net
local 192.168.0.2
remote 192.168.0.23
dynamic
defaultroute
include /usr/lib/diald/standard.filter
connect /usr/sbin/ppp-on
device /dev/ttyS2
speed 57600
modem
lock
crtscts
pppd-options name *********@worldnet.att.net
local 192.168.0.2
remote 192.168.0.23
dynamic
defaultroute
include /usr/lib/diald/standard.filter
chap secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
*********@worldnet.att.net * "*****************"
# client server secret IP addresses
*********@worldnet.att.net * "*****************"
Again, it only fails when using diald to launch the connection. I appreciate anyone taking the time to help. I am fairly new to Linux, so if anyone can give a detailed explaination of what I am doing wrong, I would greatly appreciate it.
--
Adrian Mink
[EMAIL PROTECTED]
