Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 56606

Summary: iptables-1.2.9-r4 startup script lacks 'echo "1" > /proc/sys/net/ipv4/conf/all/forwarding'
Product: Gentoo Linux Reporter: Carsten Milkau <chat.noir>
Component: [OLD] UnspecifiedAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED WONTFIX    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Carsten Milkau 2004-07-10 07:54:11 UTC
in the iptables-1.2.9-r4 startup script, i am missing the following lines:

        if [ "${ENABLE_FORWARDING_IPv4}" = "yes" ] ; then
                einfo "Enabling forwarding for ipv4"
                echo "1" > /proc/sys/net/ipv4/conf/all/forwarding
        fi

(taken from startup script of version 1.2.9) Is this a bug or a feature?  What is the appropriate replacement in the latter case?

Reproducible: Always
Steps to Reproduce:
1. emerge '=iptables-1.2.9-r4'

Actual Results:  
IPv4-Forwarding still not activated in kernel 

Expected Results:  
IPv4-Forwarding automatically activated in kernel
Comment 1 Carsten Milkau 2004-07-10 08:06:11 UTC
Ok, I see this should be done using /etc/sysctl.conf or /etc/conf.d/local. I didn't see the ebuild's message because of autoclean.  Will mark this as "WONT FIX".
Comment 2 Heitzso 2004-07-13 13:02:21 UTC
FYI, the fix to enable ip forwarding that had
been supported in iptable is to edit /etc/sysctl.conf
and change the net.ipv4.ip_forward line to

  net.ipv4.ip_forward = 1

Hope this is useful.