Bug 17177

Summary: Bug in dhcpd6 configuration
Product: Mageia Reporter: Alejandro Vargas <alejandro.anv>
Component: RPM PackagesAssignee: Shlomi Fish <shlomif>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: luigiwalser
Version: 5   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: dhcp-server-4.3.2-1.1.mga5.x86_64.rpm CVE:
Status comment:
Bug Depends on: 17490    
Bug Blocks:    

Description Alejandro Vargas 2015-11-19 15:15:28 CET
RPM FILE: dhcp-server-4.3.2-1.1.mga5.x86_64.rpm

dhcpd6 service can't be started. 

The file /usr/lib/systemd/system/dhcpd6.service has a bug. 

Line 6 is:

Environment=CONFIGFILE=/etc/dhcpd6.conf LEASEFILE=/var/lib/dhcp/dhcpd6.leases

And it should be:

Environment=CONFIGFILE=/etc/dhcpd6.conf LEASEFILE=/var/lib/dhcpd/dhcpd6.leases

The RPM also should include an empty file named /var/lib/dhcpd/dhcpd6.leases because the deamon will not start if this file does not exist. It would be good if you also include an /etc/dhcpd6.conf sample file.
Alejandro Vargas 2015-11-19 15:16:00 CET

Source RPM: (none) => dhcp-server-4.3.2-1.1.mga5.x86_64.rpm

Alejandro Vargas 2015-11-19 15:16:10 CET

Hardware: i586 => All

Comment 1 David Walser 2015-11-24 15:17:07 CET
Indeed, thanks for the report.  The PID file definition is also wrong and there are some other files missing.  I've committed some changes in SVN.  Since this is easy to work around if you need to use it (and most don't), I don't see the need to issue an update just for this, but fixes for it will be included in any future update.

What I don't have yet is a dhcpd6.conf file.  I don't think the example one in the dhcp tarball (like the one in /usr/share/doc/dhcp-server for ipv4 dhcp) is an appropriate sample to put in /etc.  Do you have a sample dhcpd6.conf that would be similar to the /etc/dhcpd.conf that we install?

CC: (none) => luigiwalser

Comment 2 Samuel Verschelde 2015-12-07 13:22:07 CET
Assigning to maintainer.

Assignee: bugsquad => shlomif

Comment 3 Alejandro Vargas 2015-12-07 13:36:44 CET
This is my working dhcpd6.conf file:

default-lease-time 600;
max-lease-time 7200; 
log-facility local7; 
subnet6 fd00::/64 {
        # Range for clients
        range6 fd00:0::1:0 fd00:0::1:ffff;

        # Range for clients requesting a temporary address
        range6 fd00:ffff::0/64 temporary;

        # Additional options
        option dhcp6.name-servers fd00::fe;
        option dhcp6.domain-search "localnet";

        # Prefix range for delegation to sub-routers
        #prefix6 2001:db8:0:100:: 2001:db8:0:f00:: /56;

        # Example for a fixed host address
        #host specialclient {
        #       host-identifier option dhcp6.client-id 00:01:00:01:4a:1f:ba:e3:60:b9:1f:01:23:45;
        #       fixed-address6 2001:db8:0:1::127;
        #} 
} 


But you can find other sample here: http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/hints-daemons-isc-dhcp.html
Comment 4 David Walser 2015-12-17 21:29:18 CET
Thanks for the tldp link.  With that and some research I made a dhcpd6.conf and added it to the package.  All of these changes will be available in the next update.
David Walser 2016-01-13 19:59:34 CET

Depends on: (none) => 17490

Comment 5 David Walser 2016-01-13 20:00:09 CET
The update is ready to test in Bug 17490.
Comment 6 David Walser 2016-01-20 18:57:44 CET
Fixed:
http://advisories.mageia.org/MGASA-2016-0028.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED