From nobody@FreeBSD.org  Mon Nov  7 19:35:54 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CE10716A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  7 Nov 2005 19:35:54 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9480543D48
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  7 Nov 2005 19:35:54 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jA7JZs0P079383
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 7 Nov 2005 19:35:54 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jA7JZs11079382;
	Mon, 7 Nov 2005 19:35:54 GMT
	(envelope-from nobody)
Message-Id: <200511071935.jA7JZs11079382@www.freebsd.org>
Date: Mon, 7 Nov 2005 19:35:54 GMT
From: Marius Cirsta <mforce2@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ppp chat auth fails ( pppoe )
X-Send-Pr-Version: www-2.3

>Number:         88619
>Category:       bin
>Synopsis:       [ppp] ppp chat auth fails ( pppoe )
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brian
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 07 19:40:14 GMT 2005
>Closed-Date:    Sat Jul 18 21:37:12 UTC 2009
>Last-Modified:  Sat Jul 18 21:37:12 UTC 2009
>Originator:     Marius Cirsta
>Release:        FreeBSD 6 Release
>Organization:
none
>Environment:
FreeBSD  6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I'm trying to get ppp to work to conect with my ISP using pppoe but it
fails on ( chap )authentification . I works in WindowsXP ( with pap ) and
with rp-pppoe in Linux .  

I've looked at the FreeBSD handbook and what it says about pppoe so I've
use this ppp.conf file :

 default:
  set log Phase tun command # you can add more detailed logging if you wish
  set ifaddr 10.0.0.1/0 10.0.0.2/0

rds:
  set device PPPoE:xl0:rds # replace xl1 with your Ethernet device
  deny chap
  disable chap
  accept pap
  set authname "tm212418"
  set authkey "pass"
  set dial
  add default HISADDR

 Here's the ppp.log I get :

Nov  7 15:05:25  ppp[556]: Phase: Using interface: tun0
Nov  7 15:05:25  ppp[556]: Phase: deflink: Created in closed state
Nov  7 15:05:25  ppp[556]: tun0: Command: default: set ifaddr 10.0.0.1/0 10.0.0.2/0
Nov  7 15:05:25  ppp[556]: tun0: Command: rds: set device PPPoE:xl0:rds
Nov  7 15:05:25  ppp[556]: tun0: Command: rds: deny chap
Nov  7 15:05:25  ppp[556]: tun0: Command: rds: disable chap
Nov  7 15:05:25  ppp[556]: tun0: Command: rds: accept pap
Nov  7 15:05:25  ppp[556]: tun0: Command: rds: set authname tm212418
Nov  7 15:05:25  ppp[556]: tun0: Command: rds: set authkey ********
Nov  7 15:05:25  ppp[556]: tun0: Command: rds: set dial
Nov  7 15:05:25  ppp[556]: tun0: Command: rds: add default HISADDR
Nov  7 15:05:25  ppp[556]: tun0: Phase: PPP Started (foreground mode).
Nov  7 15:05:25  ppp[556]: tun0: Phase: bundle: Establish
Nov  7 15:05:25  ppp[556]: tun0: Phase: deflink: closed -> opening
Nov  7 15:05:25  ppp[556]: tun0: Phase: deflink: Connected!
Nov  7 15:05:25  ppp[556]: tun0: Phase: deflink: opening -> dial
Nov  7 15:05:25  ppp[556]: tun0: Phase: deflink: dial -> carrier
Nov  7 15:05:25  ppp[556]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "RMSPPPOE")
Nov  7 15:05:26  ppp[556]: tun0: Phase: Received NGM_PPPOE_SESSIONID
Nov  7 15:05:26  ppp[556]: tun0: Phase: Received NGM_PPPOE_SUCCESS
Nov  7 15:05:26  ppp[556]: tun0: Phase: deflink: carrier -> login
Nov  7 15:05:26  ppp[556]: tun0: Phase: deflink: login -> lcp
Nov  7 15:05:27  ppp[556]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492
Nov  7 15:05:29  ppp[556]: tun0: Phase: bundle: Authenticate
Nov  7 15:05:29  ppp[556]: tun0: Phase: deflink: his = CHAP 0x81, mine = none
Nov  7 15:05:29  ppp[556]: tun0: Phase: Chap Input: CHALLENGE (16 bytes from -)
Nov  7 15:05:29  ppp[556]: tun0: Phase: Chap Output: RESPONSE (tm212418)
Nov  7 15:05:29  ppp[556]: tun0: Phase: Chap Input: FAILURE (E=691 R=1 C=267EE5752572186443EE39BBB780B65E V=3)
Nov  7 15:05:29  ppp[556]: tun0: Phase: deflink: Disconnected!
Nov  7 15:05:29  ppp[556]: tun0: Phase: deflink: lcp -> logout
Nov  7 15:05:29  ppp[556]: tun0: Phase: deflink: logout -> hangup
Nov  7 15:05:29  ppp[556]: tun0: Phase: deflink: Disconnected!
Nov  7 15:05:29  ppp[556]: tun0: Phase: deflink: Connect time: 4 secs: 267 octets in, 196 octets out
Nov  7 15:05:29  ppp[556]: tun0: Phase: deflink: 8 packets in, 7 packets out
Nov  7 15:05:29  ppp[556]: tun0: Phase:  total 115 bytes/sec, peak 38 bytes/sec on Mon Nov  7 15:05:28 2005
Nov  7 15:05:29  ppp[556]: tun0: Phase: deflink: hangup -> closed
Nov  7 15:05:29  ppp[556]: tun0: Phase: bundle: Dead
Nov  7 15:05:29  ppp[556]: tun0: Phase: PPP Terminated (normal).

This seems to be a problem with the chap auth . Maybe it's my provider's
fault but what I would like to do is authentificate using pap because at
least that works in WindowsXP . However I can't seem to convince it to
give up chap and use pap even though I've put in deny and disable chat .

Maybe this isn't a bug but I can't seem to find help anywhere else .
 Thanks .
>How-To-Repeat:
              
>Fix:
              
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Nov 12 17:24:36 GMT 2005 
Responsible-Changed-Why:  
This does not sound i386-specific. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88619 
Responsible-Changed-From-To: freebsd-bugs->brian 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Tue Nov 15 15:15:39 GMT 2005 
Responsible-Changed-Why:  
Pass to ppp(8) maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88619 
State-Changed-From-To: open->feedback 
State-Changed-By: brian 
State-Changed-When: Sun Jun 14 07:23:20 UTC 2009 
State-Changed-Why:  
Sorry for the delay in replying.... 

Can the submitter (if he's still in a position to try this) try 
"deny chap" in their config and see if the resulting pap authentication 
works? 

Thanks. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=88619 
State-Changed-From-To: feedback->closed 
State-Changed-By: brian 
State-Changed-When: Sat Jul 18 21:35:50 UTC 2009 
State-Changed-Why:  
No feedback in over three weeks.  I believe the problem was just a 
configuration issue (as per my comments). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88619 
>Unformatted:
