1.200 RHEL-09-254030

Information

RHEL 9 must not accept router advertisements on all IPv6 interfaces by default.

GROUP ID: V-257975
RULE ID: SV-257975r991589

An illicit router advertisement message could result in a man-in-the-middle attack.

Solution

Configure RHEL 9 to not accept router advertisements on all IPv6 interfaces by default unless the system is a router.

Add or edit the following line in a single system configuration file, in the "/etc/sysctl.d/" directory:

net.ipv6.conf.default.accept_ra = 0

Load settings from all system configuration files with the following command:

$ sudo sysctl --system

See Also

https://workbench.cisecurity.org/benchmarks/22008