Information
The Dynamic Host Configuration Protocol (DHCP) is a service that allows machines to be dynamically assigned IP addresses. There are two versions of the DHCP protocol DHCPv4 and DHCPv6 . At startup the server may be started for one or the other via the -4 or -6 arguments.
Unless a system is specifically set up to act as a DHCP server, it is recommended that the kea package be removed to reduce the potential attack surface.
Solution
Run the following commands to stop kea-dhcp-ddns.service, kea-dhcp4.service, and kea-dhcp6.service and remove the kea package:
# systemctl stop kea-dhcp-ddns.service kea-dhcp4.service kea-dhcp6.service
# dnf remove kea
- OR -
- IF - the kea package is required as a dependency:
Run the following commands to stop and mask kea-dhcp-ddns.service, kea-dhcp4.service, and kea-dhcp6.service :
# systemctl stop kea-dhcp-ddns.service kea-dhcp4.service kea-dhcp6.service
# systemctl mask kea-dhcp-ddns.service kea-dhcp4.service kea-dhcp6.service
Impact:
There may be packages that are dependent on the kea package. If the kea package is removed, these dependent packages will be removed as well. Before removing the kea package, review any dependent packages to determine if they are required on the system.
- IF - a dependent package is required: stop and mask the dhcpd.service and dhcpd6.service leaving the kea package installed.