Request for Help with pap/chap pppd dial-in script

Request for Help with pap/chap pppd dial-in script

Post by Jon Hughes and Alice Pinar » Thu, 13 Aug 1998 04:00:00



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

 
 
 

Request for Help with pap/chap pppd dial-in script

Post by David » Thu, 13 Aug 1998 04:00:00



Quote:

> 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'.
...

> 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         ''                                    \

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.

Quote:> exec /usr/sbin/pppd debug /dev/ttyS1 38400

> Thank you very much,
> Alice

good luck,

Dave

 
 
 

Request for Help with pap/chap pppd dial-in script

Post by Andreas Ha » Thu, 13 Aug 1998 04:00:00


On Wed, 12 Aug 1998 11:27:43 -0400, Jon Hughes and Alice Pinard


>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

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


 
 
 

Request for Help with pap/chap pppd dial-in script

Post by Bob Horvat » Thu, 13 Aug 1998 04:00:00



> On Wed, 12 Aug 1998 11:27:43 -0400, Jon Hughes and Alice Pinard

> >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. 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.

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/

 
 
 

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

Hi,

We have clients connecting to pppd 2.4.2b1.
Clients are able to connect using PAP, CHAP, MS-CHAP, MS-CHAP-v2 if
the pppd configuration is set up to require a specific protocol, eg:

If we change /etc/ppp/options to not request a specific protocol,
clients can only connect using PAP or MS-CHAP-V2. Client trying to
connect through CHAP or MS-CHAP fail and Pppd logs the error "peer
refused to authenticate: terminating link"

pppd configuration:

We'd like our clients to be able to connect using PAP, CHAP, MS-CHAP
or MS-CHAP-v2, the protocol being negotiated by server and client...

I suppose it's a pppd configuration issue; any help is highly
appreciated.
Thx.
dan

2. UDF file system

3. Howto dial ISP running NT4 - chap, pap, ms-chap?

4. Seti@Home 'TKSETI' GUI Front end

5. pppd dial ins and , "LCP: timeout sending Config-Requests"

6. Kernel Source files

7. pppd chap+pap configuration examples wanted

8. removing kerberos?

9. PAP & CHAP dial in

10. one script for pap/chap and manual authentication

11. PPP script for client callback with PAP/CHAP

12. PAP/CHAP login script tester

13. PPPD Dial-In, FreeBSD 4.3, "LCP: timeout sending Config-Requests".