4.4.1.3 Ensure ufw is not in use 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:
Nothing should be returned.- OR - Run the following command to verify ufw is disabled:
Run the following commands to verify that the ufw.service is not enabled:
Nothing should be returnedRun the following command to verify ufw.service is not active:
Nothing should be returnedRemediation#
Run the following command to remove ufw:
- OR - Run the following commands to disable ufw, and stop and mask ufw.service:
Note: ufw disable needs to be run before systemctl mask ufw.service in order to correctly disable UFW