Tech Journal Back to Tech Journal

A more correct way of enabling IP Forwarding

So far, I've been using echo 1>/proc/sys/net/ipv4/ip_forward which only sets the forwarding for the current session.

It seems the more correct way is to edit the file /etc/sysctl.conf, make sure there's a line of:

net.ipv4.ip_forward = 1

To force the system to reload the file immidiatly, run the command

sysctl -p
Last updated on 2005-07-29 14:00:00 -0700, by Shalom Craimer

Back to Tech Journal