Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34907 - ip_forward not set to '1' in /etc/init.d/iptables
Summary: ip_forward not set to '1' in /etc/init.d/iptables
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-02 11:12 UTC by Heitzso
Modified: 2004-05-16 03:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heitzso 2003-12-02 11:12:36 UTC
I expected the iptables init.d script to set ip_forward in /proc
to '1'.  That would be the appropriate place to set/unset (start/stop).


Reproducible: Always
Steps to Reproduce:
1.emerge kernel/iptables, create firewall w/ NAT using iptables
2./etc/init.d/iptables save
3.next boot iptables set, but the init.d/iptables script didn't set ip_forwarding on

Actual Results:  
NAT not functioning

Expected Results:  
NAT should function.  Actual problem is that ip forwarding not enabled.

Strongly suggest that ip_forward be toggled on/off in /etc/init.d/iptables
script.  That's the fix I'll implement by hand now.  Hard for me to imagine a
more appropriate place to put it.  ???
Comment 1 SpanKY gentoo-dev 2003-12-02 11:59:00 UTC
iptables uses the iptables binaries to save/restore rules

i guess we should add a bit more code to save /proc settings ?
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2003-12-02 13:46:14 UTC
What about /etc/conf.d/iptables 

ENABLE_FORWARDING_IPv4

?
Comment 3 SpanKY gentoo-dev 2003-12-02 15:45:57 UTC
yep, submitter e-mailed me about it
Comment 4 unl 2004-05-16 03:52:44 UTC
as i can see in changelog, autor has removed it from initscripts but is there any place that i can find it, or for now i need to apply 
echo "1" > /proc/.../ip_forward 
in /etc/conf.d/local.start ???