SV-257959r1155724_rule
V-257959
SRG-OS-000480-GPOS-00227
RHEL-09-253020
CAT II
10
Configure RHEL 9 to ignore IPv4 source-routed packets.
Create a configuration file if it does not already exist:
$ sudo vi /etc/sysctl.d/99-ipv4_accept_source.conf
Add the following line to the file:
net.ipv4.conf.all.accept_source_route = 0
Reload settings from all system configuration files with the following command:
$ sudo sysctl --system
Verify RHEL 9 will not accept IPv4 source-routed packets.
Check the value of the "accept_source_route" variable with the following command:
$ sudo sysctl net.ipv4.conf.all.accept_source_route
net.ipv4.conf.all.accept_source_route = 0
If "net.ipv4.conf.all.accept_source_route" is not set to "0" or is missing, this is a finding.
V-257959
False
RHEL-09-253020
Verify RHEL 9 will not accept IPv4 source-routed packets.
Check the value of the "accept_source_route" variable with the following command:
$ sudo sysctl net.ipv4.conf.all.accept_source_route
net.ipv4.conf.all.accept_source_route = 0
If "net.ipv4.conf.all.accept_source_route" is not set to "0" or is missing, this is a finding.
M
5551