[Bug 488] New: Chain/Groupings of networks don't total pkts and bytes correctly

bugzilla-daemon at bugzilla.netfilter.org bugzilla-daemon at bugzilla.netfilter.org
Thu Jun 22 17:52:00 CEST 2006


https://bugzilla.netfilter.org/bugzilla/show_bug.cgi?id=488

           Summary: Chain/Groupings of networks don't total pkts and bytes
                    correctly
           Product: iptables
           Version: 1.2.11
          Platform: i386
        OS/Version: RedHat Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: iptables
        AssignedTo: laforge at netfilter.org
        ReportedBy: muzinim at losrios.edu


The output at the end of the description shows all chains/groups reflect the 
same statistics.  If I total up the members of a respective chain manually as 
shown below, I get to correct total.

if [[ $1 = -a ]]; then
        ADMINUP=`/sbin/iptables --list ADMIN-UP -n -v -x | /usr/bin/tr -
s ' '|/b
in/grep all|/bin/cut -d " " -f 3`
        expr `echo $ADMINUP|sed s/" "/" + "/g`
        ADMINDOWN=`/sbin/iptables --list ADMIN-DOWN -n -v -x | /usr/bin/tr -
s ' 
'|/bin/grep all|/bin/cut -d " " -f 3`
        expr `echo $ADMINDOWN|sed s/" "/" + "/g`
fi

Chain FORWARD (policy ACCEPT 372862 packets, 89753461 bytes)
    pkts      bytes target     prot opt in     out     source
 6768749 3477337404            all  --  *      br0     0.0.0.0/0
 6768749 3477337404 ADMIN-UP   all  --  *      *       0.0.0.0/0
 6768749 3477337404 CS-UP      all  --  *      *       0.0.0.0/0
 6768749 3477337404 CNB-UP     all  --  *      *       0.0.0.0/0
 6768749 3477337404 DMZ-UP     all  --  *      *       0.0.0.0/0
 6768749 3477337404 INSTRUCT-UP  all  --  *      *       0.0.0.0/0
 6768749 3477337404 PUBLIC-UP  all  --  *      *       0.0.0.0/0
 6768749 3477337404 SERVICE-UP  all  --  *      *       0.0.0.0/0

-- 
Configure bugmail: https://bugzilla.netfilter.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the netfilter-buglog mailing list