From: Stephen Clark <sclark46@earthlink.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Netfilter Developer Mailing List <netfilter-devel@vger.kernel.org>
Subject: Re: conntrack
Date: Wed, 15 Feb 2012 09:00:38 -0500 [thread overview]
Message-ID: <4F3BBA86.2010208@earthlink.net> (raw)
In-Reply-To: <20120214195429.GD29165@1984>
On 02/14/2012 02:54 PM, Pablo Neira Ayuso wrote:
> On Tue, Feb 14, 2012 at 07:48:10AM -0500, Stephen Clark wrote:
>
>> Hi,
>>
>> Does connection tracking keep any counters on number of packets/and
>> or bytes that are
>> associated with a connection? If so how does one access them?
>>
> echo 1> /proc/sys/net/netfilter/nf_conntrack_acct
>
> Then, you can access them via:
>
> conntrack -L
>
>
Hi Pablo,
I have been working with FreeBSD for about 10 years and using ipfilter.
It has a neat tool ipfstat -t which show the state table
sort of like top. It is very useful if someone is hogging the network
because it is sorted by the highest user first. We are switching
our systems to Linux and would like to know fs there anything like this
for conntrack?
Src: 0.0.0.0, Dest: 0.0.0.0, Proto: any, Sorted by: # bytes
Source IP Destination IP ST PR #pkts
#bytes ttl
192.168.198.105,5353 224.0.0.251,5353 0/0 udp 22598
3736235 1:57
10.0.254.32,631 10.0.255.255,631 0/0 udp 11872
2623712 1:29
192.168.198.103,5353 224.0.0.251,5353 0/0 udp 10608
1720665 1:56
192.168.198.103,5353 224.0.0.251,5353 0/0 udp 10608
1720665 1:56
10.0.254.32,5353 224.0.0.251,5353 0/0 udp 9807
1680621 1:56
10.0.254.32,5353 224.0.0.251,5353 0/0 udp 9806
1680485 1:56
192.168.198.166,50676 192.168.198.75,8181 4/4 tcp 2412 1548504
81:09:04
192.168.198.148,137 192.168.198.255,137 0/0 udp 18625
1452750 1:51
10.0.254.32,631 10.0.255.255,631 0/0 udp 6082
1344122 1:29
192.168.198.148,137 192.168.198.255,137 0/0 udp 14186
1107048 1:51
10.0.129.11,5353 224.0.0.251,5353 0/0 udp 5841
1016739 1:56
10.0.129.11,5353 224.0.0.251,5353 0/0 udp 5840
1016566 1:56
192.168.198.148,137 192.168.198.255,137 0/0 udp 12427
969306 1:51
10.0.133.2,34114 216.17.35.103,143 4/4 tcp 13118 852888
119:59:36
192.168.198.105,5353 224.0.0.251,5353 0/0 udp 3790
828335 1:57
192.168.198.8,5353 224.0.0.251,5353 0/0 udp 5856
826713 1:57
192.168.198.8,5353 224.0.0.251,5353 0/0 udp 5856
826713 1:57
192.168.198.108,5353 224.0.0.251,5353 0/0 udp 5850
813786 1:56
192.168.198.108,5353 224.0.0.251,5353 0/0 udp 5850
813786 1:56
--
"They that give up essential liberty to obtain temporary safety,
deserve neither liberty nor safety." (Ben Franklin)
"The course of history shows that as a government grows, liberty
decreases." (Thomas Jefferson)
next prev parent reply other threads:[~2012-02-15 14:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-14 12:48 conntrack Stephen Clark
2012-02-14 19:54 ` conntrack Pablo Neira Ayuso
2012-02-15 3:41 ` conntrack Stephen Clark
2012-02-15 14:00 ` Stephen Clark [this message]
2012-02-15 14:27 ` conntrack Chris Wilson
-- strict thread matches above, loose matches on Subject: below --
2005-11-05 20:20 conntrack Pawel Oleksik
2005-11-05 20:54 ` conntrack Ralf Spenneberg
2005-11-06 8:02 ` conntrack Pawel Oleksik
2005-11-06 8:44 ` conntrack Ralf Spenneberg
2005-11-06 9:22 ` conntrack Pawel Oleksik
2005-07-31 16:05 conntrack Mohamed Eldesoky
2005-08-02 15:17 ` conntrack Mohamed Eldesoky
2005-08-04 7:42 ` conntrack Jan Engelhardt
2004-03-15 21:16 conntrack Corin Langosch
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=4F3BBA86.2010208@earthlink.net \
--to=sclark46@earthlink.net \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.