Question: how to do ip forwarding in linux?
Answer: 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.