SV-270753r1066748_rule
V-270753
SRG-OS-000142-GPOS-00071
UBTU-24-600190
CAT II
10
Configure Ubuntu 24.04 LTS to use TCP syncookies with the following command:
$ sudo sysctl -w net.ipv4.tcp_syncookies=1
If "1" is not the system's default value, add or update the following line in "/etc/sysctl.conf":
net.ipv4.tcp_syncookies = 1
Verify Ubuntu 24.04 LTS is configured to use TCP syncookies with the following command:
$ sysctl net.ipv4.tcp_syncookies
net.ipv4.tcp_syncookies = 1
If the value is not "1", this is a finding.
Check the saved value of TCP syncookies with the following command:
$ sudo grep -ir net.ipv4.tcp_syncookies /etc/sysctl.d/*.conf /run/sysctl.d/*.conf /usr/local/lib/sysctl.d/*.conf /usr/lib/sysctl.d/*.conf /lib/sysctl.d/*.conf /etc/sysctl.conf 2> /dev/null
/etc/sysctl.d/99-sysctl.conf:net.ipv4.tcp_syncookies=1
/etc/sysctl.conf:net.ipv4.tcp_syncookies=1
If the "net.ipv4.tcp_syncookies" option is not set to "1", is commented out, or is missing, this is a finding.
V-270753
False
UBTU-24-600190
Verify Ubuntu 24.04 LTS is configured to use TCP syncookies with the following command:
$ sysctl net.ipv4.tcp_syncookies
net.ipv4.tcp_syncookies = 1
If the value is not "1", this is a finding.
Check the saved value of TCP syncookies with the following command:
$ sudo grep -ir net.ipv4.tcp_syncookies /etc/sysctl.d/*.conf /run/sysctl.d/*.conf /usr/local/lib/sysctl.d/*.conf /usr/lib/sysctl.d/*.conf /lib/sysctl.d/*.conf /etc/sysctl.conf 2> /dev/null
/etc/sysctl.d/99-sysctl.conf:net.ipv4.tcp_syncookies=1
/etc/sysctl.conf:net.ipv4.tcp_syncookies=1
If the "net.ipv4.tcp_syncookies" option is not set to "1", is commented out, or is missing, this is a finding.
M
5673