← Rules Catalog
mediumnetworkverified rollback-safe

Ensure net.ipv4.ip_forward is set to 0

sysctl-net-ipv4-ip-forward · RHEL ≥ 8 · 1 impl

Description

The kernel parameter net.ipv4.ip_forward must be set to 0 to enforce this network/kernel security control.

Rationale

Improper network kernel parameters can allow network-based attacks including packet redirection, source routing, and denial of service.

Check → Remediate

Checksysctl_value
key:
net.ipv4.ip_forward
expected:
0
Remediatesysctl_set
key:
net.ipv4.ip_forward
value:
0

Framework references

CIS

rhel9 3.3.1rhel8 3.3.1.1rhel10 3.3.1.1

Live verification

rhel10:checkrhel8:checkrhel9:check
#sysctl#networking#hardening