From: Amos Jeffries <squid3@treenet.co.nz>
To: netfilter@vger.kernel.org
Subject: Re: get byte count per rule and ip address
Date: Sun, 16 Jan 2011 02:36:30 +1300 [thread overview]
Message-ID: <4D31A2DE.1050702@treenet.co.nz> (raw)
In-Reply-To: <AANLkTimcqgfuk6mxKeANn4tS_saGwbUTGVSJHSTyozQs@mail.gmail.com>
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
AYJ
next prev parent reply other threads:[~2011-01-15 13:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-15 12:09 get byte count per rule and ip address Mamadou Touré
2011-01-15 13:36 ` Amos Jeffries [this message]
2011-01-15 14:15 ` Jan Engelhardt
-- strict thread matches above, loose matches on Subject: below --
2011-01-15 14:41 Jan Engelhardt
2011-01-15 16:41 ` Mamadou Touré
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D31A2DE.1050702@treenet.co.nz \
--to=squid3@treenet.co.nz \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox