SV-258886r933719_rule
V-258886
SRG-OS-000480-GPOS-00227
PHTN-40-000223
CAT II
10
Navigate to and open:
/etc/sysctl.d/zz-stig-hardening.conf
Add or update the following lines:
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
net.ipv6.conf.default.accept_source_route = 0
At the command line, run the following command to load the new configuration:
# /sbin/sysctl --load /etc/sysctl.d/zz-stig-hardening.conf
Note: If the file zz-stig-hardening.conf does not exist, it must be created.
At the command line, run the following command to verify source-routed packets are not forwarded:
# /sbin/sysctl -a --pattern "net.ipv[4|6].conf.(all|default).accept_source_route"
Expected result:
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
net.ipv6.conf.default.accept_source_route = 0
If the "accept_source_route" kernel parameters are not set to "0", this is a finding.
V-258886
False
PHTN-40-000223
At the command line, run the following command to verify source-routed packets are not forwarded:
# /sbin/sysctl -a --pattern "net.ipv[4|6].conf.(all|default).accept_source_route"
Expected result:
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
net.ipv6.conf.default.accept_source_route = 0
If the "accept_source_route" kernel parameters are not set to "0", this is a finding.
M
5569