From: Pablo Neira Ayuso <pablo@netfilter.org>
To: "Adam N." <adam.n@justnet.pl>
Cc: Eric Leblond <eric@regit.org>, netfilter@vger.kernel.org
Subject: Re: Conntrackd and Stats
Date: Thu, 1 Aug 2013 11:54:06 +0200 [thread overview]
Message-ID: <20130801095406.GA11906@localhost> (raw)
In-Reply-To: <d22255983d977623c2cb29dedbd9e717@justnet.pl>
On Thu, Aug 01, 2013 at 11:23:09AM +0200, Adam N. wrote:
> W dniu 01.08.2013 10:31, Eric Leblond napisał(a):
>
> >Hi,
> >
> >Le jeudi 01 août 2013 à 09:46 +0200, Adam N. a écrit :
> >
> >>Hello everyone, At the beginning I would like to thank everyone
> >>for the work put into the project netfilter.
> >
> >Thanks Adam :)
> >
> >>We use conntrackd projekt to save NAT connections. Recently we
> >>noticed that with the change of the kernel version also changed
> >>format logs( disappeared amount of transferred packets and
> >>bytes). My question is: Is it possible to restore the record
> >>containing the number of packets and bytes transferred in
> >>connection?
> >
> >You can do
> >echo "1" > /proc/sys/net/netfilter/nf_conntrack_acct
> >
> >If you want to have start time of the conntrack entries, you can
> >also do
> >
> >echo "1" > /proc/sys/net/netfilter/nf_conntrack_timestamp
>
> Thank you very much
> you know in what version of the kernel was presented
> nf_conntrack_timestamp?
>
> In order not to ask unnecessary questions in the future, are
> somewhere information about such changes, except for the kernel
> sources :)
See Documentation/networking/nf_conntrack-sysctl.txt in recent
kernels.
Kernel timestamping is there since 2.6.39. Accounting for conntrack
since long time ago (I can find it in 2.6.27 as an optional
extension that you can enable on demand via /proc interface).
Regards.
prev parent reply other threads:[~2013-08-01 9:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 7:46 Conntrackd and Stats Adam N.
2013-08-01 8:31 ` Eric Leblond
2013-08-01 9:23 ` Adam N.
2013-08-01 9:54 ` Pablo Neira Ayuso [this message]
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=20130801095406.GA11906@localhost \
--to=pablo@netfilter.org \
--cc=adam.n@justnet.pl \
--cc=eric@regit.org \
--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