Re: get byte count per rule and ip address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 2011-01-15 14:36, Amos Jeffries wrote:

> On 16/01/11 01:09, Mamadou Tourà wrote:
>> Hi, all
>> i've these rule :
>> r1 : iptables  -t mangle  -A POSTROUTING     -m layer7 --l7proto  bgp
>> -j MARK --set-mark 1
>> r2 : iptables  -t mangle  -A POSTROUTING     -m layer7 --l7proto  biff
>>  -j MARK --set-mark 2
>>
>> for both r1 and r2 I'd like to get the byte count of packets that have
>> match rules.
>> also i'd like to get byte count of packets according to the IP address.
>> I need your help plz.
>
> -v shows the packet counters and extra details.
>
> For example:
>  iptables -v -L POSTROUTING
>
> will display the whole table and counters for all rules in it

Better use iptables-save -c for that.

--
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


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux