The file /etc/rc.d/init.d/network doesn't take into account the value of the variable FORWARD_IPV4 when setting up the network. This is particularly annoying after having set up ipchains to use the machine as a gateway in a local network. In order to solve the problem, what we did is: a) make sure that the variable is set up, in /etc/sysconfig/network: FORWARD_IPV4=true b) modified /etc/rc.d/init.d/network to use the variable (as indicated in this patch): --- network.old Mon Nov 27 12:23:55 2000 +++ network Mon Nov 27 12:18:49 2000 @@ -77,6 +77,8 @@ done fi + [ ${FORWARD_IPV4} = "true" ] && action "Enabling IPv4 packet forwarding: " sysctl -w net.ipv4.ip_forward=1 + touch /var/lock/subsys/network ;; stop) Or are we missing something?
I think you are meant to change /etc/sysctl.conf: # Disables packet forwarding net.ipv4.ip_forward = 0 Set this to 1 to enable kernel IP packet forwarding. I think FORWARD_IPV4 in /etc/sysconfig/network is deprecated.
Yup. This was actually changed back in 6.2 - if you'll see the release notes for 6.2, they should say that FORWARD_IPV4 is no longer valid.