Thank you for all the help with my previous problem of setting an internet
gateway/router
in a LAN with win95 clients.

I finally got the internet router working. I can now connect the internet
manually via minicom, 
then launch the web browser from the win95 clients. Most of the time the
connection is 
good and fast (new 56K ext modem on router).

My new problems are as follows:
1) After I type in my username and password in minicom, receive a garbage
readout, and press
ALT-Q, I still need to type
       # pppd
       # route add default ppp0
to get connected. I tried adding the "route add default ppp0" to the
etc/rc.d/rc.inet1 file and
upon re-booting and re-dialling with minicom, there is some modem response
(some kind of
dialing and attempt to connect is made judging from the sound and lights)
but no connection 
is made.
How can I get around this? This problem is related to the next problem.

2) I read the ppp-HOWTO, installed the ppp-on, ppp-on-dial and ppp-off
files in 
/etc/ppp and tried executing ppp-on but it doesn't work. There is, again,
some modem activity 
but no connection is made. I figure that I need to solve problem (1) first.

I will place the ppp-on, ppp-on-dial, ppp-off and options files at the end
of this message in case they
might be useful.

TIA,
Shaggy



# /etc/ppp/ppp-on
#
  #!/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=[deleted]      # The telephone number for the connection
  ACCOUNT=[deleted]          # The account name for logon (as in 'George
Burns')
  PASSWORD=[deleted]         # 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 to 'ppp-on-dialer'
  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
  #
  #
  exec /usr/sbin/pppd debug /dev/ttyS1 38400 \
          $LOCAL_IP:$REMOTE_IP \
          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.
  #
  /usr/sbin/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         ''                              \
          ogin:--ogin:    $ACCOUNT                        \
          assword:        $PASSWORD
------------------------------
# /etc/ppp/ppp-off
#
  #!/bin/sh
  #
  #
  # Determine the device to be terminated.
  #
  if [ "$1" = "" ]; then
          DEVICE=ppp0
  else
          DEVICE=$1
  fi
  #
  #
  # If the ppp0 pid file is present then the program is running. Stop it.
  if [ -r /var/run/$DEVICE.pid ]; then
          kill -INT `cat /var/run/$DEVICE.pid`
  #
  # If the kill did not work then there is no process running for this
  # pid. It may also mean that the lock file will be left. You may wish
  # to delete the lock file at the same time.
          if [ ! "$?" = "0" ]; then
                  rm -f /var/run/$DEVICE.pid
                  echo "ERROR: Removed stale pid file"
                  exit 1
          fi
  #
  # Success. Let pppd clean up its own junk.
          echo "PPP link to $DEVICE terminated."
          exit 0
  fi
  #
  # The ppp process is not running for ppp0
  echo "ERROR: PPP link is not active on $DEVICE"
  exit 1

-----------------------------------------
# /etc/ppp/options
# 

0.0.0.0:
/dev/ttyS1
defaultroute
38400
asyncmap 0
crtscts
lock
modem
proxyarp



Reply via email to