1.409 RHEL-10-800080

Information

RHEL 10 must be configured to use Transmission Control Protocol (TCP) syncookies.

GROUP ID: V-281340RULE ID: SV-281340r1167170

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.

Managing excess capacity ensures that sufficient capacity is available to counter flooding attacks. Employing increased capacity and service redundancy may reduce the susceptibility to some DoS attacks. Managing excess capacity may include, for example, establishing selected usage priorities, quotas, or partitioning.

Satisfies: SRG-OS-000420-GPOS-00186, SRG-OS-000142-GPOS-00071

Solution

Configure RHEL 10 to use TCP syncookies.

Create a configuration file if it does not already exist:

$ sudo vi /etc/sysctl.d/99-ipv4_tcp_syncookies.conf

Add the following line to the file:

net.ipv4.tcp_syncookies = 1

Reload settings from all system configuration files with the following command:

$ sudo sysctl --system

See Also

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