← Rules Catalog
mediumnetworkunverifiedrollback-safe

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

sysctl-net-ipv4-conf-default-forwarding · RHEL ≥ 8 · 1 impl

Description

The kernel parameter net.ipv4.conf.default.forwarding must be 0 on hosts that are not routers, so new interfaces do not forward ipv4 packets by default.

Rationale

Packet forwarding on a non-router host can bridge networks, bypass segmentation, or relay attack traffic. The per-interface default must be disabled unless the system is an authorized router.

Check → Remediate

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

Framework references

CIS

rhel8 3.3.1.3rhel10 3.3.1.3

NIST 800-53

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