netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* conntrack: Connection close event?
@ 2007-08-22 18:01 Cedrix
  2007-08-22 19:10 ` Krzysztof Oledzki
  2007-08-22 21:48 ` Eric Leblond
  0 siblings, 2 replies; 4+ messages in thread
From: Cedrix @ 2007-08-22 18:01 UTC (permalink / raw)
  To: netfilter-devel

Hi,

this is my first request. I checked google, nf-faqs and conntrack-homepage 
without sufficient results for this problem:

In Short: I need to know when a connection (TCP or UDP) gets closed. I want 
to use conntrack, because I can track UDP more easily.

My thoughts so far: The /proc/net/ip_conntrack reacts very quick when a 
close happens, but it's not conveniant to check in my C/C++ application. So, 
in further reading I 've seen in the source some kind of "event-handling". 
(Listening Event for new connection, etc.)

My question: What's the best method to see if a connection gets closed. 
(Also, connection opened).

Btw: I use iptables -I FORWARD -m -state --NEW -m --LOG -log-prefix "New 
Connection established: " to log established connections, so it would be 
nice (but not necessary) if I can use the LOG for closing-connections, too - 
OR alternatively - use a conntrack-event for detecting NEW connections, too.

Any help or comment is appreciated! Thanks.


Cedrix.



[--XCN-SF--] 

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

end of thread, other threads:[~2007-08-22 23:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-22 18:01 conntrack: Connection close event? Cedrix
2007-08-22 19:10 ` Krzysztof Oledzki
2007-08-22 23:17   ` Cedrix
2007-08-22 21:48 ` Eric Leblond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).