Skip to content

4.2.2 Ensure iptables-persistent is not installed with ufw

Audit#

Run the following command to verify that the iptables-persistent package is not installed:

# dpkg-query -s iptables-persistent &>/dev/null && echo "iptables-persistent is installed"
Nothing should be returned

Remediation#

Run the following command to remove the iptables-persistent package:

# apt purge iptables-persistent