Conntrackd and Stats
Hello everyone,
At the beginning I would like to thank everyone for the work put into the project netfilter.
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?
Thanks,
Adam N.
Hi,
Quoted 3 lines · Adam N.
Hello everyone,
At the beginning I would like to thank everyone for the work put into the project netfilter.
Thanks Adam :)
Quoted 7 lines
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
BR,
--
Eric
W dniu 01.08.2013 10:31, Eric Leblond napisał(a):
Quoted 8 lines
Hi,
Quoted 1 line · Adam N.
Hello everyone, At the beginning I would like to thank everyone for the work put into the project netfilter.
Thanks Adam :)
Quoted 8 lines
Quoted 1 line
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_acctIf 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 :)
Pozdrawiam,
Adam N.
Quoted 26 lines · Adam N.
W dniu 01.08.2013 10:31, Eric Leblond napisał(a):
Quoted 16 lines
Hi,
Quoted 2 lines · Adam N.
Hello everyone, At the beginning I would like to thank everyone for the work put into the project netfilter.
Thanks Adam :)
Quoted 6 lines
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?
Quoted 7 lines
You can do
echo "1" >/proc/sys/net/netfilter/nf_conntrack_acctIf you want to have start time of the conntrack entries, you can also do
echo "1" >
/proc/sys/net/netfilter/nf_conntrack_timestamp
Quoted 7 lines
Thank you very much
you know in what version of the kernel was presentednf_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.