[H-GEN] Help with tpg dial up using ppp, please show me what to put in /etc/ppp/ppp-chat
Tony Nugent
tony at linuxworks.com.au
Fri Mar 21 18:02:40 EST 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
On Sat Mar 22 2003 at 01:05, "t" wrote:
> [ Humbug *General* list - semi-serious discussions about Humbug and ]
> [ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
>
> Hi
>
> I am trying to connect to tpg with my redhat 7.2, but I cannot get on using
> pppd. I am running pppd from the command line with the scripts which
> follow.
> Can anyone suggest where I am going wrong. I cannot work out what is needed
> after the second "ser Access Verification" from the server, anyone know. I
> know I have to add to the /etc/ppp-chat-isp a assword line. But I will do
> that once I have the second "ser Access Verification" working.
> Anyone have a /etc/ppp-chat-isp script they use for tpg and want to share it
> with me, it would save a great deal of pain!
You seem to be attempting to do a terminal login before envoking
ppp, and I suspect that you don't need to go through this process.
However, if you do then I would recommend doing a "manual" dialup
using minicom to see the exact sequence of strings and replies that
are needed to get it working.
> Please tell me if you need more info.
>
> Thanks
>
>
> Tony
>
> ----------start /etc/ppp/options
> debug
> lock
That is all I would have in that file. Put the rest of the options
into a file in the /etc/ppp/peers/ directory and use them with the
"call" option on the command line. (See the man page). By doing it
like this, you can have multiple configuration files (eg, for
multiple ISPs) and use any of them whenever you want. I posted
examples of this only recently in this list when explaining how to
configure a dial-in ppp server.
> /dev/ttyS1
> 115200
> modem
> crtscts
> asyncmap 0
> defaultroute
> noipdefault
> lcp-max-configure 60
> connect "/usr/sbin/chat -v -t 240 -f /etc/ppp/chat-isp"
> ----------end /etc/ppp/options
Take care... if you are having hassles then start with the basics
using default options (ie, as few as possible specified) and only
add what you really need from there. eg, I'm not sure why you want
to specify the asyncmap or lcp-max-configure parameters.
> ----------start /etc/ppp-chat-isp
> iTIMEOUT 10
> ABORT 'BUSY'
> ABORT "NO ANSWER"
> '' \rAT
> TIMEOUT 30
> OK ATDTphoneNo
> CONNECT ""
> 115200 ""
> Verification ""
> Username: myUserName
> Verification myUserName
> ----------end /etc/ppp-chat-isp
I've been using this as a "generic" chat script for several ISPs and
it seems to work well. It is a pity that you need to chat your way
through a terminal login (are you sure that you really need to do it
like that?)
ABORT 'NO DIALTONE'
ABORT RING
ABORT BUSY
ABORT 'NO CARRIER'
ABORT 'NO ANSWER'
ABORT 'DELAY NUMBER WAIT'
REPORT CONNECT
TIMEOUT 60
'' ATZ
OK \dATL3
OK \dATX4W2
# SAY "Dialing \T"
OK \dATDT\T
CONNECT
> ---------start /var/log/messages
> Mar 22 01:12:25 p100 pppd[1579]: pppd 2.4.1 started by root, uid 0
...
> Mar 22 01:12:48 p100 chat[1580]: ^MUser Access Verification
> Mar 22 01:12:48 p100 chat[1580]: -- got it
> Mar 22 01:12:48 p100 chat[1580]: send (myPassWord^M)
> Mar 22 01:12:48 p100 pppd[1579]: Serial connection established.
> Mar 22 01:12:48 p100 pppd[1579]: Using interface ppp0
> Mar 22 01:12:48 p100 pppd[1579]: Connect: ppp0 <--> /dev/ttyS1
> Mar 22 01:12:49 p100 pppd[1579]: Warning - secret file /etc/ppp/pap-secrets
> has world and/or group access
That's bad, anyone can read your passwords, so do this:
chmod 600 /etc/ppp/pap-secrets
> Mar 22 01:12:53 p100 pppd[1579]: Serial line is looped back.
> Mar 22 01:12:53 p100 pppd[1579]: Connection terminated.
> Mar 22 01:12:53 p100 pppd[1579]: Hangup (SIGHUP)
> Mar 22 01:12:53 p100 pppd[1579]: Exit.
Hmm, "serial line is looped back" is a way of saying that it is
"talking to itself". Authentication probably failed.
Redhat 7.2 comes with vwdial (the redhat ppp dialer is a gui
interface for it). It has always worked for me to quickly set
things up, give it a try.
Cheers
Tony
--
* 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