← Rules Catalog
mediumnetworkunverifiedrollback-safe

Ensure net.ipv4.conf.all.forwarding is set to 0

sysctl-net-ipv4-all-forwarding · RHEL ≥ 8 · 1 impl

Description

The kernel parameter net.ipv4.conf.all.forwarding must be set to 0 on systems that are not routers, so the host does not forward IPv4 packets between interfaces.

Rationale

IPv4 packet forwarding on a non-router host can be abused to bridge networks, bypass segmentation controls, or relay attack traffic. It must be disabled unless the system is an authorized router.

Check → Remediate

Checksysctl_value
key:
net.ipv4.conf.all.forwarding
expected:
0
Remediatesysctl_set
key:
net.ipv4.conf.all.forwarding
value:
0

Framework references

CIS

rhel8 3.3.1.2rhel10 3.3.1.2

STIG

V-281353 / RHEL-10-800210V-250317 / RHEL-08-040259V-257970 / RHEL-09-253075

NIST 800-53

CM-6
#sysctl#networking#forwarding#hardening#stig