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:
Find and uncomment the net.ipv4.ip_forward=1 line:
Save the changes and exit the file. Load the new settings using the command sudo sysctl -p /etc/sysctl.conf: