4.2.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/17074

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: 36a2d88455f30f9cef74551e3e1c3fddd96ba86822fbcecaea04133bd2d60d79