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
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".
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.