Bug 21386

Summary: /etc/rc.d/init.d/network doesn't consider FORWARD_IPV4
Product: [Retired] Red Hat Linux Reporter: Bruno Unna <bruno>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: dr, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-11-27 19:20:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Bruno Unna 2000-11-27 18:59:18 UTC
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:

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 @@
+	[ ${FORWARD_IPV4} = "true" ] && action "Enabling IPv4 packet forwarding:
" sysctl -w net.ipv4.ip_forward=1
         touch /var/lock/subsys/network

Or are we missing something?

Comment 1 Daniel Roesen 2000-11-27 19:20:21 UTC
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.

Comment 2 Bill Nottingham 2000-11-27 19:28:17 UTC
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.