After iptables are loaded it is save to turn on portforwarding, if the user wants to (maybe with a value in /etc/conf.d/net) Just before iptables are flushed or restored, you should disable forwarding so that no unauthorized packets can get trough. IP forwarding can be enabled with: echo 1 >/proc/sys/net/ipv4/ip_forward echo 1 >/proc/sys/net/ipv6/conf/all/forwarding for ipv6, you may want to compile iptables with 'make experimental' which will build ip6tables-save and restore utilities.
If you load the iptables rules before bringing up interfaces, it's safe to turn on ip_forwarding before activating iptables... That is, if you: 1. turn on ip_forwarding 2. turn on ipchains 3. turn up interfaces you're safe...
*** This bug has been marked as a duplicate of 2355 ***