[Dibbler] Problems assigning DNS on ppp interface

Steve Phillips steve at focb.co.nz
Sat Mar 17 10:07:07 CET 2012


Semi solved, I decided to continue to post this as it may help someone else.

I was about half way through gathering logs when I realised my iptables 
logs were blocking everything except my global range, including link 
local and site local ranges. Changing this to accept all from the ppp+ 
adaptors caused things to start working - Now to test with the native 
windows client.

-- 
Steve.


OK, I have the client.conf file setup as follows

log-level 8
log-mode short
iface "Wibble"
{
    stateless
    option dns-server
    option domain
}

(Wibble is the name of my IPv6/VPN interface)

When running the client I get..

C:\dibbler>dibbler-client.exe run
| Dibbler - a portable DHCPv6, version 0.8.2 (CLIENT, WinXP/200/Vista/7 
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/

2012.03.17 19:44:49 Init Notice    Windows7 detected (majorVersion=6, 
minorVersion=1), so this is proper port.
2012.03.17 19:44:49 Init Warning   Support for Win7 is considered 
experimental.
2012.03.17 19:44:49 Client Critical  | Dibbler - a portable DHCPv6, 
version 0.8.
2(CLIENT, WinXP/2003/Vista port)
2012.03.17 19:44:49 Client Notice    Detected iface Wibble/17, MAC=.
2012.03.17 19:44:49 Client Notice    Detected iface Wireless Network 
Connection/13, MAC=58:b0:35:7a:c7:35.
2012.03.17 19:44:49 Client Notice    Detected iface Bluetooth Network 
Connection/12, MAC=58:b0:35:7a:bc:e9.
2012.03.17 19:44:49 Client Notice    Detected iface Local Area 
Connection/10, MAC=7c:6d:62:8c:fa:c8.
2012.03.17 19:44:49 Client Notice    Detected iface VirtualBox Host-Only 
Network/24, MAC=08:00:27:00:68:41.
2012.03.17 19:44:49 Client Notice    Detected iface Loopback 
Pseudo-Interface 1/1, MAC=.
2012.03.17 19:44:49 Client Notice    Detected iface 
isatap.{8CC7B120-DB7C-46E3-ACBC-6B938E955035}/25, 
MAC=00:00:00:00:00:00:00:e0.
2012.03.17 19:44:49 Client Notice    Detected iface 
isatap.{E9F694A1-A14B-466C-8260-891F6422A054}/36, 
MAC=00:00:00:00:00:00:00:e0.
2012.03.17 19:44:49 Client Notice    Detected iface isatap.fritz.box/19, 
MAC=00:00:00:00:00:00:00:e0.
2012.03.17 19:44:49 Client Notice    Detected iface 6TO4 Adapter/18, 
MAC=00:00:00:00:00:00:00:e0.
2012.03.17 19:44:49 Client Notice    Detected iface Teredo Tunneling 
Pseudo-Interface/15, MAC=00:00:00:00:00:00:00:e0.
2012.03.17 19:44:49 Client Notice    Detected iface 
isatap.{34FD2A8C-C884-4D06-B4CF-E1154E032B16}/37, 
MAC=00:00:00:00:00:00:00:e0.
2012.03.17 19:44:49 Client Notice    Detected iface 
isatap.{5133D896-8067-49CB-932E-ADE24B5D54D8}/20, 
MAC=00:00:00:00:00:00:00:e0.
2012.03.17 19:44:49 Client Notice    Parsing .\client.conf config file...
44:49 Client Debug     Parsing .\client.conf done, result=0
44:49 Client Debug     1 interface(s) specified in client.conf
44:49 Client Info      Interface Wibble/17 configuation has been loaded.
44:49 Client Debug     DUID's value = 
00:01:00:47:16:f7:0a:7f:58:b0:35:7a:c7:35was loaded from client-duid file.
44:49 Client Info      My DUID is 00:01:00:47:16:f7:0a:7f:58:b0:35:7a:c7:35.
44:49 Client Info      Loading old address database 
(client-AddrMgr.xml), usingbuilt-in routines.
44:49 Client Info      DB timestamp:1331973806, now()=1331973889, db is 
83 second(s) old.
44:49 Client Debug     Client 00:01:00:47:16:f7:0a:7f:58:b0:35:7a:c7:35 
loaded from disk successfuly (0/0/0 ia/pd/ta).
44:49 Client Debug     Bind reuse disabled (multiple instances not allowed).
44:49 Client Notice    Creating socket (addr=fe80::8d:3ce3:5673:c5cd) on 
Wibble/17 interface.
44:49 Client Debug     Initialising link-state detection for interfaces: 
Wibble/17
44:49 Client Info      Creating INFORMATION-REQUEST message on Wibble/17 
interface.
44:49 Client Debug     Adding INFORMATION REFRESH TIME to ORO.
44:49 Client Debug     Adding NEXT_HOP and RTPREFIX to ORO.
44:50 Client Debug     Authentication is disabled, not including auth 
options in message.
44:50 Client Debug     Sending INF-REQUEST(opts:1 8 6 ) on Wibble/17 to 
multicast.
44:50 Client Debug     Sleeping for 1 second(s).
44:51 Client Info      Processing msg (INF-REQUEST,transID=0x23f8,opts: 
1 8 6)
44:51 Client Debug     Sending INF-REQUEST(opts:1 8 6 ) on Wibble/17 to 
multicast.
44:51 Client Debug     Sleeping for 2 second(s).
44:53 Client Info      Processing msg (INF-REQUEST,transID=0x23f8,opts: 
1 8 6)
44:53 Client Debug     Sending INF-REQUEST(opts:1 8 6 ) on Wibble/17 to 
multicast.
44:53 Client Debug     Sleeping for 4 second(s).
44:57 Client Info      Processing msg (INF-REQUEST,transID=0x23f8,opts: 
1 8 6)
44:57 Client Debug     Sending INF-REQUEST(opts:1 8 6 ) on Wibble/17 to 
multicast.
44:57 Client Debug     Sleeping for 8 second(s).
45:05 Client Info      Processing msg (INF-REQUEST,transID=0x23f8,opts: 
1 8 6)
45:05 Client Debug     Sending INF-REQUEST(opts:1 8 6 ) on Wibble/17 to 
multicast.
45:05 Client Debug     Sleeping for 16 second(s).
45:21 Client Info      Processing msg (INF-REQUEST,transID=0x23f8,opts: 
1 8 6)
45:21 Client Debug     Sending INF-REQUEST(opts:1 8 6 ) on Wibble/17 to 
multicast.
45:21 Client Debug     Sleeping for 31 second(s).

And on the server, I have set the config back to stateless as follows.

[root at nibblet trans.new]# more /etc/dibbler/server.conf
log-level 8
log-mode syslog
stateless
iface ppp0 {
   option dns-server 2001:49f0:1025::10
   option domain focb.co.nz
   option lifetime 500
}

And from a tcpdump I can see the client sending requests now

[root at nibblet trans.new]# tcpdump -i ppp0 -n ip6 and port 547
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ppp0, link-type LINUX_SLL (Linux cooked), capture size 
65535 bytes
03:42:34.608374 IP6 fe80::8d:3ce3:5673:c5cd.dhcpv6-client > 
ff02::1:2.dhcpv6-server: dhcp6 solicit
03:44:50.328376 IP6 fe80::8d:3ce3:5673:c5cd.dhcpv6-client > 
ff02::1:2.dhcpv6-server: dhcp6 inf-req
03:44:51.376366 IP6 fe80::8d:3ce3:5673:c5cd.dhcpv6-client > 
ff02::1:2.dhcpv6-server: dhcp6 inf-req
03:44:53.432375 IP6 fe80::8d:3ce3:5673:c5cd.dhcpv6-client > 
ff02::1:2.dhcpv6-server: dhcp6 inf-req
03:44:57.490385 IP6 fe80::8d:3ce3:5673:c5cd.dhcpv6-client > 
ff02::1:2.dhcpv6-server: dhcp6 inf-req
03:45:05.540377 IP6 fe80::8d:3ce3:5673:c5cd.dhcpv6-client > 
ff02::1:2.dhcpv6-server: dhcp6 inf-req
03:45:21.593368 IP6 fe80::8d:3ce3:5673:c5cd.dhcpv6-client > 
ff02::1:2.dhcpv6-server: dhcp6 inf-req
03:45:52.648379 IP6 fe80::8d:3ce3:5673:c5cd.dhcpv6-client > 
ff02::1:2.dhcpv6-server: dhcp6 inf-req

OK, so - half way through writing this I figured out the problem. Stupid 
IPtables (I was about to paste my iptables rules to show I was accepting 
everything from 2001:49f0:1025:: when I realised that it was being 
sourced from an fe80:: range - argh !, adding -i ppp+ instead of a range 
fixed the query side of things. and I am now getting replies but it 
still doesn't seem to be updating windows with the information - This is 
however a lot closer than before)

New client log was

55:20 Client Info      Interface Wibble/17 configuation has been loaded.
55:20 Client Debug     DUID's value = 
00:01:00:47:16:f7:0a:7f:58:b0:35:7a:c7:35 was loaded from client-duid file.
55:20 Client Info      My DUID is 00:01:00:47:16:f7:0a:7f:58:b0:35:7a:c7:35.
55:20 Client Info      Loading old address database 
(client-AddrMgr.xml), using built-in routines.
55:20 Client Info      DB timestamp:1331974006, now()=1331974520, db is 
514 second(s) old.
55:20 Client Debug     Client 00:01:00:47:16:f7:0a:7f:58:b0:35:7a:c7:35 
loaded from disk successfuly (0/0/0 ia/pd/ta).
55:20 Client Debug     Bind reuse disabled (multiple instances not allowed).
55:20 Client Notice    Creating socket (addr=fe80::8d:3ce3:5673:c5cd) on 
Wibble/17 interface.
55:20 Client Debug     Initialising link-state detection for interfaces: 
Wibble/17
55:20 Client Info      Creating INFORMATION-REQUEST message on Wibble/17 
interface.
55:20 Client Debug     Adding INFORMATION REFRESH TIME to ORO.
55:20 Client Debug     Adding NEXT_HOP and RTPREFIX to ORO.
55:20 Client Debug     Authentication is disabled, not including auth 
options in message.
55:20 Client Debug     Sending INF-REQUEST(opts:1 8 6 ) on Wibble/17 to 
multicast.
55:20 Client Debug     Sleeping for 1 second(s).
55:20 Client Debug     Received 89 bytes on interface Wibble/17 
(socket=248, addr=fe80::6ced:d06f:32f4:2bcb.).
55:20 Client Info      Received REPLY on Wibble/17,TransID=0x2c05, 6 
opts: 2 1 7 23 24 32
55:21 Client Info      Next option renewal in 500 seconds .
55:21 Client Notice    Insist-mode disabled. Not all options were 
assigned (242243 ). They will remain unconfigured.
55:21 Client Debug     Not executing external script (Notify script 
disabled).
55:21 Client Debug     Sleeping for 500 second(s).

And tcpdump
listening on ppp0, link-type LINUX_SLL (Linux cooked), capture size 
65535 bytes
03:55:21.032380 IP6 fe80::8d:3ce3:5673:c5cd.dhcpv6-client > 
ff02::1:2.dhcpv6-server: dhcp6 inf-req
03:55:21.032846 IP6 fe80::6ced:d06f:32f4:2bcb.dhcpv6-server > 
fe80::8d:3ce3:5673:c5cd.dhcpv6-client: dhcp6 reply


And server log.

Mar 17 03:55:21 nibblet DibblerServer[25917]: Received INF-REQUEST on 
ppp0/23,TransID=0x2c05, 3 opts: 1 8 6, 0 relay(s).
Mar 17 03:55:21 nibblet DibblerServer[25917]: Sending REPLY on 
ppp0/23,transID=0x2c05, opts: 2 1 7 23 24 32, 0 relay(s).
Mar 17 03:55:21 nibblet DibblerServer[25917]: Accepting connections. 
Next event in 60 second(s).
Mar 17 03:56:21 nibblet DibblerServer[25917]: Accepting connections. 
Next event in 4294967295 second(s).



More information about the Dibbler mailing list