All of lore.kernel.org
 help / color / mirror / Atom feed
* [feature request] Fixed timeout for conntrack entry
@ 2006-01-23  9:24 Eric Leblond
  2006-01-24  0:30 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Leblond @ 2006-01-23  9:24 UTC (permalink / raw)
  To: netfilter-devel; +Cc: nufw-core-team

[-- Attachment #1: Type: text/plain, Size: 1938 bytes --]

Hi,

The current libconntrack is for now able to set the standard conntrack
timeout. I think it should be useful to be able to set a fixed conntrack
timeout from userspace to be able to define an efficient connection
expiration policy.

What do you think of this idea ?

Expanded version :

When working on NuFW (http://www.nufw.org), we had to use libconntrack
to kill some entry at a given time. In fact, we use it to be able to
have connections that expire at a given time. At the same time we use
event handling system to be warned of connections that were closed
before their expiration by the users.

This works well but there is a synchronisation problem because when the
NuFW daemon restart you have to synchronise to handle events that have
occur during shutdown :
Let's have a connection and let it die when the daemon is off. When
daemon restart, it could ask kernel to close this connection but it
could then be another existing connection (with the same IPV4 or id
parameters). Arghh ...

Even if it can be done with current functionnalities of conntrack
(dumping conntrack table to daemon at start), it seems that this is not
the cleanest way to do.

In fact, connection expiration is often a user requested feature
(independantly of userspace system) and it could be great to have it
hard wired in the kernel. For example, an iptables match and target
could use it.

From a developpement point of view it seems that this is a "small"
modification of code. It could be done by adding a test when refreshing
standard connection entry timeout (when receiving a packet) and testing
if the connection must be destroy and destroy it if needed ?

Here's some questions :
      * Is this a good idea ?
      * Is there anyone interested in coding it ? (If not I can try to
        do it myself)
      * Is there a chance to have into mainstream ?

BR,
-- 
Eric Leblond <eric@inl.fr>

[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2006-01-24 21:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-23  9:24 [feature request] Fixed timeout for conntrack entry Eric Leblond
2006-01-24  0:30 ` Pablo Neira Ayuso
2006-01-24 17:11   ` Amin Azez
2006-01-24 21:04   ` Eric Leblond

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.