isc-dhcp-server doesn't work in ipv6 mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
isc-dhcp (Ubuntu) |
Fix Released
|
Medium
|
Brian Murray | ||
Natty |
Won't Fix
|
Medium
|
Brian Murray |
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.
TEST CASE:
1) Copy /etc/init.
2) Copy /etc/dhcp/
3) Apply the patch from http://
4) Run: update-rc.d isc-dhcp-server6 defaults
5) Edit /etc/dhcp/
---
authoritative;
option dhcp6.name-servers 2001:470:20::2;
option dhcp6.domain-search "ubuntu.com", "stgraber.net";
# testv6-dhcpv6
subnet6 2001:470:
range6 2001:470:
}
---
6) create an ipv6 address on the same network 'ip -6 addr add 2001:470:
7) /etc/init.
This will fail with isc-dhcp-server version 4.1.1-P1-
You will see something like the following in syslog - apparmor="DENIED" .. profile=
With the -proposed version isc-dhcp-server and isc-dhcp-common step 6 will start okay.
Related branches
- Dave Walker (community): Approve
- Ubuntu branches: Pending requested
-
Diff: 62 lines (+15/-7)2 files modifieddebian/apparmor-profile.dhcpd (+8/-7)
debian/changelog (+7/-0)
tags: | added: patch |
Changed in isc-dhcp (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Brian Murray (brian-murray) |
tags: | added: ipv6 |
Changed in isc-dhcp (Ubuntu Natty): | |
status: | New → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
Changed in isc-dhcp (Ubuntu Natty): | |
status: | Fix Committed → Won't Fix |
I also added a second file that can be placed in /etc/init.d/ as 2nd init script to launch the server in v6 mode (if you run "diff /etc/init. d/isc-dhcp* -server" you will see that it's very similar to the init script to launch the server in regular dhcp mode.
This init-file is only optional, it is not needed to fix the bug. (but it would be nice to include it even if you don't place it in any runlevels)
A default /etc/dhcp/ dhcpd6. conf is maybe also a good idea (also not needed to fix the bug).