IP forwarding

You can configure your Linux distribution to function as a router and connect different networks together. To do this, you need to enable IP forwarding in the configuration file, usually stored at /etc/sysctl.conf:

etc sysctl.conf file

Find and uncomment the net.ipv4.ip_forward=1 line:

enable ip forwarding

Save the changes and exit the file. Load the new settings using the command sudo sysctl -p /etc/sysctl.conf:

sysctl p command

Subscribe to our Newsletter

Like us on Facebook

top
Geek University 2019