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

Geek University 2022