Linux Netfilter discussions
 help / color / mirror / Atom feed
* Conntrack flow expirations
@ 2008-09-24  6:38 Alexey Mikhailov
  2008-09-24  8:17 ` Philip Craig
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Mikhailov @ 2008-09-24  6:38 UTC (permalink / raw)
  To: netfilter; +Cc: netfilter-devel

Hello!

I'm working on some accounting application based on connection tracking
subsytem. Basically, i just gather information from expired flows. But
there's problem, any TCP flow can live for 4 or 5 days for example, and
I need to get more or less real-time processing. So I want to have some
expiration mechanism. I need to:

 a) I don't want flows to live more than 30 minutes
 b) If flow is inactive for 15 secs I want to get it expired as well

So here comes my question, how do I specify expiration time-out for
long lived flows? I have found 

net.ipv4.netfilter.ip_conntrack_tcp_timeout_established = 5 DAYS

If I will change it to 30 MINS will it make trick? But there're
other protocols like UDP: how can I specify active timeout for
it? Another question, if it will affect underlying packet
converstation (i want it to remain undisturbed)? And last
question is how do I specify inactive timeout? I'm not sure that
it's possible but I can write it. And if so, can you please advice
me how I better done it: nf_ct_extend.. for example.

So many questions in so little message but I really looking forward
for your support.

Thank you in advance,
-- Alexey

P.S.: I'm not subscribed to list so please CC me your replies.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-24  8:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-24  6:38 Conntrack flow expirations Alexey Mikhailov
2008-09-24  8:17 ` Philip Craig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox