Skip to content

4.4.1.1 Ensure iptables packages are installed

Audit#

Run the following command to verify that iptables is installed:

# dpkg-query -s iptables &>/dev/null && echo "iptables is installed"
iptables is installed

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

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

Remediation#

Run the following command to install iptables and iptables-persistent

# apt install iptables iptables-persistent