All of lore.kernel.org
 help / color / mirror / Atom feed
* trivial patch for /etc/init.d/ip6tables
@ 2003-05-06 22:57 Martijn Lievaart
  0 siblings, 0 replies; only message in thread
From: Martijn Lievaart @ 2003-05-06 22:57 UTC (permalink / raw)
  To: bero; +Cc: Netfilter Development Mailinglist

[-- Attachment #1: Type: text/plain, Size: 262 bytes --]

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


[-- Attachment #2: ip6tables.patch --]
[-- Type: text/plain, Size: 595 bytes --]

[root@ma init.d]# diff -u ip6tables*
--- ip6tables   Wed May  7 00:46:21 2003
+++ ip6tables~  Wed Oct 23 21:47:29 2002
@@ -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]#

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-06 22:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-06 22:57 trivial patch for /etc/init.d/ip6tables Martijn Lievaart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.