In FreeBSD Setup i detailed the use of KAME’s dhcp client to authentify and request an IPv6 block to be routed onto the server.
However as it seem this client has a tendancy to misbehave and trigger the hosting provider DOS defense mechanism (mainly rebooting the serveur after disabling dhcp service autorisations, not fun).
While checking around with friend it seems i wasn’t the first one hit by this and that the solution was to switch over to ISC’s dhcp service, with a little twist (freebsd package for isc-dhcp doesn’t include an init script for dhcpv6).
However as stated before the package doesn’t include a statup script for ipv6 service, so there is one you need to paste into
/usr/local/etc/rc.d/dhclient6 (courtesy of neuro):
Configuration is simpler than using KAME’s dhcp6c, most notably the DUID doesn’t need some magic, only need to write it up in a
And activate everything in
rc.conf like before, there is however one minor diff with previous configuration, i didn’t had time to investigate as of why but
dhcp6c setup did add and ipv6 address to the requesting interface, current
isc-dhcp does not, so i added an alias:
When happy with this new setup you can do some cleanup: