RHEL-06-000082 - IP forwarding for IPv4 must not be enabled, unless the system is a router - sysctl

Information

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

To set the runtime status of the 'net.ipv4.ip_forward' kernel parameter, run the following command:

# sysctl -w net.ipv4.ip_forward=0

Set the system to the required kernel parameter by adding the following line to '/etc/sysctl.conf' or a config file in the /etc/sysctl.d/ directory (or modify the line to have the required value):

net.ipv4.ip_forward = 0

Issue the following command to make the changes take effect:

# sysctl --system

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_6_V2R2_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-217913r603264_rule, STIG-ID|RHEL-06-000082, STIG-Legacy|SV-50312, STIG-Legacy|V-38511, Vuln-ID|V-217913

Plugin: Unix

Control ID: 9e5f05f37a8cd893a792604841f55bd7753b52991d1bcd90c07e9d1781284ddd