PPP help needed to linux ppp server

PPP help needed to linux ppp server

Post by z_kei.. » Sat, 01 Feb 1997 04:00:00



I need some help trying to determine why my dialup PPP to a Linux PPP
server doesn't work.  I have a 2.0.28 Slackware system with pppd 2.2.0.
I'm dialing out on /dev/cua1.  This is dialing into another 2.0.28 linux
machine with mgetty 1.0.0 with AutoPPP and pppd 2.2.0.  I'm assigned an IP
address upon dialup (or depending on which phone number, I know which IP
so I can set it beforehand if necessary).  The server works with windows95
and NT dialup networking.  So I figure the server is set up ok.  I can
post those settings as well.  Below are the settings I have for my system.  
I have a pap-secrets file with the following format:
<username>        <server name>     <password>

/etc/ppp/ppp-on (phone # taken out)
=========================================================================
#!/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=xxx-xxxx      # The telephone number for the connection
# ACCOUNT=              # The account name for logon
# PASSWORD=             # The password for this account
# 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 modem crtscts /dev/cua1 57600 debug \
         connect $DIALER_SCRIPT

/etc/ppp/ppp-on-dialer
===========================================================================
#!/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           'BUSY'                          \
        ABORT           'NO ANSWER'                     \
        ABORT           'RING'                          \
        ''              ATZ                             \
        'OK-+++\c-OK'   ATH0                            \
        TIMEOUT         50                              \
        OK              ATDT$TELEPHONE                  \
        CONNECT         ""                                            
#       ogin:--ogin:    $ACCOUNT                        \
#       assword:        $PASSWORD

/etc/ppp/options
========================================================================
lock
/dev/cua1
57600
modem
usehostname
defaultroute
ipcp-accept-local
ipcp-accept-remote
crtscts
passive

/var/adm/ppplog  (ip address taken out)
========================================================================
Jan 31 13:36:28 rowan pppd[330]: pppd 2.2.0 started by root, uid 0
Jan 31 13:36:47 rowan pppd[330]: Serial connection established.
Jan 31 13:36:48 rowan pppd[330]: Using interface ppp0
Jan 31 13:36:48 rowan pppd[330]: Connect: ppp0 <--> /dev/cua1
Jan 31 13:36:48 rowan pppd[330]: sent [LCP ConfReq id=0x1 <mru 1500>
        <magic 0x3418ff7c> <pcomp> <accomp>]
Jan 31 13:36:49 rowan pppd[330]: rcvd [LCP ConfReq id=0x1 <mru 1500>
        <auth pap> <magic 0x128640f0> <pcomp> <accomp>]
Jan 31 13:36:49 rowan pppd[330]: sent [LCP ConfRej id=0x1 <auth pap>]
Jan 31 13:36:49 rowan pppd[330]: rcvd [LCP ConfReq id=0x2 <mru 1500>
        <magic 0x128640f0> <pcomp> <accomp>]
Jan 31 13:36:49 rowan pppd[330]: sent [LCP ConfAck id=0x2 <mru 1500>
        <magic 0x128640f0> <pcomp> <accomp>]
Jan 31 13:36:51 rowan pppd[330]: sent [LCP ConfReq id=0x1 <mru 1500>
        <magic 0x3418ff7c> <pcomp> <accomp>]
Jan 31 13:36:52 rowan pppd[330]: rcvd [LCP ConfAck id=0x1 <mru 1500>
        <magic 0x3418ff7c> <pcomp> <accomp>]
Jan 31 13:36:52 rowan pppd[330]: sent [IPCP ConfReq id=0x1
        <addr xxx.xx.xxx.xxx> <compress VJ 0f 01>]
Jan 31 13:36:52 rowan pppd[330]: sent [CCP ConfReq id=0x1 <bsd v1 12>]
Jan 31 13:36:52 rowan pppd[330]: rcvd [LCP TermReq id=0x3]
Jan 31 13:36:52 rowan pppd[330]: LCP terminated at peer's request
Jan 31 13:36:52 rowan pppd[330]: sent [LCP TermAck id=0x3]
Jan 31 13:36:55 rowan pppd[330]: Connection terminated.
Jan 31 13:36:55 rowan pppd[330]: Exit.