Bug 21386 - /etc/rc.d/init.d/network doesn't consider FORWARD_IPV4
Summary: /etc/rc.d/init.d/network doesn't consider FORWARD_IPV4
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-11-27 18:59 UTC by Bruno Unna
Modified: 2014-03-17 02:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-11-27 19:20:24 UTC
Embargoed:


Attachments (Terms of Use)

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:
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?

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.


Note You need to log in before you can comment on or make changes to this bug.