Uninstall DHCP Client Package
An XCCDF Rule
Description
If the system does not need to act as a DHCP client,
the dhcp-client package can be uninstalled.
The dhcp-client
package can be removed with the following command:
$ sudo zypper remove dhcp-client
Rationale
Removing the DHCP client is necessary when the system works or will work in a static network environment. In this case the system has/will have a static IP address assigned.
- ID
- xccdf_org.ssgproject.content_rule_package_dhcp_client_removed
- Severity
- Medium
- References
- Updated
Remediation - Ansible
- name: Ensure dhcp-client is removed
package:
name: dhcp-client
state: absent
tags:
- CCE-92361-5
Remediation - Puppet
include remove_dhcp-client
class remove_dhcp-client {
package { 'dhcp-client':
ensure => 'purged',
}
Remediation - Shell Script
# CAUTION: This remediation script will remove dhcp-client
# from the system, and may remove any packages
# that depend on dhcp-client. Execute this
# remediation AFTER testing on a non-production
# system!