[Dibbler] Newer versions, PD over PPP not working

dibbler-user-mailinglist at fremnet.net dibbler-user-mailinglist at fremnet.net
Thu Oct 10 07:22:39 CEST 2013


I just tried with --disable-auth (which, btw does not compile by 
default, requires a judicious sprinkling of #ifndef MOD_DISABLE_AUTH)

And it works perfectly, except it segfaults (I'm apparently not very 
good at this)

| Dibbler - a portable DHCPv6, version 1.0.0RC1 (CLIENT, Linux port)
| Authors : Tomasz Mrugalski<thomson(at)klub.com.pl>,Marek 
Senderski<msend(at)o2.pl>
| Licence : GNU GPL v2 only. Developed at Gdansk University of Technology.
| Homepage: http://klub.com.pl/dhcpv6/
2013.10.10 15:18:26 Client Warning   Pid file found (pid=10300, file 
/var/lib/dibbler/client.pid), but process 10300 does not exist.
2013.10.10 15:18:26 Client Notice    My pid (16265) is stored in 
/var/lib/dibbler/client.pid
2013.10.10 15:18:26 Client Notice    Detected iface ppp0/15, MAC=.
2013.10.10 15:18:26 Client Notice    Detected iface tun1/10, MAC=.
2013.10.10 15:18:26 Client Notice    Detected iface tun0/8, MAC=.
2013.10.10 15:18:26 Client Notice    Detected iface br0/7, 
MAC=6c:f0:49:0f:fd:65.
2013.10.10 15:18:26 Client Notice    Detected iface wlan0/6, 
MAC=94:0c:6d:e6:23:81.
2013.10.10 15:18:26 Client Notice    Detected iface sit0/5, MAC=00:00:00:00.
2013.10.10 15:18:26 Client Notice    Detected iface wan/4, 
MAC=e0:8f:ec:00:2e:07.
2013.10.10 15:18:26 Client Notice    Detected iface daz/3, 
MAC=74:ea:3a:81:7f:5d.
2013.10.10 15:18:26 Client Notice    Detected iface shaz/2, 
MAC=6c:f0:49:0f:fd:65.
2013.10.10 15:18:26 Client Notice    Detected iface lo/1, 
MAC=00:00:00:00:00:00.
2013.10.10 15:18:26 Client Notice    Parsing /etc/dibbler/client.conf 
config file...
2013.10.10 15:18:26 Client Debug     CONFIRM support disabled 
(skip-confirm in client.conf).
18:26 Client Debug     Prefix delegation option found.
18:26 Client Debug     Parsing /etc/dibbler/client.conf done, result=0
18:26 Client Debug     1 interface(s) specified in /etc/dibbler/client.conf
18:26 Client Info      Interface ppp0/15 configuration has been loaded.
18:26 Client Debug     DUID's value = 
00:01:00:01:19:e8:c4:fc:6c:f0:49:0f:fd:65 was loaded from client-duid file.
18:26 Client Info      My DUID is 00:01:00:01:19:e8:c4:fc:6c:f0:49:0f:fd:65.
18:26 Client Debug     Skipping database loading.
18:26 Client Debug     Bind reuse enabled (multiple instances allowed).
18:26 Client Notice    Creating control (::) socket on the lo/1 interface.
18:26 Client Notice    Creating socket (addr=fe80::98cd:15d:7acc:2f6c) 
on ppp0/15 interface.
18:26 Client Debug     Confirm disabled, skipping link change detection.
18:26 Client Notice    CONFIRM support compiled in.
18:26 Client Info      Creating SOLICIT message with 0 IA(s), no TA and 
1 PD(s) on ppp0/15 interface.
18:26 Client Debug     Sending SOLICIT(opts:1 25 8 ) on ppp0/15 to 
multicast.
18:26 Client Debug     Sleeping for 1 second(s).
18:26 Client Debug     Received 168 bytes on interface ppp0/15 
(socket=5, addr=fe80::224:14ff:fe9a:9700).
Segmentation fault

tcpdump: listening on ppp0, link-type LINUX_SLL (Linux cooked), capture 
size 65535 bytes
15:18:26.056756 IP6 (hlim 1, next-header UDP (17) payload length: 52) 
fe80::98cd:15d:7acc:2f6c.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
sum ok] dhcp6 solicit (xid=998062 (client-ID hwaddr/time type 1 time 
434685180 6cf0490ffd65) (IA_PD IAID:1 T1:4294967295 T2:4294967295) 
(elapsed-time 0))
15:18:26.091013 IP6 (class 0xe0, hlim 255, next-header UDP (17) payload 
length: 176) fe80::224:14ff:fe9a:9700.dhcpv6-server > 
fe80::98cd:15d:7acc:2f6c.dhcpv6-client: [udp sum ok] dhcp6 advertise 
(xid=998062 (server-ID hwaddr type 1 0024149a97d3) (client-ID 
hwaddr/time type 1 time 434685180 6cf0490ffd65) (IA_PD IAID:1 T1:1800 
T2:2880 (IA_PD-prefix 2001:xxxx:xxxx:xxxx::/56 pltime:3600 
vltime:7201)[|dhcp6ext]) (DNS-server 2001:44b8:1::1 2001:44b8:2::2) 
(DNS-search-list) (SIP-servers-domain) (NTP-server 2001:44b8:1::1))

