[Bug 787212] Re: isc-dhcp-server doesn't work in ipv6 mode

Brian Murray brian at ubuntu.com
Thu Oct 20 23:00:42 UTC 2011


** Description changed:

  Binary package hint: isc-dhcp-server
  
  (isc-dhcp-server 4.1.1-P1-15ubuntu9 on Ubuntu server 11.04)
  It's impossible to run dhcpd with the -6 flag with the current apparmor config in the isc-dhcp-server package. I added a patch that fixes this problem, apply with "cd / ; patch -p1 < dhcpv6support.patch".
  
  TEST CASE:
  1) Copy /etc/init.d/isc-dhcp-server to /etc/init.d/isc-dhcp-server6
  2) Copy /etc/dhcp/dhcpd.conf to /etc/dhcp/dhcpd6.conf
  3) Apply the patch from http://paste.ubuntu.com/706208/ to isc-dhcp-server6
  4) Run: update-rc.d isc-dhcp-server6 defaults
  5) Edit /etc/dhcp/dhcpd6.conf to look like:
  ---
  authoritative;
  option dhcp6.name-servers 2001:470:20::2;
  option dhcp6.domain-search "ubuntu.com", "stgraber.net";
  
  # testv6-dhcpv6
  subnet6 2001:470:8cc0:9002::/64 {
-     range6 2001:470:8cc0:9002::128 2001:470:8cc0:9002::254;
+     range6 2001:470:8cc0:9002::128 2001:470:8cc0:9002::254;
  }
  ---
- 6) /etc/init.d/isc-dhcp-server6 start
+ 6) create an ipv6 address on the same network 'ip -6 addr add 2001:470:8cc0:9002:127/64 dev eth0'
+ 7) /etc/init.d/isc-dhcp-server6 start
  
  This will fail with isc-dhcp-server version 4.1.1-P1-15ubuntu9.1 installed and apparmor.
  You will see something like the following in syslog - apparmor="DENIED" .. profile="/usr/sbin/dhcpd"
  
  With the -proposed version isc-dhcp-server and isc-dhcp-common step 6
  will start okay.

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/787212

Title:
  isc-dhcp-server doesn't work in ipv6 mode

Status in “isc-dhcp” package in Ubuntu:
  Fix Released
Status in “isc-dhcp” source package in Natty:
  In Progress

Bug description:
  Binary package hint: isc-dhcp-server

  (isc-dhcp-server 4.1.1-P1-15ubuntu9 on Ubuntu server 11.04)
  It's impossible to run dhcpd with the -6 flag with the current apparmor config in the isc-dhcp-server package. I added a patch that fixes this problem, apply with "cd / ; patch -p1 < dhcpv6support.patch".

  TEST CASE:
  1) Copy /etc/init.d/isc-dhcp-server to /etc/init.d/isc-dhcp-server6
  2) Copy /etc/dhcp/dhcpd.conf to /etc/dhcp/dhcpd6.conf
  3) Apply the patch from http://paste.ubuntu.com/706208/ to isc-dhcp-server6
  4) Run: update-rc.d isc-dhcp-server6 defaults
  5) Edit /etc/dhcp/dhcpd6.conf to look like:
  ---
  authoritative;
  option dhcp6.name-servers 2001:470:20::2;
  option dhcp6.domain-search "ubuntu.com", "stgraber.net";

  # testv6-dhcpv6
  subnet6 2001:470:8cc0:9002::/64 {
      range6 2001:470:8cc0:9002::128 2001:470:8cc0:9002::254;
  }
  ---
  6) create an ipv6 address on the same network 'ip -6 addr add 2001:470:8cc0:9002:127/64 dev eth0'
  7) /etc/init.d/isc-dhcp-server6 start

  This will fail with isc-dhcp-server version 4.1.1-P1-15ubuntu9.1 installed and apparmor.
  You will see something like the following in syslog - apparmor="DENIED" .. profile="/usr/sbin/dhcpd"

  With the -proposed version isc-dhcp-server and isc-dhcp-common step 6
  will start okay.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/787212/+subscriptions



More information about the Ubuntu-sponsors mailing list