On Wed, 30 Jun 1999, you wrote:

> Perhaps this is not obvious, but we'll need to see your /etc/ppp/options, as well 
> as your pap-secrets -- Of course, replace the username and password with
> a well-known fake   (u=Scott, pw-Tiger, for example)
> 

Since several of you have offered to take a look at the config files - here
they are - all suggestions welcomed.  The files are essentially as provided
with the distribution with the changes for my ISP.

The problem is (summary of the thread so far) that diald dials OK and connects
but can't negotiate a PPP session.  It sends LCP ConfReq packets, gets no
response and dies.   

Thanks;

Alex

# This is /etc/diald/diald.conf (/etc/diald.conf has a link to this file) 
accept any 420 any
include /etc/diald/phone.filter
debug 0x0008
device /dev/ttyS1
speed 115200
lock
mode ppp
dynamic
local 10.0.0.1
remote 10.0.0.2
pppd-options name papname noauth 
up-delay 5
defaultroute    
modem
crtscts
connect /etc/diald/connect
redial-timeout 10
fifo /etc/diald/diald.ctl

This is the connect script (/etc/diald/connect) - kinda long but quite simple really

#!/bin/sh
# Copyright (c) 1996, Eric Schenk.
#
# This script is intended to give an example of a connection script that
# uses the "message" facility of diald to communicate progress through
# the dialing process to a diald monitoring program such as dctrl or diald-top.
# It also reports progress to the system logs. This can be useful if you
# are seeing failed attempts to connect and you want to know when and why
# they are failing.
#
# This script requires the use of chat-1.9 or greater for full
# functionality. It should work with older versions of chat,
# but it will not be able to report the reason for a connection failure.

# Configuration parameters

# The initialization string for your modem

# MODEM_INIT="ATZ&C1&D2%C0"
MODEM_INIT="AT&F"

# The phone number to dial
PHONE_NUMBER="5551212"

# 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.       <************note************
USER_NAME=""

# The chat sequence to recongnize that the remote system
# is asking for your password.
PASSWD_CHAT_SEQ=""

# The string to send in response to the request for your password.
PASSWORD=""

# 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=""

# 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 \
        "" ATDP$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"

The ppp options file has only two entries to help me figure out what's up


# /etc/ppp/options
debug
kdebug 7

The pap-secrets file looks like this;

# Secrets for authentication using PAP
# client                server  secret                  IP addresses
papname *       password                *

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

Reply via email to