Sep 19, 2018

How to Allow IP Forwarding on Linux

Allow IP Forwarding

First, we need to allow the server to forward traffic. This is fairly essential to the functionality we want our VPN server to provide.

We can adjust this setting by modifying the /etc/sysctl.conf file:

sudo vim /etc/sysctl.conf

net.ipv4.ip_forward=1

To read the file and adjust the values for the current session, type:

sudo sysctl -p