How To Enable IP Forwarding in Linux
How To Enable IP Forwarding in Linux
By default any modern Linux distributions will have IP Forwarding disabled. This is normally a good idea, as most peoples will not need IP Forwarding, but if we are setting up a Linux router/gateway or maybe a VPN server (pptp or ipsec) or just a plain dial-in server then we will need to enable forwarding. This can be done in several ways that I will present bellow.
Route
route add -net 224.0.0.0/3 gw 192.168.10.2 sudo route add -net 224.0.0.0/3 gw 172.29.4.1 dev wlan0