Information
RHEL 9 must not enable IPv6 packet forwarding unless the system is a router.
GROUP ID: V-257974
RULE ID: SV-257974r991589
IP forwarding permits the kernel to forward packets from one network interface to another. The ability to forward packets between two networks is only appropriate for systems acting as routers.
Solution
Configure RHEL 9 to not allow IPv6 packet forwarding, 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.all.forwarding = 0
Load settings from all system configuration files with the following command:
$ sudo sysctl --system