SV-281341r1167173_rule
V-281341
SRG-OS-000420-GPOS-00186
RHEL-10-800090
CAT II
10
Configure RHEL 10 to ignore IPv4 ICMP redirect messages.
Create a configuration file if it does not already exist:
$ sudo vi /etc/sysctl.d/99-ipv4_accept_redirects.conf
Add the following line to the file:
net.ipv4.conf.all.accept_redirects = 0
Reload settings from all system configuration files with the following command:
$ sudo sysctl --system
Verify RHEL 10 will not accept IPv4 ICMP redirect messages.
Check the value of all "net.ipv4.conf.all.accept_redirects" variables with the following command:
$ sudo sysctl net.ipv4.conf.all.accept_redirects
net.ipv4.conf.all.accept_redirects = 0
If "net.ipv4.conf.all.accept_redirects" is not set to "0" or is missing, this is a finding.
V-281341
False
RHEL-10-800090
Verify RHEL 10 will not accept IPv4 ICMP redirect messages.
Check the value of all "net.ipv4.conf.all.accept_redirects" variables with the following command:
$ sudo sysctl net.ipv4.conf.all.accept_redirects
net.ipv4.conf.all.accept_redirects = 0
If "net.ipv4.conf.all.accept_redirects" is not set to "0" or is missing, this is a finding.
M
5733