trivial patch for /etc/init.d/ip6tables
Hello,
I think this is RedHat specific, so I send this to the author. CC to the netfilter-devel-list just FYI.
There is a little bug in /etc/init.d/ip6tables, it uses the ipv4 tablenames for flushing and clearing. See attached patch.
HTH,
Martijn Lievaart
[root@ma init.d]# diff -u ip6tables*
ip6tables~ Wed Oct 23 21:47:29 2002 renamed from ip6tables Wed May 7 00:46:21 2003 +1 -1
@@ -51,7 +51,7 @@ if [ -f $IPTABLES_CONFIG ]; then # If we don't clear these first, we might be adding to # pre-existing rules. - chains=`cat /proc/net/ip6_tables_names 2>/dev/null` + chains=`cat /proc/net/ip_tables_names 2>/dev/null` echo -n $"Flushing all current rules and user defined chains:" let ret=0 for i in $chains; do ip6tables -t $i -F; let ret+=$?; done
[root@ma init.d]#