Information
RHEL 9 must ignore IPv6 Internet Control Message Protocol (ICMP) redirect messages.
GROUP ID: V-257972
RULE ID: SV-257972r991589
An illicit ICMP redirect message could result in a man-in-the-middle attack.
Solution
Configure RHEL 9 to ignore IPv6 ICMP redirect messages.
Add or edit the following line in a single system configuration file, in the "/etc/sysctl.d/" directory:
net.ipv6.conf.all.accept_redirects = 0
Load settings from all system configuration files with the following command:
$ sudo sysctl --system