3.5.3.1.3 Ensure ufw is uninstalled or disabled with iptables
Audit#
Run the following commands to verify that ufw is either not installed or disabled. Only one of the following needs to pass.
Run the following command to verify that ufw is not installed:
# dpkg-query -W -f='${binary:Package}\t${Status}\t${db:Status-Status}\n' ufw
ufw unknown ok not-installed not-installed
Run the following command to verify ufw is disabled:
Run the following commands to verify that the ufw service is masked:
Remediation#
Run one of the following commands to either remove ufw or stop and mask ufw
Run the following command to remove ufw:
OR
Run the following commands to disable ufw: