Le 16-10-2013 18:36, YASUOKA Masahiko a écrit :
Hi,

On Wed, 16 Oct 2013 13:39:31 +0200
Gruel Bruno <[email protected]> wrote:
### On OBSD 5.3 release :
(snip)
Segmentation fault

After de DISCOVERY message the server crash with "Segmentation fault"

This bug had been fixed on April 16.  PPPoE server (by npppd) on 5.3
is completely broken.

### On OBSD 5.3 snapshot (2weeks ago version) :
I'm doing some tests last night and got other problems. I don't have
my snapshots stations here but the symptom is :

I believe this will work.

npppd logs side  somthings like that :
...unable to agree auth proto...

As your config, CHAP or MS-CHAP-V2 must be accepted,

Network side :
request.reject when client propose pap or chap or whatever.

I 'll give you full log tonight.

Is someone have some idea ?

The log will help me.

Adding

  authentication-method pap chap

to the tunnel block on npppd.conf may avoid the problem.

Thank's for your reply and advise.

Even if it's not necessary i updated my laptop (pppoe server in my lab) today.

As i thought that it's doesn't read my users file i changed the username & password but nothing else.

My config files:

#######npppd.conf

tunnel PPPOE protocol pppoe {
        listen on interface re0
        pppoe-desc-in-pktdump yes
        pppoe-desc-out-pktdump yes
        pppoe-session-in-pktdump yes
        pppoe-session-out-pktdump yes
        authentication-method pap chap
}

ipcp IPCP {
        pool-address 10.0.0.2-10.0.0.254
        dns-servers 192.168.0.1
}

interface tun1 address 10.0.0.1 ipcp IPCP
authentication LOCAL type local {
         users-file "/etc/npppd/npppd-users"
}
bind tunnel from PPPOE authenticated by LOCAL to tun1 >> (I'm using tun1 because i using qemu on tun0.)

#######npppd-users
toto:\
:password=toto:\
:framed-ip-address=10.0.0.101:


And logs:

** npppd daemon:
2013-10-16 20:49:55:INFO: pppoed RecvPADI from=52:54:00:12:34:56 service-name= host-uniq=361b90c8 if=re0 2013-10-16 20:49:55:INFO: pppoed SendPADO to=52:54:00:12:34:56 serviceName= acName=3c:97:0e:3e:b2:8b hostUniq=361b90c8 eol if=re0 2013-10-16 20:49:55:INFO: pppoed RecvPADI from=52:54:00:12:34:56 service-name= host-uniq=361b90c8 if=re0 2013-10-16 20:49:55:INFO: pppoed SendPADO to=52:54:00:12:34:56 serviceName= acName=3c:97:0e:3e:b2:8b hostUniq=361b90c8 eol if=re0 2013-10-16 20:49:55:INFO: pppoed if=re0 session=47899 SendPADS serviceName= hostUniq=361b90c8 2013-10-16 20:49:55:NOTICE: pppoed if=re0 session=47899 logtype=PPPBind ppp=1 2013-10-16 20:49:55:ERR: ppp id=1 layer=base getnameinfo() failed at ppp_set_tunnel_label 2013-10-16 20:49:55:INFO: ppp id=1 layer=base logtype=Started tunnel=PPPOE(0.0.0.0) 2013-10-16 20:49:55:INFO: ppp id=1 layer=lcp logtype=Opened mru=1492/1492 auth=PAP magic=912adabc/a4d9f488
2013-10-16 20:49:55:DEBUG: ppp id=1 layer=pap pap_start
2013-10-16 20:49:55:ALERT: ppp id=1 layer=pap logtype=Failure username="toto" realm=LOCAL
2013-10-16 20:49:55:INFO: pppoed if=re0 session=47899 SendPADT
2013-10-16 20:49:55:ERR: ppp id=1 layer=base getnameinfo() failed at ppp_set_tunnel_label 2013-10-16 20:49:55:NOTICE: ppp id=1 layer=base logtype=TUNNELUSAGE user="<unknown>" duration=0sec layer2=PPPOE layer2from=0.0.0.0 auth=none data_in=63bytes ,4packets data_out=121bytes,5packets error_in=0 error_out=0 mppe=no iface=(not binding)


** network capture:
20:49:55.239930 PPPoE-Discovery
        code Initiation, version 1, type 1, id 0x0000, length 12
        tag Service-Name, length 0
        tag Host-Uniq, length 4 6\033\220\310
20:49:55.240578 PPPoE-Discovery
        code Request, version 1, type 1, id 0x0000, length 20
        tag Service-Name, length 0
        tag AC-Cookie, length 4 \370\255\360\270
        tag Host-Uniq, length 4 6\033\220\310
20:49:55.240854 PPPoE-Session
        code Session, version 1, type 1, id 0xbb1b, length 16
LCP: Configure-Request, Magic-Number=-1529219960, Max-Rx-Unit=1492[|lcp]
20:49:55.241084 PPPoE-Session
        code Session, version 1, type 1, id 0xbb1b, length 11
        LCP: Configure-Nak, Auth-Prot PAP[|lcp]
20:49:55.241370 PPPoE-Session
        code Session, version 1, type 1, id 0xbb1b, length 20
LCP: Configure-Ack, Max-Rx-Unit=1492, Magic-Number=-1859462468, Auth-Prot PAP[|lcp]
20:49:55.241380 PPPoE-Session
        code Session, version 1, type 1, id 0xbb1b, length 16
        PAP: Authenticate-Request, Peer-Id=toto, Passwd=toto
20:49:55.241836 PPPoE-Session
        code Session, version 1, type 1, id 0xbb1b, length 6
        LCP: Terminate-Ack

I try with chap on the client side but it's the same.

If you need more logs tel me.

Thank's

Bruno

Reply via email to