Skip to content

3.5.1.3 Ensure ufw service is enabled

Audit#

Run the following command to verify that the ufw daemon is enabled:

# systemctl is-enabled ufw.service
enabled

Run the following command to verify that the ufw daemon is active:

# systemctl is-active ufw
active

Run the following command to verify ufw is active

# ufw status
Status: active

Remediation#

Run the following command to unmask the ufw daemon:

# systemctl unmask ufw.service

Run the following command to enable and start the ufw daemon:

# systemctl --now enable ufw.service
active

Run the following command to enable ufw:

# ufw enable