Debian/Ubuntu /etc/network/options:

ip_forward=yes

For restart network service procps:

/etc/init.d/procps.sh restart

RedHat /etc/sysconfig/network:

FORWARD_IPV4=true