Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 1997 09:34:47 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Gary Stanny <stanny@TDFltd.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: PPP & PAP - it hangs up after 7 seconds
Message-ID:  <19970917093447.36766@lemis.com>
In-Reply-To: <3.0.1.32.19970916171224.006badfc@izzy.net>; from Gary Stanny on Tue, Sep 16, 1997 at 05:12:24PM -0400
References:  <3.0.1.32.19970916171224.006badfc@izzy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 16, 1997 at 05:12:24PM -0400, Gary Stanny wrote:
> Hi all -
>
> I am trying to convert a working scripted user ppp.conf to
> work on PAP. After digging through the archives I have made it
> this far. It connects for 7 seconds then disconnects. If I read
> the log file correctly it appears like they are arguing about
> protocol c023 vers c223. What should it be? 

I'd say give in and accept protocol c223, since your ISP is asking for
it.  That's CHAP, not PAP.  You could accept both by changing your
script:

> ---------------------- ppp.conf
>
> default:
> 	set device /dev/cuaa0
> 	set speed 57600
> 	set debug phase chat
> 	disable lqr
> 	deny lqr
> 	set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK
> \\dATDT\\T TIMEOUT 40 CONNECT"
>
> izzyx2:
> 	set device /dev/cuaa2
> 	set debug phase chat lcp lqm
> 	set phone 2139019
> 	disable chap
> 	deny chap

	accept chap

> 	enable pap
	
	disable pap
	
> 	accept pap
> 	set openmode active
> 	set authname user_name
> 	set authkey password
> 	set timeout 120
> 	set ifaddr 198.108.50.131/32  198.108.102.9 255.255.255.0
> 	add 0 0 198.108.102.9

You probably don't want to enable PAP or CHAP; that would imply that
you authenticate the ISP, and unless you've given him a user name and
password, that won't work.  Even if you have, it's unlikely that he'll
present it.

Greg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970917093447.36766>