It would appear that whatever my ISP is using for their server doesn't 
like the auth component.

Is it possible to get a patch that completely removes the auth component 
from the packet if auth is none?

On 10/10/13 12:33, dibbler-user-mailinglist at fremnet.net wrote:
> Hi there, I've just upgraded from 0.7.3 to 0.8.4 and then to 1.0.0RC1 
> and even GIT.
>
> In 0.7.3 I got prefix delegation working over ppp0, in newer versions 
> it solicits and solicits and never gets a reply.
>
> 0.7.3 client.conf -----
> log-mode short
> log-level 8
> experimental
> mapping-prefix
> iface ppp0 {
>   pd
> }
>
> 0.7.3 output -----
> | Homepage: http://klub.com.pl/dhcpv6/
> 2013.10.10 12:06:15 Client Notice    My pid (10377) is stored in 
> /var/lib/dibbler/client.pid
> 2013.10.10 12:06:15 Client Notice    Detected iface ppp0/15, MAC=.
> 2013.10.10 12:06:15 Client Notice    Detected iface tun1/10, MAC=.
> 2013.10.10 12:06:15 Client Notice    Detected iface tun0/8, MAC=.
> 2013.10.10 12:06:15 Client Notice    Detected iface br0/7, 
> MAC=6c:f0:49:0f:fd:65.
> 2013.10.10 12:06:15 Client Notice    Detected iface wlan0/6, 
> MAC=94:0c:6d:e6:23:81.
> 2013.10.10 12:06:15 Client Notice    Detected iface sit0/5, 
> MAC=00:00:00:00.
> 2013.10.10 12:06:15 Client Notice    Detected iface wan/4, 
> MAC=e0:8f:ec:00:2e:07.
> 2013.10.10 12:06:15 Client Notice    Detected iface daz/3, 
> MAC=74:ea:3a:81:7f:5d.
> 2013.10.10 12:06:15 Client Notice    Detected iface shaz/2, 
> MAC=6c:f0:49:0f:fd:65.
> 2013.10.10 12:06:15 Client Notice    Detected iface lo/1, 
> MAC=00:00:00:00:00:00.
> 2013.10.10 12:06:15 Client Notice    Parsing /etc/dibbler/client.conf 
> config file...
> 06:15 Client Critical  Experimental features are allowed.
> 06:15 Client Notice    Experimental: mappix-prefix enabled
> 06:15 Client Debug     Prefix delegation option found.
> 06:15 Client Debug     Parsing /etc/dibbler/client.conf done, result=0
> 06:15 Client Debug     1 interface(s) specified in 
> /etc/dibbler/client.conf
> 06:15 Client Info      Interface ppp0/15 configuation has been loaded.
> 06:15 Client Info      My DUID is 
> 00:01:00:01:19:e8:c4:fc:6c:f0:49:0f:fd:65.
> 06:15 Client Info      Loading old address database 
> (client-AddrMgr.xml), using built-in routines.
> 06:15 Client Notice    Address database loaded successfuly.
> 06:15 Client Debug     Bind reuse enabled (multiple instances allowed).
> 06:15 Client Notice    Creating control (::) socket on the lo/1 
> interface.
> 06:15 Client Notice    Creating socket (addr=fe80::98cd:15d:7acc:2f6c) 
> on the ppp0/15 interface.
> 06:15 Client Info      Socket bound to fe80::98cd:15d:7acc:2f6c/port=546
> 06:15 Client Debug     LinkState change detection not fully supported 
> (disabled for now).
> 06:15 Client Info      Creating SOLICIT message with 0 IA(s), no TA 
> and 1 PD(s) on ppp0/15 interface.
> 06:15 Client Debug     Sleeping for 1 second(s).
> 06:16 Client Info      Processing msg (SOLICIT,transID=0xc7ccda,opts: 
> 1 25 8)
> 06:16 Client Debug     Sending SOLICIT on ppp0/15 to multicast.
> 06:16 Client Debug     Sleeping for 1 second(s).
> 06:16 Client Debug     Received 168 bytes on interface ppp0/15 
> (socket=6, addr=fe80::224:14ff:fe9a:9700.).
> 06:16 Client Info      Received ADVERTISE on ppp0/15,TransID=0xc7ccda, 
> 7 opts: 2 1 25 23 24 21 31
> 06:16 Client Debug     Sleeping for 1 second(s).
> 06:17 Client Info      Processing msg (SOLICIT,transID=0xc7ccda,opts: 
> 1 25 8)
> 06:17 Client Info      Creating REQUEST. Backup server list contains 1 
> server(s).
> 06:17 Client Debug     Advertise from Server 
> ID=00:03:00:01:00:24:14:9a:97:d3, no preference option, assumed 0, no 
> auth info.[using this]
> 06:17 Client Debug     Authentication is disabled, not including auth 
> options in message.
> 06:17 Client Debug     Sleeping for 1 second(s).
> 06:18 Client Info      Processing msg (REQUEST,transID=0x2b87be,opts: 
> 1 25 8 2)
> 06:18 Client Debug     Sending REQUEST on ppp0/15 to multicast.
> 06:18 Client Debug     Sleeping for 1 second(s).
> 06:18 Client Debug     Received 168 bytes on interface ppp0/15 
> (socket=6, addr=fe80::224:14ff:fe9a:9700.).
> 06:18 Client Info      Received REPLY on ppp0/15,TransID=0x2b87be, 7 
> opts: 2 1 25 23 24 21 31
> 06:18 Client Debug     PD: Adding PD (iaid=1) to addrDB.
> 06:18 Client Debug     PD: Adding 2001:44b8:219c:8e00:: prefix to PD 
> (iaid=1) to addrDB.
> 06:18 Client Notice    Executing external command to ADD prefix: sh 
> ./mappingprefixadd 2001:xxxx:xxxx:xxxx::
>
> 0.7.3 tcpdump -i ppp0 -vv ip6 -----
> 12:06:16.386598 IP6 (hlim 1, next-header UDP (17) payload length: 52) 
> fe80::98cd:15d:7acc:2f6c.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
> sum ok] dhcp6 solicit (xid=c7ccda (client-ID hwaddr/time type 1 time 
> 434685180 6cf0490ffd65) (IA_PD IAID:1 T1:4294967295 T2:4294967295) 
> (elapsed-time 100))
> 12:06:16.413830 IP6 (class 0xe0, hlim 255, next-header UDP (17) 
> payload length: 176) fe80::224:14ff:fe9a:9700.dhcpv6-server > 
> fe80::98cd:15d:7acc:2f6c.dhcpv6-client: [udp sum ok] dhcp6 advertise 
> (xid=c7ccda (server-ID hwaddr type 1 0024149a97d3) (client-ID 
> hwaddr/time type 1 time 434685180 6cf0490ffd65) (IA_PD IAID:1 T1:1800 
> T2:2880 (IA_PD-prefix 2001:xxxx:xxxx:xxxx::/56 pltime:3600 
> vltime:7201)[|dhcp6ext]) (DNS-server 2001:44b8:1::1 2001:44b8:2::2) 
> (DNS-search-list) (SIP-servers-domain) (NTP-server 2001:44b8:1::1))
> 12:06:18.422493 IP6 (hlim 1, next-header UDP (17) payload length: 66) 
> fe80::98cd:15d:7acc:2f6c.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
> sum ok] dhcp6 request (xid=2b87be (client-ID hwaddr/time type 1 time 
> 434685180 6cf0490ffd65) (IA_PD IAID:1 T1:4294967295 T2:4294967295) 
> (elapsed-time 300) (server-ID hwaddr type 1 0024149a97d3))
> 12:06:18.450181 IP6 (class 0xe0, hlim 255, next-header UDP (17) 
> payload length: 176) fe80::224:14ff:fe9a:9700.dhcpv6-server > 
> fe80::98cd:15d:7acc:2f6c.dhcpv6-client: [udp sum ok] dhcp6 reply 
> (xid=2b87be (server-ID hwaddr type 1 0024149a97d3) (client-ID 
> hwaddr/time type 1 time 434685180 6cf0490ffd65) (IA_PD IAID:1 T1:1800 
> T2:2880 (IA_PD-prefix 2001:xxxx:xxxx:xxxx::/56 pltime:3600 
> vltime:7201)[|dhcp6ext]) (DNS-server 2001:44b8:1::1 2001:44b8:2::2) 
> (DNS-search-list) (SIP-servers-domain) (NTP-server 2001:44b8:1::1))
> 12:06:18.521502 IP6 (hlim 1, next-header Options (0) payload length: 
> 36) fe80::98cd:15d:7acc:2f6c > ff02::16: HBH (rtalert: 0x0000) (padn) 
> [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) 
> [gaddr ff02::2 to_ex { }]
>
>
>
> Now, same thing in git
> git client.conf -----
> log-mode short
> log-level 8
> script "/var/lib/dibbler/client-notify.sh"
> iface ppp0 {
>   pd
> }
>
> git output -----
> | Dibbler - a portable DHCPv6, version 1.0.0RC1 (CLIENT, Linux port)
> | Authors : Tomasz Mrugalski<thomson(at)klub.com.pl>,Marek 
> Senderski<msend(at)o2.pl>
> | Licence : GNU GPL v2 only. Developed at Gdansk University of 
> Technology.
> | Homepage: http://klub.com.pl/dhcpv6/
> 2013.10.10 12:13:00 Client Notice    My pid (21252) is stored in 
> /var/lib/dibbler/client.pid
> 2013.10.10 12:13:00 Client Notice    Detected iface ppp0/15, MAC=.
> 2013.10.10 12:13:00 Client Notice    Detected iface tun1/10, MAC=.
> 2013.10.10 12:13:00 Client Notice    Detected iface tun0/8, MAC=.
> 2013.10.10 12:13:00 Client Notice    Detected iface br0/7, 
> MAC=6c:f0:49:0f:fd:65.
> 2013.10.10 12:13:00 Client Notice    Detected iface wlan0/6, 
> MAC=94:0c:6d:e6:23:81.
> 2013.10.10 12:13:00 Client Notice    Detected iface sit0/5, 
> MAC=00:00:00:00.
> 2013.10.10 12:13:00 Client Notice    Detected iface wan/4, 
> MAC=e0:8f:ec:00:2e:07.
> 2013.10.10 12:13:00 Client Notice    Detected iface daz/3, 
> MAC=74:ea:3a:81:7f:5d.
> 2013.10.10 12:13:00 Client Notice    Detected iface shaz/2, 
> MAC=6c:f0:49:0f:fd:65.
> 2013.10.10 12:13:00 Client Notice    Detected iface lo/1, 
> MAC=00:00:00:00:00:00.
> 2013.10.10 12:13:00 Client Notice    Parsing /etc/dibbler/client.conf 
> config file...
> 13:00 Client Debug     Prefix delegation option found.
> 13:00 Client Debug     Parsing /etc/dibbler/client.conf done, result=0
> 13:00 Client Debug     1 interface(s) specified in 
> /etc/dibbler/client.conf
> 13:00 Client Info      Interface ppp0/15 configuration has been loaded.
> 13:00 Client Debug     DUID's value = 
> 00:01:00:01:19:e8:c4:fc:6c:f0:49:0f:fd:65 was loaded from client-duid 
> file.
> 13:00 Client Info      My DUID is 
> 00:01:00:01:19:e8:c4:fc:6c:f0:49:0f:fd:65.
> 13:00 Client Info      Loading old address database 
> (client-AddrMgr.xml), using built-in routines.
> 13:00 Client Info      DB timestamp:1381371089, now()=1381371180, db 
> is 91 second(s) old.
> 13:00 Client Debug     Auth: Replay detection value loaded 0
> 13:00 Client Info      All client's 
> 00:01:00:01:19:e8:c4:fc:6c:f0:49:0f:fd:65 leases are not valid.
> 13:00 Client Debug     Bind reuse enabled (multiple instances allowed).
> 13:00 Client Notice    Creating control (::) socket on the lo/1 
> interface.
> 13:00 Client Notice    Creating socket (addr=fe80::98cd:15d:7acc:2f6c) 
> on ppp0/15 interface.
> 13:00 Client Debug     Initialising link-state detection for 
> interfaces: ppp0/15
> 13:00 Client Notice    CONFIRM support compiled in.
> 13:00 Client Info      Creating SOLICIT message with 0 IA(s), no TA 
> and 1 PD(s) on ppp0/15 interface.
> 13:00 Client Debug     Sending SOLICIT(opts:1 25 8 11 ) on ppp0/15 to 
> multicast.
> 13:00 Client Debug     Sleeping for 1 second(s).
> 13:01 Client Info      Processing msg (SOLICIT,transID=0xad70a6,opts: 
> 1 25 8 11)
> 13:01 Client Debug     Sending SOLICIT(opts:1 25 8 11 ) on ppp0/15 to 
> multicast.
> 13:01 Client Debug     Sleeping for 2 second(s).
> 13:03 Client Info      Processing msg (SOLICIT,transID=0xad70a6,opts: 
> 1 25 8 11)
> 13:03 Client Debug     Sending SOLICIT(opts:1 25 8 11 ) on ppp0/15 to 
> multicast.
> 13:03 Client Debug     Sleeping for 4 second(s).
> 13:07 Client Info      Processing msg (SOLICIT,transID=0xad70a6,opts: 
> 1 25 8 11)
> 13:07 Client Debug     Sending SOLICIT(opts:1 25 8 11 ) on ppp0/15 to 
> multicast.
> 13:07 Client Debug     Sleeping for 8 second(s).
> 13:15 Client Info      Processing msg (SOLICIT,transID=0xad70a6,opts: 
> 1 25 8 11)
> 13:15 Client Debug     Sending SOLICIT(opts:1 25 8 11 ) on ppp0/15 to 
> multicast.
> 13:15 Client Debug     Sleeping for 17 second(s).
> ^C13:16 Client Critical  Signal received. Shutting down.
>
> git tcpdump -i ppp0 -vv ip6 -----
> 12:13:00.242699 IP6 (hlim 1, next-header UDP (17) payload length: 67) 
> fe80::98cd:15d:7acc:2f6c.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
> sum ok] dhcp6 solicit (xid=ad70a6 (client-ID hwaddr/time type 1 time 
> 434685180 6cf0490ffd65) (IA_PD IAID:1 T1:4294967295 T2:4294967295) 
> (elapsed-time 0) (authentication proto: 0, alg: 0, RDM: mono, RD: 0000 
> 0000 0000 0000 ??))
> 12:13:01.302433 IP6 (hlim 1, next-header UDP (17) payload length: 67) 
> fe80::98cd:15d:7acc:2f6c.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
> sum ok] dhcp6 solicit (xid=ad70a6 (client-ID hwaddr/time type 1 time 
> 434685180 6cf0490ffd65) (IA_PD IAID:1 T1:4294967295 T2:4294967295) 
> (elapsed-time 100) (authentication proto: 0, alg: 0, RDM: mono, RD: 
> 0000 0000 0000 0000 ??))
> 12:13:03.305877 IP6 (hlim 1, next-header UDP (17) payload length: 67) 
> fe80::98cd:15d:7acc:2f6c.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
> sum ok] dhcp6 solicit (xid=ad70a6 (client-ID hwaddr/time type 1 time 
> 434685180 6cf0490ffd65) (IA_PD IAID:1 T1:4294967295 T2:4294967295) 
> (elapsed-time 300) (authentication proto: 0, alg: 0, RDM: mono, RD: 
> 0000 0000 0000 0000 ??))
> 12:13:07.312699 IP6 (hlim 1, next-header UDP (17) payload length: 67) 
> fe80::98cd:15d:7acc:2f6c.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
> sum ok] dhcp6 solicit (xid=ad70a6 (client-ID hwaddr/time type 1 time 
> 434685180 6cf0490ffd65) (IA_PD IAID:1 T1:4294967295 T2:4294967295) 
> (elapsed-time 700) (authentication proto: 0, alg: 0, RDM: mono, RD: 
> 0000 0000 0000 0000 ??))
> 12:13:15.315603 IP6 (hlim 1, next-header UDP (17) payload length: 67) 
> fe80::98cd:15d:7acc:2f6c.dhcpv6-client > ff02::1:2.dhcpv6-server: [udp 
> sum ok] dhcp6 solicit (xid=ad70a6 (client-ID hwaddr/time type 1 time 
> 434685180 6cf0490ffd65) (IA_PD IAID:1 T1:4294967295 T2:4294967295) 
> (elapsed-time 1500) (authentication proto: 0, alg: 0, RDM: mono, RD: 
> 0000 0000 0000 0000 ??))
>
> _______________________________________________
> http://klub.com.pl/cgi-bin/mailman/listinfo/dibbler



More information about the Dibbler mailing list