In this post I will show you how you can enable IP Forwarding permanently in WANEM if you installed it to a hard disk like I have shown you in my last post “Installation of WANEM“.
Important Note: The following steps will only work if you chose debian as System like I did.
You can check if IP Forwarding is enabled with the following command:
sudo cat /proc/sys/net/ipv4/ip_forward
If you receive 0 as an answer it means that IP Forwarding is disabled. If you receive 1 as an answer it means that IP Forwarding is already enabled.
Before you perform the steps to enable IP Forwarding I would recommend you make a backup of the options file in case you want to revert the configuration. You can do this with the following command:
sudo cp /etc/network/options /etc/network/options-old
Ok. Now we will enable IP Forwarding.
The First step is to edit the options file. I used nano to edit the options file.
sudo nano /etc/network/options
You need to change this line from
Now press Ctrl+O to write the changes to the file and press Ctrl+X to exit nano.
Now the last step is to restart the networking service. You can do this with this command:
sudo /etc/init.d/networking restart
That´s it. IP Forwarding is now enabled.