1.111 UBTU-24-600200

Information

The operating system must configure the Uncomplicated Firewall (ufw) to rate-limit impacted network interfaces.

GROUP ID: V-270754
RULE ID: SV-270754r1066751

Denial of service (DoS) is a condition when a resource is not available for legitimate users. When this occurs, the organization either cannot accomplish its mission or must operate at degraded capacity.

This requirement addresses the configuration of the operating system to mitigate the impact of DoS attacks that have occurred or are ongoing on system availability. For each system, known and potential DoS attacks must be identified and solutions for each type implemented. A variety of technologies exist to limit or, in some cases, eliminate the effects of DoS attacks (e.g., limiting processes or establishing memory partitions). Employing increased capacity and bandwidth, combined with service redundancy, may reduce the susceptibility to some DoS attacks.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

Configure the application firewall to protect against or limit the effects of DoS attacks by ensuring the operating system is implementing rate-limiting measures on impacted network interfaces.

For each service with a port listening to connections, run the following command, replacing "<service_name>" with the service that needs to be rate limited.

To change the Status of ufw to "active" use the following command:

$ sudo ufw enable

Check all the services listening to the ports with the following command:

$ sudo ss -l46ut
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
tcp LISTEN 0 128 [::]:ssh [::]:*

For each service with a port listening to connections, run the following command, replacing "[service]" with the service that needs to be rate limited.

$ sudo ufw limit <service_name>

Rate-limiting can also be done on an interface. An example of adding a rate limit on the "ens160" interface follows:

$ sudo ufw limit in on ens160

See Also

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

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-5, CAT|II, CCI|CCI-002385, CSCv7|9.4, Rule-ID|SV-270754r1066751_rule, STIG-ID|UBTU-24-600200, Vuln-ID|V-270754

Plugin: Unix

Control ID: 8d28cdde67f413db1ddd4dc32bbe2dba5092e9e14516c3bdc8fcdd900ad24e47