IP Forwarding: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 17: Line 17:
</pre>
</pre>


To enable IP forwarding at boot, add the following to /etc/sysctl.conf:
To enable IP forwarding at boot, add the following to [[Sysctl#.2Fetc.2Fsysctl.conf|/etc/sysctl.conf]]:


  net.ipv4.ip_forward = 1
  net.ipv4.ip_forward = 1

Revision as of 05:52, 19 April 2018

External

Internal

Overview

"IP forwarding" is a synonym for "routing." It is called "kernel IP forwarding" because it is implemented in the Linux kernel.

A host that acts as a router has multiple network interfaces. If traffic comes in on one interface and its target subnet is serviced by another network interface, the kernel may forward the packet between interfaces, if it is configured to do so.

echo 1 > /proc/sys/net/ipv4/ip_forward

To enable IP forwarding at boot, add the following to /etc/sysctl.conf:

net.ipv4.ip_forward = 1