2010/9/1 Mamadou Touré <e2ia.ci@xxxxxxxxx>: > Hi all, > is there a mean to know the rate of traffic that mutch a rule? > > for exemple i'd like to kow the rate of traffic that match the rule > iptables -t mangle -A POSTROUTING -p TCP -dport 80 -j ACCEPT > As a thought create a htb queue: One queue set to 100% of your line speed One queue set to an arbitry value (say 50%) and allowed to borrow upto 100% (ceil parameter) Mark traffic you want to rate monitor in iptables using -j MARK --set-mark Use a tc filter to direct that traffic into the second queue and monitor the queue statistics... -- Richard Horton Users are like a virus: Each causing a thousand tiny crises until the host finally dies. http://www.pbase.com/arimus - My online photogallery http://www.richardhorton.info -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html