4.1.3 Ensure ufw default incoming is configured

Information

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

Note: Any port or protocol without a explicit allow before the default deny will be blocked

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

Solution

Run the following command to set incoming to deny by default:

# ufw default deny incoming

Impact:

Any port and protocol not explicitly allowed will be blocked

See Also

https://workbench.cisecurity.org/benchmarks/20741

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