It is currently Tue, 17 May 2022 01:49:50 GMT



 
Author Message
 Request for Help with pap/chap pppd dial-in script
Hi. I'm running Linux kernel 2.0.3 and ppp version 2.2.0.
I've been going through the ppp-howto and I'm at the point where i'm
making the ppp-on script. When it describes the ppp-on script for PAP/CHAP
dialups it gives an example of a 'simpler script'. I used that, added in
the phone number for my isp and tried to start pppd as suggested inthe
how-to. I got a message about an unexpected line termination. After
looking a bit more I realized I needed to add the 'exec pppd....' string.
I still got an unexpected line termination. Could someone look at my
script and tell me what I'm missing? I'm sure it's something they
explained in the non-PAP/CHAP section but I'm having trouble pulling out
what's needed for all connections.

Here is my present script (replace ###-#### with my ISP's number)

#!/bin/sh  
#  
# This is part 2 of the ppp-on script. It will perform the connection  
#protocol for the desired connection.  
#  exec /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###-####                          \
          CONNECT         ''                                    \
exec /usr/sbin/pppd debug /dev/ttyS1 38400

Thank you very much,
Alice



 Sun, 28 Jan 2001 03:00:00 GMT   
 Request for Help with pap/chap pppd dial-in script
Jon Hughes and Alice Pinard wrote:

I had a problem with my ISP a little while ago. Like you, I was
disconnected as soon as the connection was established. What I did, I
took out that '' chars following connect, and since then, I haven't had
any problem. You might want to give it a try.

good luck,

Dave



 Sun, 28 Jan 2001 03:00:00 GMT   
 Request for Help with pap/chap pppd dial-in script
On Wed, 12 Aug 1998 11:27:43 -0400, Jon Hughes and Alice Pinard

Hi Alice,

here's a different sulution for your problem:

Instead of calling pppd from chat (what I think what you do) call chat
from pppd.
Here I give you my setup:

ppp-up: the connection file:
+ additional checking
dev=/dev/modem
pppd connect "chat -v -f myprovider.chat" file myprovider.options

give myprovider.chat and myprovider.options the nessecary path as
well.

myprovider.chat:
TIMEOUT 60
ABORT "NO CARRIER"
ABORT BUSY
ABORT "NO DIALTONE"
ABORT ERROR
"" AT&F
OK ATDT0211177570
gin:--ogin: "myusername at the provider"
word: mypassword

myprovider.options:
/dev/modem
28800
crtscts
lock
name "myname for pap or chap.secrets"
noipdefault
defaultroute
lcp-echo-interval 20
lcp-echo-failure 5

Hope that will fight your question.

Andreas

Andreas Hack

andreas.h...@duesseldorf.netsurf.de



 Sun, 28 Jan 2001 03:00:00 GMT   
 Request for Help with pap/chap pppd dial-in script

I agree.  I wrote up instructions for people at my ISP that others have easily
changed to theirs at

http://www.horvath.com/linux/ppp/



 Sun, 28 Jan 2001 03:00:00 GMT   
 
   [ 4 post ] 

Similar Threads

1. pppd - PAP, CHAP, MS-CHAP, MS-CHAP-v2 protocol negotiation

2. pppd chap+pap configuration examples wanted

3. PAP & CHAP dial in

4. Dialin to NT 4.0 RAS - CHAP/PAP troubles

5. PPP script for client callback with PAP/CHAP

6. one script for pap/chap and manual authentication

7. PAP/CHAP login script tester


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software