Bug 78404

Summary: sysctl gives ip_forward a value of 0 right after iptables loads
Product: [Retired] Red Hat Linux Reporter: Need Real Name <bodywax>
Component: iptablesAssignee: Thomas Woerner <twoerner>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: athlon   
OS: Linux   
URL: http://www.e3.com.au/firewall/
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-07-01 09:52:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2002-11-22 12:56:45 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021016

Description of problem:
sysctl gives ip_forward a value of 0 right after iptables gives it a value of 1.
I did not have this problem with prior versions of redhat.

Nov 22 04:12:07 tower iptables: Loading kernel modules ...
Nov 22 04:12:07 tower iptables: net.ipv4.ip_forward = 1
Nov 22 04:12:07 tower iptables: net.ipv4.ip_dynaddr = 1
Nov 22 04:12:08 tower iptables: net.ipv4.conf.all.rp_filter = 1
Nov 22 04:12:08 tower iptables: Flushing Tables ...
Nov 22 04:12:08 tower iptables: Create and populate custom rule chains ...
Nov 22 04:12:08 tower iptables: Process INPUT chain ...
Nov 22 04:12:08 tower iptables: Process FORWARD chain ...
Nov 22 04:12:08 tower iptables: Process OUTPUT chain ...
Nov 22 04:12:08 tower iptables: Load rules for nat table ...
Nov 22 04:12:08 tower iptables: Load rules for mangle table ...
Nov 22 04:12:08 tower rc: Starting iptables:  succeeded
Nov 22 04:12:08 tower sysctl: net.ipv4.ip_forward = 0
Nov 22 04:12:08 tower sysctl: net.ipv4.conf.default.rp_filter = 1
Nov 22 04:12:08 tower sysctl: kernel.sysrq = 0
Nov 22 04:12:08 toewr sysctl: kernel.core_uses_pid = 1

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.During the install of redhat 8.0 I selected no firewall.
2.http://www.e3.com.au/firewall/ is were I got the script
3. install docs are inside the script and run the script
4. reboot 
	

Actual Results:  during boot up, sysctl give ip_forward a value of 0 right after
iptables give it a value of 1.

Expected Results:  ip_forward should have a value of 1 after iptables loads

Additional info:

I solved this issue by adding a line in the rc.local to get the gateway to work
correctly.

echo "1" > /proc/sys/net/ipv4/ip_forward

Im not sure if it is a bug but it sure bugs me! hehe

Comment 1 Michael Schwendt 2002-11-23 20:21:12 UTC
It's not a bug, because you can choose what sysctl will do. Make sure you set 

  net.ipv4.ip_forward = 1

in /etc/sysctl.conf

You can edit it with your favourite editor or with the redhat-config-proc utility.