3.5.2.1 Ensure default deny firewall policy - Chain INPUT

Information

A default deny all policy on connections ensures that any unconfigured network usage will
be rejected.

Rationale:

With a default accept policy the firewall will accept any packet that is not configured to be
denied. It is easier to white list acceptable usage than to black list unacceptable usage.

Solution

Run the following commands to implement a default DROP policy:

# iptables -P INPUT DROP
# iptables -P OUTPUT DROP
# iptables -P FORWARD DROP

Notes:

Changing firewall settings while connected over network can result in being locked out of
the system.

Remediation will only affect the active system firewall, be sure to configure the default
policy in your firewall management to apply on boot as well.

See Also

https://workbench.cisecurity.org/files/2420

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-7(12), CSCv6|9.1, CSCv7|9.4

Plugin: Unix

Control ID: 16c9bd2b7010cf05201041483970993eb1f8e241b3b0df4e800c6e89ddc6fcc1