3.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/13775

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: f56663753f1b4c0b93bc962a227d85c329e09c009d2a8e9560e28360bfb64bdc