Enable IP Forwarding in WANEM


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

ip_forward=no

to

ip_forward=yes

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.

Sources:

http://step4wd.com/2010/01/18/enable-ip-forwarding-in-linux/

Advertisements
Tagged

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: