Followed your advice in your reply to my e-mail Subjet: Diald won't authenticate!!!
can't dialin!!!
Now my ip-up and ip-down scripts are not functioning. I think that is why diald won't
stay up. I guess there is an invalid argument in both ip scripts.
All my log files are attached.
Marc Dufresne
Corporate IT Officer
Phone: 613-543-3704
Fax: 613-543-2847
E-mail: [EMAIL PROTECTED]
Website: http://www.parks.on.ca
#------------------------------------------------
# Modified on May 27, 2000 by Marc Dufresne
# Set up diald connection
#------------------------------------------------
#RocketPort Serial card
device /dev/ttyR0
#Debug activation VERBOSE Mode
debug 0x0008
#Protocol to use
mode ppp
#Local static IP assigned on ppp interface
local 216.129.3.153
#Remote IP on ISP end
remote 205.210.145.133
#Netmask for WAN Link
netmask 255.255.255.248
#When link up, reroute to real PPP interface. If not done performance
#loss of 20 percent.
#reroute
#Default route to SLIP interface used as proxy.
defaultroute
#When link is up, execute this script to call another process.
#ip-up
#ip-down
#Script used to connect to ISP
connect "/etc/ppp/ppp-onR0"
#Lock device so no other process uses it
lock
#DO NOT SPECIFY these in PPP options file. They will conflict with
#Diald configuration.
modem
crtscts
speed 115200
#Set Timers & retry counts. See Diald man pages.
connect-timeout 120
redial-timeout 60
start-pppd-timeout 120
died-retry-count 0
redial-backoff-start 4
redial-backoff-limit 300
dial-fail-limit 10
pppd-options name inetslpc2
#Set MTU to match EQL
mtu 1500
#----------------------------------
# Time restrictions for link
# Mon-Sun 6am to 6pm
#----------------------------------
restrict 6:00:00 18:00:00 * * *
up
restrict * * * * *
down
#Standard Filters
include /usr/lib/diald/standard.filter
#!/bin/sh
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command. However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=932-0105 # The telephone number for the connection
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE
DIALER_SCRIPT=/etc/ppp/ppp-on-dialR0
exec /usr/sbin/pppd /dev/ttyR0 115200 connect $DIALER_SCRIPT
#!/bin/bash
# This file should not be modified -- make local changes to
# /etc/ppp/ip-up.local instead
LOGDEVICE=$6
REALDEVICE=$1
export PATH=/sbin:/usr/sbin:/bin:/usr/bin
[ -x /etc/ppp/ip-up.local ] && /etc/ppp/ip-up.local $*
# Used for clustering heartbeat monitoring stuff.
[ -x /etc/ppp/ip-up.heart ] && /etc/ppp/ip-up.heart $*
/etc/sysconfig/network-scripts/ifup-post ifcfg-${LOGDEVICE}
exit 0
May 27 11:37:03 localhost diald[863]: SIGTERM. Termination request received.
May 27 11:37:03 localhost diald[863]: Diald is dieing with code 0
May 27 11:37:06 localhost diald[895]: Proxy device established on interface tap0
May 27 11:37:06 localhost diald[895]: start tap0: SIOCSIFMETRIC: Operation not
supported
May 27 11:37:06 localhost diald[895]: start tap0: RTNETLINK answers: No such process
May 27 11:37:06 localhost diald[895]: Diald initial setup completed.
May 27 11:37:06 localhost diald[895]: Calling site 205.210.145.133
May 27 11:37:07 localhost diald[895]: Connected to site 205.210.145.133
May 27 11:37:07 localhost diald[895]: Running pppd (pid = 903).
May 27 11:37:07 localhost pppd[902]: pppd 2.3.10 started by root, uid 0
May 27 11:37:07 localhost pppd[903]: pppd 2.3.10 started by root, uid 0
May 27 11:37:08 localhost chat[905]: timeout set to 3 seconds
May 27 11:37:08 localhost chat[905]: abort on (\nBUSY\r)
May 27 11:37:08 localhost chat[905]: abort on (\nNO ANSWER\r)
May 27 11:37:08 localhost chat[905]: abort on (\nRINGING\r\n\r\nRINGING\r)
May 27 11:37:08 localhost chat[905]: send (rAT^M)
May 27 11:37:08 localhost chat[905]: expect (OK)
May 27 11:37:08 localhost chat[905]: rAT^M^M
May 27 11:37:08 localhost chat[905]: OK
May 27 11:37:08 localhost chat[905]: -- got it
May 27 11:37:08 localhost chat[905]: send (ATH0^M)
May 27 11:37:09 localhost chat[905]: timeout set to 30 seconds
May 27 11:37:09 localhost chat[905]: expect (OK)
May 27 11:37:09 localhost chat[905]: ^M
May 27 11:37:09 localhost chat[905]: ATH0^M^M
May 27 11:37:09 localhost chat[905]: OK
May 27 11:37:09 localhost chat[905]: -- got it
May 27 11:37:09 localhost chat[905]: send (ATDT932-0105^M)
May 27 11:37:09 localhost chat[905]: expect (CONNECT)
May 27 11:37:09 localhost chat[905]: ^M
May 27 11:37:28 localhost chat[905]: ATDT932-0105^M^M
May 27 11:37:28 localhost pppd[903]: Using interface ppp0
May 27 11:37:28 localhost pppd[903]: Connect: ppp0 <--> /dev/ttyR0
May 27 11:37:32 localhost pppd[903]: Remote message: Login Succeeded
May 27 11:37:32 localhost pppd[903]: local IP address 216.129.3.153
May 27 11:37:32 localhost pppd[903]: remote IP address 205.210.145.133
May 27 11:37:32 localhost pppd[903]: Can't execute /etc/ppp/ip-up: Invalid argument
May 27 11:37:32 localhost diald[895]: start ppp0: SIOCSIFMETRIC: Operation not
supported
May 27 11:37:39 localhost chat[905]: alarm
May 27 11:37:39 localhost chat[905]: Failed
May 27 11:37:39 localhost chat[905]: Can't restore terminal parameters: Invalid
argument
May 27 11:37:39 localhost pppd[902]: Connect script failed
May 27 11:37:39 localhost pppd[903]: Hangup (SIGHUP)
May 27 11:37:39 localhost pppd[903]: Modem hangup
May 27 11:37:39 localhost pppd[903]: Can't execute /etc/ppp/ip-down: Invalid argument
May 27 11:37:39 localhost pppd[903]: Connection terminated.
May 27 11:37:39 localhost pppd[903]: Connect time 0.2 minutes.
May 27 11:37:39 localhost pppd[903]: Sent 273 bytes, received 427 bytes.
May 27 11:37:39 localhost pppd[903]: Exit.
May 27 11:37:39 localhost diald[895]: Link died on remote end.
May 27 11:37:39 localhost diald[895]: start tap0: SIOCSIFMETRIC: Operation not
supported
May 27 11:37:39 localhost diald[895]: start tap0: RTNETLINK answers: No such process
May 27 11:37:39 localhost diald[895]: stop ppp0: RTNETLINK answers: No such process
May 27 11:37:39 localhost kernel: ppp: ppp0 not active
May 27 11:37:39 localhost diald[895]: stop ppp0: SIOCSIFFLAGS: Device not configured
May 27 11:37:39 localhost diald[895]: Closing /dev/ttyR0
May 27 11:37:40 localhost pppd[902]: Exit.
May 27 11:37:57 localhost diald[895]: SIGTERM. Termination request received.
May 27 11:37:57 localhost diald[895]: Diald is dieing with code 0
# Modified by Marc Dufresne May 27, 2000
# Parameters passed to pppd for RocketPort Serial card
#
# NOTE: Ensure ppp options do not conflict with diald.conf options.
# Options that can be specified in this file must be removed and placed
# in the diald.conf in order for diald to work correctly.
noauth
asyncmap 0x0
kdebug 0
refuse-chap
escape FF
-vj
# Secrets for authentication using PAP
# client server secret IP addresses
inetslpc2 * isppassword
# OUTBOUND CONNECTIONS
# Here you should add your userid password to connect to your providers via
# pap. The * means that the password is to be used for ANY host you connect
# to. Thus you do not have to worry about the foreign machine name. Just
# replace password with your password.
# If you have different providers with different passwords then you better
# remove the following line.
#hostname * password
# INBOUND CONNECTIONS
#client hostname <password>
# If you add "auth login -chap +pap" to /etc/mgetty+sendfax/login.config,
# all users in /etc/passwd can use their password for pap-authentication.
#
# Every regular user can use PPP and has to use passwords from /etc/passwd
#* hostname ""
# UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
# other accounts that should not be able to use pppd! Replace hostname
# with your local hostname.
#guest hostname "*" -
#master hostname "*" -
#root hostname "*" -
#support hostname "*" -
#stats hostname "*" -
May 27 11:37:07 localhost pppd[903]: pppd 2.3.10 started by root, uid 0
May 27 11:37:28 localhost pppd[903]: Using interface ppp0
May 27 11:37:28 localhost pppd[903]: Connect: ppp0 <--> /dev/ttyR0
May 27 11:37:32 localhost pppd[903]: Remote message: Login Succeeded
May 27 11:37:32 localhost pppd[903]: local IP address 216.129.3.153
May 27 11:37:32 localhost pppd[903]: remote IP address 205.210.145.133
May 27 11:37:32 localhost pppd[903]: Can't execute /etc/ppp/ip-up: Invalid argument
May 27 11:37:39 localhost pppd[902]: Connect script failed
May 27 11:37:39 localhost pppd[903]: Hangup (SIGHUP)
May 27 11:37:39 localhost pppd[903]: Modem hangup
May 27 11:37:39 localhost pppd[903]: Can't execute /etc/ppp/ip-down: Invalid argument
May 27 11:37:39 localhost pppd[903]: Connection terminated.
May 27 11:37:39 localhost pppd[903]: Connect time 0.2 minutes.
May 27 11:37:39 localhost pppd[903]: Sent 273 bytes, received 427 bytes.
May 27 11:37:39 localhost pppd[903]: Exit.
May 27 11:37:40 localhost pppd[902]: Exit.
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec chat -v \
TIMEOUT 3 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' \rAT \
'OK-+++\c-OK' ATH0 \
TIMEOUT 30 \
OK ATDT$TELEPHONE \
CONNECT ''
#!/bin/bash
# This file should not be modified -- make local changes to
# /etc/ppp/ip-down.local instead
LOGDEVICE=$6
REALDEVICE=$1
[ -x /etc/ppp/ip-down.local ] && /etc/ppp/ip-down.local $*
/etc/sysconfig/network-scripts/ifdown-post ifcfg-${LOGDEVICE}
exit 0