SV-269259r1107619_rule
V-269259
SRG-OS-000480-GPOS-00227
ALMA-09-020260
CAT II
10
Configure AlmaLinux OS 9 to ignore source-routed packets.
Create a numbered *.conf file in /etc/sysctl.d/ with the following content:
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.lo.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
net.ipv6.conf.default.accept_source_route = 0
net.ipv6.conf.lo.accept_source_route = 0
The system configuration files must be reloaded for the changes to take effect. To reload the contents of the files, run the following command:
$ sysctl --system
Verify AlmaLinux OS 9 will not accept source-routed packets.
Check the value of the "accept_source_route" variables with the following command:
$ sysctl -a | grep accept_source_route
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.enp1s0.accept_source_route = 0
net.ipv4.conf.lo.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
net.ipv6.conf.default.accept_source_route = 0
net.ipv6.conf.enp1s0.accept_source_route = 0
net.ipv6.conf.lo.accept_source_route = 0
If the returned lines do not all have a value of "0", this is a finding.
V-269259
False
ALMA-09-020260
Verify AlmaLinux OS 9 will not accept source-routed packets.
Check the value of the "accept_source_route" variables with the following command:
$ sysctl -a | grep accept_source_route
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.enp1s0.accept_source_route = 0
net.ipv4.conf.lo.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
net.ipv6.conf.default.accept_source_route = 0
net.ipv6.conf.enp1s0.accept_source_route = 0
net.ipv6.conf.lo.accept_source_route = 0
If the returned lines do not all have a value of "0", this is a finding.
M
5664