PPP script, PAP problems

PPP script, PAP problems

Post by Richard Ashto » Mon, 16 Dec 1996 04:00:00



Hello Everyone, yes its me again,

I am very close to getting ppp access to my isp, but I am still
having problems,
This is my new connect file called "ans.ppp"

        exec pppd connect 'chat -f chatscript' /dev/ttyS1

This is the file "chatscript"

        ABORT BUSY ABORT "NO CARRIER" TIMEOUT 45 '' ATZ OK /
        ATDT$???????? CONNECT

In case you were wondering my isp uses PAP for authentication.when I run
the file "ans.ppp", all goes well until PAP, then the connection is
terminated, I have set up my /etc/ppp/pap-secrets file as below...

        #PAP authentication file
        #dynamic ip allocation
        #client         server          secret
        username        *               password

Finally here is a copy of my /var/log/messages output when I connect,

Dec 15 16:35:16 localhost pppd[301]: pppd 2.2.0 started by root, uid 0
Dec 15 16:35:39 localhost pppd[301]: Serial connection established.
Dec 15 16:35:40 localhost pppd[301]: Using interface ppp0
Dec 15 16:35:40 localhost pppd[301]: Connect: ppp0 <--> /dev/ttyS1
Dec 15 16:35:43 localhost pppd[301]: PAP authentication failure for
Dec 15 16:35:43 localhost pppd[301]: Connection terminated.
Dec 15 16:35:43 localhost pppd[301]: Exit.

I think I am pretty close to getting this up and running but still need
a little more help, any Ideas why my PAP is failing to authenticate
would be appreciated, also thanks to all the replys I have had to the
other postings in the past,  Richard.

 
 
 

PPP script, PAP problems

Post by Steve Vandive » Mon, 16 Dec 1996 04:00:00



> Hello Everyone, yes its me again,

> I am very close to getting ppp access to my isp, but I am still
> having problems,
> This is my new connect file called "ans.ppp"

>         exec pppd connect 'chat -f chatscript' /dev/ttyS1

> This is the file "chatscript"

>         ABORT BUSY ABORT "NO CARRIER" TIMEOUT 45 '' ATZ OK /
>         ATDT$???????? CONNECT

> In case you were wondering my isp uses PAP for authentication.when I run
> the file "ans.ppp", all goes well until PAP, then the connection is
> terminated, I have set up my /etc/ppp/pap-secrets file as below...

>         #PAP authentication file
>         #dynamic ip allocation
>         #client         server          secret
>         username        *               password

> Finally here is a copy of my /var/log/messages output when I connect,

> Dec 15 16:35:16 localhost pppd[301]: pppd 2.2.0 started by root, uid 0
> Dec 15 16:35:39 localhost pppd[301]: Serial connection established.
> Dec 15 16:35:40 localhost pppd[301]: Using interface ppp0
> Dec 15 16:35:40 localhost pppd[301]: Connect: ppp0 <--> /dev/ttyS1
> Dec 15 16:35:43 localhost pppd[301]: PAP authentication failure for
> Dec 15 16:35:43 localhost pppd[301]: Connection terminated.
> Dec 15 16:35:43 localhost pppd[301]: Exit.

> I think I am pretty close to getting this up and running but still need
> a little more help, any Ideas why my PAP is failing to authenticate
> would be appreciated, also thanks to all the replys I have had to the
> other postings in the past,  Richard.

Your chat script is working if you got that far, however your pppd isn't. One minor thing to
check, some ISP are picky about whitespace in your pap-secrets file, use TABS not SPACES.

--
      /_/_/_/   Steve 'Buxx' Vandiver Billings, Mo, USA  

    _/_/_/    _/   _/  _/ _/  _/ _/  "Find out what you
   _/   _/  _/   _/    _/     _/    don't do well, then
 /_/_/_/   _/_/_/   _/ _/  _/ _/   don't do it"  -  Alf

 
 
 

PPP script, PAP problems

Post by Steve Lamoureu » Mon, 16 Dec 1996 04:00:00


I'm having the same kind of problems you're having.
Here's my config files :

/etc/hosts
#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.  Just add the names, addresses
#               and any aliases to this file...
#

# should NEVER be named with the name of the machine.  It causes
problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

127.0.0.1       localhost

# End of hosts.

/etc/HOSTNAME
stevelam.total.net

/etc/networks
#
# networks      This file describes a number of netname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#

loopback        127.0.0.0

# End.

/etc/resolv.conf
domain total.net
nameserver 205.205.159.2
nameserver 205.205.159.3

/etc/ppp/ppp-on         (ou /usr/sbin/ppp-on)
#!/bin/sh
TELEPHONE=481-3998
LOCAL_IP=0.0.0.0
REMOTE_IP=0.0.0.0
NETMASK=255.255.255.0
export TELEPHONE
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
exec /usr/sbin/pppd debug /dev/modem 38400 \
    $LOCAL_IP:$REMOTE_IP \
    connect $DIALER_SCRIPT

/etc/ppp/ppp-on-dialer  (ou /usr/sbin/ppp-on-dialer)
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec 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$TELEPHONE                  \
        CONNECT         ''                              

/etc/ppp/pap-secrets
#local     remote     secret       IP address list
my_userid  *          my_password

/etc/ppp/options
-detach
modem
lock
crtscts
defaultroute
asyncmap 0
mtu 552
mru 552
name my_userid
+pap

Here's my SYSLOG :

Dec 14 18:33:30 localhost syslog: Warning - secret file
/etc/ppp/pap-secrets has world and/or group access
Dec 14 18:34:25 localhost pppd[245]: LCP: timeout sending
Config-Requests
Dec 14 18:34:25 localhost pppd[245]: Receive serial link is not 8-bit
clean:
Dec 14 18:34:25 localhost pppd[245]: Problem: all had bit 7 set to 0

