Skip to content

Commit

Permalink
Add new rule service_dhcpd6_disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mpurg committed Nov 25, 2024
1 parent 444895f commit 5d3b804
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/dhcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ rules:
- package_dhcp_client_removed
- package_dhcp_removed
- service_dhcpd_disabled
- service_dhcpd6_disabled
- sysconfig_networking_bootproto_ifcfg
- package_kea_removed
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
documentation_complete: true

title: 'Disable DHCPD6 Service'

description: |-
The <tt>dhcp6</tt> service should be disabled on
any system that does not need to act as a DHCP server.
{{% if product in ['ubuntu2404'] %}}
{{{ describe_service_disable(service="isc-dhcp-server6") }}}
{{% else %}}
{{{ describe_service_disable(service="dhcpd6") }}}
{{% endif %}}
rationale: |-
Unmanaged or unintentionally activated DHCP servers may provide faulty information
to clients, interfering with the operation of a legitimate site
DHCP server if there is one.
severity: medium

platform: system_with_kernel

template:
name: service_disabled
vars:
servicename: dhcpd6
servicename@ubuntu2404: isc-dhcp-server6
packagename: dhcp
packagename@rhel8: dhcp-server
packagename@rhel9: dhcp-server
packagename@ubuntu2404: isc-dhcp-server

0 comments on commit 5d3b804

Please sign in to comment.