[CLUE-Tech] command line initiation of ppp erroring out

Ed Young ejy at techangle.com
Wed Mar 14 11:30:07 MST 2001


Clubies, 


I'm  Trying to initiate a ppp session by issuing commands using the
/etc/ppp/ppp-on script but it keeps erroring out with the following
errors:

NOTES: 
1. (Note the password isn't xxxxxx, but is correct in the actual script.
)
2. I'm running RH/KRUD 7.0,  kernel 2.4.1, and pppd version 2.4.0.
3. I'm able to successfully dial-up using the RH gui ppp dialer/config
app. 

[root at Gerakina bin]# /etc/ppp/ppp-on
+ TELEPHONE=3037514321
+ ACCOUNT=xxxxxx
+ PASSWORD=xxxxxxx
+ LOCAL_IP=0.0.0.0
+ REMOTE_IP=0.0.0.0
+ NETMASK=255.255.255.0
+ export TELEPHONE ACCOUNT PASSWORD
+ DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
+ exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS3 38400 asyncmap
20A0000 escape FF kdebug 0 0.0.0.0:0.0.0.0 noipdefault netmask
255.255.255.0 defaultroute connect /etc/ppp/ppp-on-dialer
/usr/sbin/pppd: The remote system is required to authenticate itself
/usr/sbin/pppd: but I couldn't find any suitable secret (password) for
it to use to do so.
/usr/sbin/pppd: (None of the available passwords would let it use an IP
address.)
[root at Gerakina bin]#


I've passed -x to !/bin/sh to switch on verbose mode. The actual ppp-on
script
looks like this:

#!/bin/sh -x
#
# 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=3037514321 # The telephone number for the connection
ACCOUNT=xxxxx  # The account name for logon (as in 'George Burns')
PASSWORD=xxxxxxxx  # The password for this account (and 'Gracie Allen')
LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.0 # The proper netmask if needed
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script which dials the phone and logs
# in.  Please use the absolute file name as the $PATH variable is not
# used on the connect option.  (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS3 38400 \
 asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
 noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT


The permissions of /etc/ppp/ppp-on and /etc/ppp/ppp-on-dialer are are
577 and the files chap-secrets and
pap-secrets are 400.
  /etc/ppp:
  total 80
  drwxr-xr-x    4 root     root         4096 Mar 10 12:32 .
  drwxr-xr-x   37 root     root         4096 Mar 10 16:12 ..
* -r--------    1 root     root           96 Mar 10 16:12 chap-secrets
  -rw-r--r--    1 root     root            0 Aug  3  2000 ioptions
  -rwxr-xr-x    1 root     root          267 Mar  9  2000 ip-down
  -rwxr-xr-x    1 root     root          302 Jul 12  2000 ip-up
  -rw-r--r--    1 root     root        10041 Dec 28 09:15 options
  -rw-r--r--    1 root     root          650 Dec 28 09:15 options.ttyXX
* -r--------    1 root     root         1540 Mar 10 16:12 pap-secrets
  -rw-------    1 root     root         1522 Dec 28 09:15
pap-secrets.bak
  -rw-------    1 root     root          110 Mar  2 20:33
pap-secrets.rpmsave
  drwxr-xr-x    3 root     root         4096 Dec 28 09:15 peers
  drwxr-xr-x    2 root     root         4096 Feb 23 15:55 plugins
  -rwxr-xr-x    1 root     root          967 Aug  8  1995 ppp-off
  -rwxr-xr-x    1 root     root         1645 Mar 10 16:26 ppp-on
  -rwxr-xr-x    1 root     root          407 Mar 10 12:30 ppp-on-dialer
  -rw-r--r--    1 root     root           47 Dec 11 14:13
pppoe-server-options
  -rw-r--r--    1 root     root         3586 Dec 11 14:13 pppoe.conf
  -rw-r--r--    1 root     ed             48 Mar 10 16:12 resolv.conf


Any help or pointers is greatly appreciated, 

Ed



More information about the clue-tech mailing list