Skip to content

3.5.2.3 Ensure iptables are flushed with nftables

Audit#

Run the following commands to ensure no iptables rules exist

For iptables:

# iptables -L

No rules should be returned

For ip6tables:

# ip6tables -L

No rules should be returned

Remediation#

Run the following commands to flush iptables:

For iptables:

# iptables -F

For ip6tables:

# ip6tables -F