[H-GEN] Help with tpg dial up using ppp, please show me what to put in /etc/ppp/ppp-chat
James Iseppi
iseppi at gil.com.au
Fri Mar 21 11:47:21 EST 2003
On Sat, Mar 22, 2003 at 01:05:53AM +1000, t wrote:
>
> 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!
I generally found it was better to have a short and sweet chat script
that got you far enough for pppd to takeover and do all the
authentication. The chat script i use with my current ISP is
attached below. This is the same script i used with TPG at one point. It
was generated with pppconfig on Debian.
If you do go with the simple chat script option, you will need to add
your username and password to either pap-secrets or chap-secrets in the
/etc/ppp/ directory depending on which type of authentication TPG use.
I can't remember which they use, but you should be able to see it using
the debug option in pppd. If all else fails just try it with your
authentication details in both files, pppd should choose the right one.
<Big snip>
> Mar 22 01:12:49 p100 pppd[1579]: Warning - secret file /etc/ppp/pap-secrets
> has world and/or group access
I would fix the permissions on that file if you do authentication in
pppd, because that's one of the places your username and password could
be stored.
> Mar 22 01:12:53 p100 pppd[1579]: Serial line is looped back.
I have read that this error could be caused by a problem with the PPP server
being too slow to start negotiating the connection but i don't recall seeing
that problem with TPG. the silent option could help by making pppd wait
until it receives a ppp packet from the other end before it starts talking.
Hope this helps
James Iseppi
#----------Begin chat script-------------------------------#
# This chatfile was generated by pppconfig 2.0.10.
# Please do not delete any of the comments. Pppconfig needs them.
#
# ispauth PAP
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO
DIAL TON
E' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
# ispnumber
OK-AT-OK ATDT########
# ispconnect
CONNECT \d\c
# prelogin
# ispname
# isppassword
# postlogin
# end of pppconfig stuff
#----------End chat script---------------------------------#
#----------Begin peers file--------------------------------#
# This optionfile was generated by pppconfig 2.0.10.
# This file should go into /etc/ppp/peers
#
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/TPG"
/dev/ttyS3
115200
defaultroute
noipdefault
user <put username here>
remotename TPG
#----------End peers file----------------------------------#
#----------Begin example pap-secrets file------------------#
# Secrets for authentication using PAP
# client server secret
<username> <value of the remotename option> <your password>
#----------End example pap-secrets file--------------------#
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.humbug.org.au/pipermail/general/attachments/20030322/2c3ba6c0/attachment.sig>
More information about the General
mailing list