Skip to content

Verify ufw Enabled

An XCCDF Rule

Description

The ufw service can be enabled with the following manifest:

---
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
  labels:
    machineconfiguration.openshift.io/role: master
  name: 75-master-ufw-enable
spec:
  config:
    ignition:
      version: 3.1.0
    systemd:
      units:
      - name: ufw.service
        enabled: true

This will enable the ufw service in all the nodes labeled with the "master" role.

Note that this needs to be done for each MachineConfigPool

For more information on how to configure nodes with the Machine Config Operator see the relevant documentation.

Rationale

The ufw service must be enabled and running in order for ufw to protect the system

ID
xccdf_org.ssgproject.content_rule_service_ufw_enabled
Severity
Medium
References
Updated