Subject: Re:Debugging my modem (was Ameritrade v NetBSD1.6.0)
To: None <netbsd-users@netbsd.org>
From: Todd Gruhn <tgruhn2@mail.com>
List: netbsd-users
Date: 02/09/2003 23:48:58
Here is the entire script -- I dont wish to keep sending it, because
it contains an account and password, and I will eventually forget
to edit them out GRRR! <<-() The output from syslogd is below that.

I pulled the old copy of pppd off the tape and installed it. Both 
copies are ver 2.4.0, and they both act the same. Is it safe to 
assume something changed on my ISPs end of the link just yet?


#!/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=,,703,366,2787 # The telephone number for the connection,  CONNECTS to MEGAPIPE 
ACCOUNT=****** # The account name for logon (as in 'George Burns')
PASSWORD=*******     # The password for this account (and 'Gracie Allen')
# ACCOUNT and PASSWD are now specified on command line

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.255  # The proper netmask if needed (read manpage)
# was 255.255.255.0  #
# 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; gets us logged into the ppp-machine
# 
# 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/tty00 57600 \
        asyncmap 0xa0000 noccp nomagic kdebug 0 $LOCAL_IP:$REMOTE_IP \
        noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT
# asyncmap 20A0000; delete 'escape FF'


Feb  9 10:28:19 gandalf pppd[2210]: Modem hangup
Feb  9 10:28:19 gandalf pppd[2210]: Connection terminated.
Feb  9 10:28:19 gandalf pppd[2210]: Connect time 5.9 minutes.
Feb  9 10:28:19 gandalf pppd[2210]: Sent 508 bytes, received 669 bytes.
Feb  9 10:28:21 gandalf pppd[2210]: Exit.
Feb  9 10:30:33 gandalf pppd[2231]: pppd 2.4.0 started by todd, uid 0
Feb  9 10:31:00 gandalf pppd[2231]: Serial connection established.
Feb  9 10:31:00 gandalf pppd[2231]: Using interface ppp0
Feb  9 10:31:00 gandalf pppd[2231]: Connect: ppp0 <--> /dev/tty00
Feb  9 10:31:01 gandalf pppd[2231]: rcvd [LCP ConfReq id=0x1 <mru 1514> <asyncmap 0x0> <magic 0xb7d7a456> <pcomp> <accomp>]
Feb  9 10:31:01 gandalf pppd[2231]: sent [LCP ConfReq id=0x1 <mru 542> <asyncmap 0x20a0000> <pcomp> <accomp>]
Feb  9 10:31:01 gandalf pppd[2231]: sent [LCP ConfRej id=0x1 <magic 0xb7d7a456>]
Feb  9 10:31:01 gandalf pppd[2231]: rcvd [LCP ConfAck id=0x1 <mru 542> <asyncmap 0x20a0000> <pcomp> <accomp>]
Feb  9 10:31:01 gandalf pppd[2231]: rcvd [LCP ConfReq id=0x2 <mru 1514> <asyncmap 0x0> <pcomp> <accomp>]
Feb  9 10:31:01 gandalf pppd[2231]: sent [LCP ConfNak id=0x2 <asyncmap 0xa0000>]
Feb  9 10:31:01 gandalf pppd[2231]: rcvd [LCP ConfReq id=0x3 <mru 1514> <asyncmap 0xa0000> <pcomp> <accomp>]
Feb  9 10:31:01 gandalf pppd[2231]: sent [LCP ConfAck id=0x3 <mru 1514> <asyncmap 0xa0000> <pcomp> <accomp>]
Feb  9 10:31:01 gandalf pppd[2231]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <compress VJ 0f 01>]
Feb  9 10:31:01 gandalf pppd[2231]: rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 00> <addr 208.244.242.5>]
Feb  9 10:31:01 gandalf pppd[2231]: sent [IPCP ConfAck id=0x1 <compress VJ 0f 00> <addr 208.244.242.5>]
Feb  9 10:31:01 gandalf pppd[2231]: rcvd [IPCP ConfNak id=0x1 <addr 208.244.242.247>]
Feb  9 10:31:01 gandalf pppd[2231]: sent [IPCP ConfReq id=0x2 <addr 208.244.242.247> <compress VJ 0f 01>]
Feb  9 10:31:01 gandalf pppd[2231]: rcvd [IPCP ConfAck id=0x2 <addr 208.244.242.247> <compress VJ 0f 01>]
Feb  9 10:31:01 gandalf gated[175]: EVENT Add ppp0 208.244.242.247 -> 208.244.242.5 <PointToPoint Multicast>
Feb  9 10:31:01 gandalf pppd[2231]: local  IP address 208.244.242.247
Feb  9 10:31:01 gandalf gated[175]: EVENT <UpDown> ppp0 index 3 <Up PointToPoint Multicast>
Feb  9 10:31:01 gandalf pppd[2231]: remote IP address 208.244.242.5
Feb  9 10:31:01 gandalf gated[175]: EVENT UpDown MTU ppp0 208.244.242.247 -> 208.244.242.5 <Up PointToPoint Multicast>
Feb  9 10:31:01 gandalf pppd[2231]: rcvd [CCP ConfReq id=0x1 < 11 05 00 01 04>]
Feb  9 10:31:01 gandalf pppd[2231]: Unsupported protocol 'Compression Control Protocol' (0x80fd) received
Feb  9 10:31:01 gandalf pppd[2231]: sent [LCP ProtRej id=0x2 80 fd 01 01 00 09 11 05 00 01 04]

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup