SV-257961r1155730_rule
V-257961
SRG-OS-000480-GPOS-00227
RHEL-09-253030
CAT II
10
Configure RHEL 9 to log martian packets on IPv4 interfaces by default.
Create a configuration file if it does not already exist:
$ sudo vi /etc/sysctl.d/99-ipv4_log_martians.conf
Add the following line to the file:
net.ipv4.conf.default.log_martians=1
Reload settings from all system configuration files with the following command:
$ sudo sysctl --system
Verify RHEL 9 logs IPv4 martian packets by default.
Check the value of the "default.log_martians" variable with the following command:
$ sudo sysctl net.ipv4.conf.default.log_martians
net.ipv4.conf.default.log_martians = 1
If "net.ipv4.conf.default.log_martians" is not set to "1" or is missing, this is a finding.
V-257961
False
RHEL-09-253030
Verify RHEL 9 logs IPv4 martian packets by default.
Check the value of the "default.log_martians" variable with the following command:
$ sudo sysctl net.ipv4.conf.default.log_martians
net.ipv4.conf.default.log_martians = 1
If "net.ipv4.conf.default.log_martians" is not set to "1" or is missing, this is a finding.
M
5551