Here's my MESSAGES log :

Dec 14 18:33:31 localhost pppd[245]: pppd 2.2.0 started by root, uid 0
Dec 14 18:33:32 localhost chat[246]: timeout set to 3 seconds
Dec 14 18:33:32 localhost chat[246]: abort on (\nBUSY\r)
Dec 14 18:33:32 localhost chat[246]: abort on (\nNO ANSWER\r)
Dec 14 18:33:32 localhost chat[246]: abort on
(\nRINGING\r\n\r\nRINGING\r)
Dec 14 18:33:32 localhost chat[246]: send (rAT^M)
Dec 14 18:33:32 localhost chat[246]: expect (OK)
Dec 14 18:33:32 localhost chat[246]: ^M
Dec 14 18:33:32 localhost chat[246]: OK -- got it
Dec 14 18:33:32 localhost chat[246]: send (ATH0^M)
Dec 14 18:33:32 localhost chat[246]: timeout set to 30 seconds
Dec 14 18:33:32 localhost chat[246]: expect (OK)
Dec 14 18:33:32 localhost chat[246]: ^M
Dec 14 18:33:33 localhost chat[246]: ^M
Dec 14 18:33:33 localhost chat[246]: OK -- got it
Dec 14 18:33:33 localhost chat[246]: send (ATDT481-3998^M)
Dec 14 18:33:33 localhost chat[246]: expect (CONNECT)
Dec 14 18:33:33 localhost chat[246]: ^M
Dec 14 18:33:54 localhost chat[246]: ^M
Dec 14 18:33:54 localhost chat[246]: CONNECT -- got it
Dec 14 18:33:54 localhost chat[246]: send (^M)
Dec 14 18:33:54 localhost pppd[245]: Serial connection established.
Dec 14 18:33:55 localhost pppd[245]: Using interface ppp0
Dec 14 18:33:55 localhost pppd[245]: Connect: ppp0 <--> /dev/modem
Dec 14 18:34:25 localhost pppd[245]: Connection terminated.
Dec 14 18:34:25 localhost pppd[245]: Exit.

My ISP is also using PAP... any ideas why it doesn't work?

Steve

 
 
 

PPP script, PAP problems

Post by Kalevi Hautanie » Fri, 20 Dec 1996 04:00:00


: I'm having the same kind of problems you're having.
: Here's my config files :

: /etc/ppp/pap-secrets
: #local     remote     secret       IP address list
: my_userid  *          my_password

I had same problem, too. In my case, the cure was to format
/etc/ppp/pap-secrets like this:

--------------------
my_userid
my_password
--------------------

Those dashlines aren't a part of the file. The userid and a password are those
of the server, of course.

--
                        Kalevi J Hautaniemi
----------------------------------------------------------------------------
Marjatankatu 12       |tel: +358-3-364-7446           |fax: +358-3-364-2476

FINLAND               |http://www.sci.fi/~khmi/       |On air:  OH3FG, KO4BC
----------------------------------------------------------------------------

 
 
 

1. P.P.P. (aka Ppp w/Pap Problems :)

I have been using pppd for a long time with no problems, but I'm trying
to set up a new connect, to a "peer" (read isp :) that requires both a
standard login and pap authentication. I have the dial script working,
and the connect goes fine up to the LCP negotiation, which goes as
follows (from syslog with pppd -d):

Aug  4 18:08:04 brightrain pppd[4290]: sent [LCP ConfReq id=0x1 <mru
1500> <asyncmap 0x20a0000> <magic 0x31f61124> <pcomp> <accomp>]
Aug  4 18:08:04 brightrain pppd[4290]: rcvd [LCP ConfAck id=0x1 <mru
1500> <asyncmap 0x20a0000> <magic 0x31f61124> <pcomp> <accomp>]
Aug  4 18:08:06 brightrain pppd[4290]: rcvd [LCP ConfReq id=0x2 <mru
1024> <asyncmap 0x0> <auth pap> <magic 0x2b79c585> <pcomp> <accomp>]
Aug  4 18:08:06 brightrain pppd[4290]: sent [LCP ConfRej id=0x2 <auth
pap>]

It seems that my pc is Rej(ecting, I assume) the <auth pap> request,
even though I have a valid /etc/ppp/pap-secrets file and I have
specified the user in the options file.

Here's about what my /etc/ppp/options was at that time, with a few
changes:

lock
modem
crtscts
noipdefault
netmask 255.255.255.0
defaultroute
asyncmap 20A0000
escape FF

I also have a username and connect script specified. It almost seems
like what would happen if I specified -pap, but it's not in options or
on the command line. And ideas what could be wrong. Please respond via
email; I don't check here often enough. Thanx for any help!

--
----------------------------------------------------------------

                              http://www.mindspring.com/~felker/
----------------------------------------------------------------
Powered by Linux...............Escape the Gates of Hell forever!
----------------------------------------------------------------

2. x-libraries can't be found?!

3. PPP script for client callback with PAP/CHAP

4. RH Linux 7.2 iptables

5. OSR5, SCO-PPP, PAP vs login script for outgoing connections

6. Call for Papers: 2002 USENIX Annual Technical Conference

7. PAP-secrets - PPP-on script

8. Unix Novice - a tricky question

9. PPP using PAP "Connect script failed"

10. PPP login script vs. PAP

11. PPP Server; Autosense PPP/PAP != /bin/login

12. PPP problems with PAP

13. diald/ppp - pap authentication problem - **solved!**