Why is 'ip_forward' enabled by default upon boot in Red Hat Enterprise Linux?

Solution Verified - Updated -


  • Upon boot, the output of /proc/sys/net/ipv4/ip_forward as well as sysctl net.ipv4.ip_forward shows ip_forward as enabled:
$ cat /proc/sys/net/ipv4/ip_forward 
$ sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1

However, /etc/sysctl.conf has the parameter disabled by default:

$ grep ip_forward /etc/sysctl.conf 
net.ipv4.ip_forward = 0
  • Why can't the kernel parameter net.ipv4.ip_forward = 0 be disabled permanently?
  • Even if net.ipv4.ip_forward = 0 is set in /etc/sysctl.conf, ip forwarding does not get disabled after reboot


  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content