conntrack: Connection close event?
eric at inl.fr
Wed Aug 22 23:48:31 CEST 2007
Le mercredi 22 août 2007 à 20:01 +0200, Cedrix a écrit :
> 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.
The result of "conntrack -E -e DESTROY" is what you want. You can thus
look at the code to build what you want.
You can also look at NuFW (http://www.nufw.org/) which handle conntrack
destroy event. The concerned source code is browsable here:
Hope this help,
More information about the netfilter-devel