Re: get byte count per rule and ip address

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

 



Thank you for your reply could you give me more detail about xt_ACCOUNT.
regards.

2011/1/15 Jan Engelhardt <jengelh@xxxxxxxxxx>:
> Don't strip the Cc list.
>
> On Saturday 2011-01-15 15:20, Mamadou Tourà 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.
>>>> Âiptables -v -L POSTROUTING
>>>
>>> Better use iptables-save -c for that.
>>
>>OK.
>>but how do I get packet count for an IP address.
>>thet problem is that I don't know exactly the IP that passthrough the box.
>>regards.
>
> Use something like xt_ACCOUNT.
>
--
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