There is nothing wrong...
You'll need to edit the configuration files to set up the rules it will use
to determine if it will dial out or not.
By default things such as dns requests or INN or sendmail get it to dial out
(since sendmail runs frequently it normally brings up the link).
Read the docs.
-JMS
[EMAIL PROTECTED]
----- Original Message -----
From: Stephen Lavelle <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; Linux Vic <[EMAIL PROTECTED]>; linux-net
<[EMAIL PROTECTED]>
Sent: Tuesday, May 04, 1999 8:05 PM
Subject: diald - keeps dialling!
> I am using diald on a RH 5.2 stock 2.0.36 kernel
> IP Masq works ok but when i have set up diald it just keeps dialling out
> regardless of whether a user on the network has made a request or not.
Below
> are the excerpts from diald.conf, connect and rc.3 and init.d
> I usually connect to my isp on the command line using:
> cd /etc/sysconfig/network-scripts ; ./ifup-ppp ifcfg-ppp0&
> Sorry for the long mail.Help appreciated
> Regards,
> Stephen Lavelle
> ____________________________________________________________________
> RC.3
> lrwxrwxrwx 1 root root 22 May 5 01:26 K5diald ->
> /etc/rc.d/init.d/diald
> ____________________________________________________________________
> INIT.D
> -rwxr-xr-x 1 root users 995 Mar 28 14:51 diald
> _____________________________________________________________________
> DIALD.CONF
> # stuff to set up the diald connection
> device /dev/cua1
> speed 115200
> lock
> mode ppp
> # We may get another terminal server, thus use
> # 'dynamic' and do not tell PPP the IP number of the other end
> # For use with gated, comment out the 'dynamic' option, and
> # set remote to be the same as local
> dynamic
> local 10.0.0.1
> remote 10.0.0.2
> pppd-options name anappp :
> # Delay sending packets for 5 seconds after PPP device opens -
> # this allows routes to be established back to the appropriate dialup
> server.
> up-delay 5
> defaultroute
> modem
> crtscts
> connect /etc/diald/connect
> redial-timeout 10
> fifo /etc/diald/diald.ctl
> # restrict 9:00:00 17:45:00 1 * *
> # or-restrict 9:00:00 17:45:00 2 * *
> # or-restrict 9:00:00 17:45:00 3 * *
> # or-restrict 9:00:00 17:45:00 4 * *
> # or-restrict 9:00:00 17:45:00 5 * *
> # up
> __________________________________________________________________
> CONNECT
> # Configuration parameters
>
> # The initialization string for your modem
>
> MODEM_INIT="ATZ&C1&D2%C0"
>
> # The phone number to dial
> PHONE_NUMBER="00000000"
>
> # The chat sequence to recognize that the remote system
> # is asking for your user name.
> USER_CHAT_SEQ="ogin:--ogin:--ogin:--ogin:--ogin:--ogin:--ogin:"
>
> # The string to send in response to the request for your user name.
> # Set this to empty if you are using PAP or CHAP.
> USER_NAME=""
>
> # The chat sequence to recongnize that the remote system
> # is asking for your password.
> PASSWD_CHAT_SEQ="ssword:"
>
> # The string to send in response to the request for your password.
> PASSWORD="passssss"
>
> # The prompt the remote system will give once you are logged in
> # If you do not define this then the script will assume that
> # there is no command to be issued to start up the remote protocol.
> PROMPT=""
> # The command to issue to start up the remote protocol
> PROTOCOL_START="ppp"
>
> # The string to wait for to see that the protocol on the remote
> # end started OK. If this is empty then no check will be performed.
> START_ACK=""
>
> # Pass a message on to diald and the system logs.
> function message () {
> [ $FIFO ] && echo "message $*" >$FIFO
> logger -p local2.info -t connect "$*"
> }
>
> # Initialize the modem. Usually this just resets it.
> message "Initializing Modem"
> chat TIMEOUT 5 "" $MODEM_INIT TIMEOUT 45 OK ""
> if [ $? != 0 ]; then
> message "Failed to initialize modem"
> exit 1
> fi
>
> # Dial the remote system.
>
> >/var/log/diald.connect
>
> message "Dialing $PHONE_NUMBER"
> chat -r /var/log/diald.connect \
> REPORT CONNECT \
> TIMEOUT 45 \
> ABORT "NO CARRIER" \
> ABORT BUSY \
> ABORT "NO DIALTONE" \
> ABORT ERROR \
> "" ATDT$PHONE_NUMBER \
> CONNECT ""
> case $? in
> 0) message "$(cat /var/log/diald.connect)";;
> 1) message "Chat Error"; exit 1;;
> 2) message "Chat Script Error"; exit 1;;
> 3) message "Chat Timeout"; exit 1;;
> 4) message "No Carrier"; exit 1;;
> 5) message "Busy"; exit 1;;
> 6) message "No DialTone"; exit 1;;
> 7) message "Modem Error"; exit 1;;
> *)
> esac
>
> # We're connected try to log in.
> if [ $USER_NAME ]; then
> message "Loggin in"
> chat \
> TIMEOUT 5 \
> $USER_CHAT_SEQ \\q$USER_NAME \
> TIMEOUT 45 \
> $PASSWD_CHAT_SEQ $PASSWORD
> if [ $? != 0 ]; then
> message "Failed to log in"
> exit 1
> fi
> fi
>
> # We logged in, try to start up the protocol (provided that the
> # user has specified how to do this)
>
> if [ $PROMPT ]; then
> message "Starting Comm Protocol"
> chat TIMEOUT 15 $PROMPT $PROTOCOL_START
> if [ $? != 0 ]; then
> message "Prompt not received"
> exit 1
> fi
> fi
>
> if [ $START_ACK ]; then
> chat TIMEOUT 15 $START_ACK ""
> if [ $? != 0 ]; then
> message "Failed to start Protocol"
> exit 1
> fi
> fi
>
> # Success!
> message "Protocol started"
>
____________________________________________________________________________
> __
>
>
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com http://archive.redhat.com
> To unsubscribe: mail [EMAIL PROTECTED] with
> "unsubscribe" as the Subject.
>
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]