/lib/systemd/system/isc-dhcp-server.service $INTERFACES variable

Bug #1774342 reported by JOSE CARLOS MARTIN IGLESIAS
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
isc-dhcp (Ubuntu)
New
Undecided
Unassigned
Bionic
New
Undecided
Unassigned
Focal
New
Undecided
Unassigned
Groovy
New
Undecided
Unassigned
Hirsute
New
Undecided
Unassigned

Bug Description

package: isc-dhcp-server

/etc/default/isc-dhcp-server define the variables INTERFACESv4 and INTERFACESv6 for define listening network interface, but /lib/systemd/system/isc-dhcp-server.service and /lib/systemd/system/isc-dhcp-server6.service use the variable INTERFACES (exec dhcpd -user dhcpd -group dhcpd -f -4 -pf /run/dhcp-server/dhcpd.pid -cf $CONFIG_FILE $INTERFACES'). This causes the service to listen on all interfaces.

The correct way would be for /lib/systemd/system/isc-dhcp-server.service:
......
 exec dhcpd -user dhcpd -group dhcpd -f -4 -pf /run/dhcp-server/dhcpd.pid -cf $CONFIG_FILE $INTERFACESv4'
......

for /lib/systemd/system/isc-dhcp-server.service:
......
exec dhcpd -user dhcpd -group dhcpd -f -6 -pf /run/dhcp-server/dhcpd6.pid -cf $CONFIG_FILE $INTERFACESv6'
.........

Revision history for this message
JOSE CARLOS MARTIN IGLESIAS (jcmartini) wrote :

package isc-dhcp-server version 4.3.5-3ubuntu7

Utkarsh Gupta (utkarsh)
no longer affects: isc-dhcp (Ubuntu Groovy)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.