Re: Difference between pppoe(8) and pppoe(4) ?

2013-12-27 Thread Stuart Henderson
On 2013-12-26, Denis Fondras open...@ledeuns.net wrote:
 There is, unfortunately, no logs from pppoe(4) explaining what's wrong.

You can try these to see if they give any clues:

- 'ifconfig pppoe0 debug' and watch dmesg
- 'tcpdump -nvvs1500 -iem0' (where 'em0' is the parent device of pppoe)

Have you made any changes to your machine (i.e. updated to a newer
snapshot etc) in the time when pppoe(4) broke?



Re: Difference between pppoe(8) and pppoe(4) ?

2013-12-27 Thread Denis Fondras
Hi Stuart,

As some have replied offlist, I tried to change the MTU and change
authentication to pap but to no avail.

 You can try these to see if they give any clues:
 
 - 'ifconfig pppoe0 debug' and watch dmesg
 - 'tcpdump -nvvs1500 -iem0' (where 'em0' is the parent device of pppoe)
 

Here are some logs :

* tcpdump with pppoe(4) :
18:37:12.817003 PPPoE-Session
code Session, version 1, type 1, id 0x056a, length 6
CHAP: Success
18:37:12.817017 PPPoE-Session
code Session, version 1, type 1, id 0x056a, length 12
IPCP: Configure-Request, IP-Address=178.132.16.250
18:37:12.817230 PPPoE-Session
code Session, version 1, type 1, id 0x056a, length 16
IPV6CP: Configure-Request, Interface-ID=0200:24ff:fecb:a3e4
18:37:12.817238 PPPoE-Session
code Session, version 1, type 1, id 0x056a, length 12
IPCP: Configure-Nak, IP-Address=0.0.0.0
18:37:12.818840 PPPoE-Session
code Session, version 1, type 1, id 0x056a, length 16
IPV6CP: Configure-Request, Interface-ID=0218:74ff:feb4:ac1b
18:37:12.818901 PPPoE-Session
code Session, version 1, type 1, id 0x056a, length 16
IPV6CP: Configure-Ack, Interface-ID=0218:74ff:feb4:ac1b
18:37:12.866829 PPPoE-Session
code Session, version 1, type 1, id 0x056a, length 16
IPV6CP: Configure-Ack, Interface-ID=0200:24ff:fecb:a3e4
18:37:12.868835 PPPoE-Session
code Session, version 1, type 1, id 0x056a, length 6
IPCP: Configure-Request, Unknown IPCP code 0x0
18:37:12.868879 PPPoE-Session
code Session, version 1, type 1, id 0x056a, length 12
IPCP: Configure-Nak, IP-Address=0.0.0.0


* pppoe0 debug :
pppoe0 (8864) state=3, session=0x333 output - 00:30:88:10:3d:0e, len=18
pppoe0 (8864) state=3, session=0x333 output - 00:30:88:10:3d:0e, len=20
pppoe0 (8864) state=3, session=0x333 output - 00:30:88:10:3d:0e, len=18
pppoe0 (8864) state=3, session=0x333 output - 00:30:88:10:3d:0e, len=18
pppoe0 (8864) state=3, session=0x333 output - 00:30:88:10:3d:0e, len=18

* tcpdump with pppoe(8) :
18:39:54.343170 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 6
CHAP: Success
18:39:54.343188 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 12
IPCP: Configure-Request, IP-Address=178.132.16.246
18:39:54.343201 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 16
IPV6CP: Configure-Request, Interface-ID=0219:a9ff:fe51:281b
18:39:54.348551 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 12
CCP:
18:39:54.348773 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 18
IPCP: Configure-Request, IP-Address=192.168.10.1
18:39:54.348935 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 16
IPV6CP: Configure-Request, Interface-ID=0200:24ff:fecb:a3e4
18:39:54.349097 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 12
IPCP: Configure-Ack, IP-Address=178.132.16.246
18:39:54.349257 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 16
IPV6CP: Configure-Ack, Interface-ID=0219:a9ff:fe51:281b
18:39:54.399169 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 18
LCP: Protocol-Reject
18:39:54.399190 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 12
IPCP: Configure-Reject, IP-Compression-Protocol
18:39:54.400959 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 12
IPCP: Configure-Request, IP-Address=192.168.10.1
18:39:54.401178 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 16
IPV6CP: Configure-Ack, Interface-ID=0200:24ff:fecb:a3e4
18:39:54.405113 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 66
IPV6: ::  ff02::1:ffcb:a3e4: icmp6: neighbor sol: who has
fe80::200:24ff:fecb:a3e4 (len 24, hlim 255)
18:39:54.405307 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 66
IPV6: ::  ff02::1:ffcb:a3e4: icmp6: neighbor sol: who has
fe80::200:24ff:fecb:a3e4 (len 24, hlim 255)
18:39:54.409174 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 66
IPV6: fe80::219:a9ff:fe51:281b  ff02::1: icmp6: neighbor adv:
tgt is fe80::219:a9ff:fe51:281b(R) [class 0xe0] (len 24, hlim 255)
18:39:54.409195 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 78
IPV6: fe80::219:a9ff:fe51:281b  ff02::16: HBH (rtalert: 0x)
multicast listener report v2, 1 group record(s) [gaddr ff02::2 to_ex {
}] [class 0xe0] [hlim 1] (len 36)
18:39:54.409209 PPPoE-Session
code Session, version 1, type 1, id 0x0422, length 78
IPV6: fe80::219:a9ff:fe51:281b  ff02::16: HBH (rtalert: 0x)
multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff51:281b
to_ex { }] [class 0xe0] [hlim 1] (len 36)
18:39:54.453167 PPPoE-Session
   

Difference between pppoe(8) and pppoe(4) ?

2013-12-26 Thread Denis Fondras
Hi all !

I'm facing a weirdness with my DSL connection.
I have been using pppoe(4) for years and since 2 days it cannot connect
(no public IP affected to pppoe0, only PADI retry increments). I guess
there have been some changes at the ISP level. Luckily it works with
pppoe(8) with identical config.

Anyway pppoe(8) sucks so I wonder what can be the difference that makes
it work with pppoe(8) but not pppoe(4).
There is, unfortunately, no logs from pppoe(4) explaining what's wrong.

Do you have any pointer or clue ?

Thank you in advance,
Denis

* hostname.pppoe0 :
---
inet 0.0.0.0 255.255.255.255 NONE \
pppoedev re0  authproto chap \
authname 'me@isp' authkey 'password' \
mtu 1300
up
dest 0.0.0.1
!/sbin/route add default -ifp pppoe0 0.0.0.1

* ppp.conf :

default:
 set log Phase Chat LCP IPCP CCP tun command
 set redial 15 28800
 set reconnect 15 28800

pppoe:
 set device !/usr/sbin/pppoe -i re0
 disable acfcomp protocomp
 deny acfcomp
 set mtu max 1492
 set speed sync
 disable lqr
 deny lqr
 set cd 5
 set dial
 set login
 set timeout 0
 set authname me@isp
 set authkey password
 enable sroutes
 add default HISADDR
 add default HISADDR6
 enable mssfixup