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)

# 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,

 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,


 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
pppd connect "chat -v -f" file myprovider.options

give and myprovider.options the nessecary path as
"" AT&F
OK ATDT0211177570
gin:--ogin: "myusername at the provider"
word: mypassword

name "myname for pap or chap.secrets"
lcp-echo-interval 20
lcp-echo-failure 5

Hope that will fight your question.


Andreas Hack

 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

 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