[H-GEN] Problems with ppp connecting to UQ modembank with RH7.2
Tony
deja_tony_123 at yahoo.com
Wed Feb 26 20:04:36 EST 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
I mean to include the /etc/ppp/ppp-on and /etc/ppp/ppp-on-dialer scripts, so
here they are
-----------------begin /etc/ppp/ppp-on script---------------------
#!/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=uqModemBankNumber # The telephone number for the connection
ACCOUNT=myUserName # The account name for logon (as in 'George Burns')
PASSWORD=myPassword # 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/ttyS1 38400 \
asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT
-----------------end /etc/ppp/ppp-on script---------------------
-----------------start /etc/ppp/ppp-on-dialer script---------------------
#!/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 ''
-----------------end /etc/ppp/ppp-on-dialer script---------------------
--- Tony <deja_tony_123 at yahoo.com> wrote:
> [ Humbug *General* list - semi-serious discussions about Humbug and ]
> [ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
>
> Hi
>
> I am having some problems connecting to the uq modem bank using Redhat 7.2.
> I
> have got to the stage that the modem connects and it comes up with "Connect:
> ppp0 <--> /dev/ttyS1" which seems promising, however right after I get this
> the
> modem disconnects. Can someone please tell me whats going on with this
> connection. Better still, anyone want to point me in the direction of all
> the
> files I need in /etc/ppp which work with the uq modem bank, in particular
> the files /etc/ppp-on and /etc/ppp-on-dialer. If anyone could email me these
> files I would most appreciate it. Below is some of /var/log/messages
>
> Thanks
>
> Tony
>
> ----snip begin /var/log/messages-----
> Feb 27 06:29:09 rock pppd[1812]: pppd 2.4.1 started by root, uid 0
> Feb 27 06:29:10 rock chat[1813]: timeout set to 3 seconds
> Feb 27 06:29:10 rock chat[1813]: abort on (\nBUSY\r)
> Feb 27 06:29:10 rock chat[1813]: abort on (\nNO ANSWER\r)
> Feb 27 06:29:10 rock chat[1813]: abort on (\nRINGING\r\n\r\nRINGING\r)
> Feb 27 06:29:10 rock chat[1813]: send (rAT^M)
> Feb 27 06:29:10 rock chat[1813]: expect (OK)
> Feb 27 06:29:10 rock chat[1813]: rAT^M^M
> Feb 27 06:29:10 rock chat[1813]: OK
> Feb 27 06:29:10 rock chat[1813]: -- got it
> Feb 27 06:29:10 rock chat[1813]: send (ATH0^M)
> Feb 27 06:29:10 rock chat[1813]: timeout set to 30 seconds
> Feb 27 06:29:10 rock chat[1813]: expect (OK)
> Feb 27 06:29:10 rock chat[1813]: ^M
> Feb 27 06:29:10 rock chat[1813]: ATH0^M^M
> Feb 27 06:29:10 rock chat[1813]: OK
> Feb 27 06:29:10 rock chat[1813]: -- got it
> Feb 27 06:29:10 rock chat[1813]: send (ATDT38640198^M)
> Feb 27 06:29:10 rock chat[1813]: expect (CONNECT)
> Feb 27 06:29:10 rock chat[1813]: ^M
> Feb 27 06:29:32 rock chat[1813]: ATDT38640198^M^M
> Feb 27 06:29:32 rock chat[1813]: CONNECT
> Feb 27 06:29:32 rock chat[1813]: -- got it
> Feb 27 06:29:32 rock chat[1813]: send (^M)
> Feb 27 06:29:32 rock pppd[1812]: Serial connection established.
> Feb 27 06:29:33 rock pppd[1812]: Using interface ppp0
> Feb 27 06:29:33 rock pppd[1812]: Connect: ppp0 <--> /dev/ttyS1
> Feb 27 06:29:50 rock pppd[1812]: Hangup (SIGHUP)
> Feb 27 06:29:50 rock pppd[1812]: Modem hangup
> Feb 27 06:29:50 rock pppd[1812]: Connection terminated.
> Feb 27 06:29:51 rock pppd[1812]: Exit.
> Feb 27 06:30:35 rock pppd[1842]: pppd 2.4.1 started by root, uid 0
> Feb 27 06:30:36 rock chat[1843]: timeout set to 3 seconds
> Feb 27 06:30:36 rock chat[1843]: abort on (\nBUSY\r)
> Feb 27 06:30:36 rock chat[1843]: abort on (\nNO ANSWER\r)
> Feb 27 06:30:36 rock chat[1843]: abort on (\nRINGING\r\n\r\nRINGING\r)
> Feb 27 06:30:36 rock chat[1843]: send (rAT^M)
> Feb 27 06:30:36 rock chat[1843]: expect (OK)
> Feb 27 06:30:36 rock chat[1843]: NO CARRIER^M
> Feb 27 06:30:36 rock chat[1843]: rAT^M^M
> Feb 27 06:30:36 rock chat[1843]: OK
> Feb 27 06:30:36 rock chat[1843]: -- got it
> Feb 27 06:30:36 rock chat[1843]: send (ATH0^M)
> Feb 27 06:30:36 rock chat[1843]: timeout set to 30 seconds
> Feb 27 06:30:36 rock chat[1843]: expect (OK)
> Feb 27 06:30:36 rock chat[1843]: ^M
> Feb 27 06:30:36 rock chat[1843]: ATH0^M^M
> Feb 27 06:30:36 rock chat[1843]: OK
> Feb 27 06:30:36 rock chat[1843]: -- got it
> Feb 27 06:30:36 rock chat[1843]: send (ATDT38640198^M)
> Feb 27 06:30:36 rock chat[1843]: expect (CONNECT)
> Feb 27 06:30:36 rock chat[1843]: ^M
> Feb 27 06:31:00 rock chat[1843]: ATDT38640198^M^M
> Feb 27 06:31:00 rock chat[1843]: CONNECT
> Feb 27 06:31:00 rock chat[1843]: -- got it
> Feb 27 06:31:00 rock chat[1843]: send (^M)
> Feb 27 06:31:00 rock pppd[1842]: Serial connection established.
> Feb 27 06:31:00 rock pppd[1842]: Using interface ppp0
> Feb 27 06:31:00 rock pppd[1842]: Connect: ppp0 <--> /dev/ttyS1
> Feb 27 06:31:31 rock pppd[1842]: LCP: timeout sending Config-Requests
> Feb 27 06:31:31 rock pppd[1842]: Connection terminated.
> Feb 27 06:31:31 rock pppd[1842]: Receive serial link is not 8-bit clean:
> Feb 27 06:31:31 rock pppd[1842]: Problem: all had bit 7 set to 0
> Feb 27 06:31:32 rock pppd[1842]: Hangup (SIGHUP)
> Feb 27 06:31:32 rock pppd[1842]: Exit.
> ----snip begin /var/log/messages-----
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list