SV-284948r1208757_rule
V-284948
SRG-OS-000420-GPOS-00186
RHEL-08-040221
CAT II
10
Configure RHEL 8 to log martian packets on IPv4 interfaces.
Create a configuration file if it does not already exist:
$ sudo vi /etc/sysctl.d/ipv4_log_martians.conf
Add the following line to the file:
net.ipv4.conf.all.log_martians=1
Reload settings from all system configuration files with the following command:
$ sudo sysctl --system
Verify RHEL 8 logs IPv4 martian packets.
Check the value of the "log_martians" variable with the following command:
$ sudo sysctl net.ipv4.conf.all.log_martians
net.ipv4.conf.all.log_martians = 1
If "net.ipv4.conf.all.log_martians" is not set to "1" or is missing, this is a finding.
V-284948
False
RHEL-08-040221
Verify RHEL 8 logs IPv4 martian packets.
Check the value of the "log_martians" variable with the following command:
$ sudo sysctl net.ipv4.conf.all.log_martians
net.ipv4.conf.all.log_martians = 1
If "net.ipv4.conf.all.log_martians" is not set to "1" or is missing, this is a finding.
M
2921