4.3.2 Ensure ufw is uninstalled or disabled with nftables

Information

Uncomplicated Firewall (UFW) is a program for managing a netfilter firewall designed to be easy to use.

Running both the nftables service and ufw may lead to conflict and unexpected results.

Solution

Run one of the following to either remove ufw or disable ufw and mask ufw.service :

Run the following command to remove ufw :

# apt purge ufw

-OR-

Run the following commands to disable ufw and mask ufw.service :

# ufw disable
# systemctl stop ufw.service
# systemctl mask ufw.service

Note: ufw disable needs to be run before systemctl mask ufw.service in order to correctly disable UFW

See Also

https://workbench.cisecurity.org/benchmarks/18960

Item Details

Category: SECURITY ASSESSMENT AND AUTHORIZATION, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|CA-9, 800-53|SC-7, 800-53|SC-7(5), CSCv7|9.4

Plugin: Unix

Control ID: e904dbfe0b5e4a2769af1c0ffbcc961539cae63af51be4cdcdfd930bae335863