All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3]  [RFC] fixed duration connection
@ 2006-04-04  8:33 Eric Leblond
  2006-04-04  8:36 ` [PATCH 1/3] " Eric Leblond
                   ` (5 more replies)
  0 siblings, 6 replies; 26+ messages in thread
From: Eric Leblond @ 2006-04-04  8:33 UTC (permalink / raw)
  To: Netfilter Development Mailinglist; +Cc: nufw-devel

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

Hi,

While working on NuFW development branch, we have had to
implement policy just as :
      * connection to server is authorised from 08h to 18h and
        connection must be switched off at 18h.

Such features are frequently asked by customers or netfilter addicts but
even with current conntrack related code, it can not be done cleanly.

Thus, we've added the notion of fixed duration before expiration to
connection in the conntrack. (See extended information on bottom for
details)

The following set of patches is against kernel (linus git tree),
libnetfilter_conntrack, and conntrack tool.

-- Extended --

When trying to implement this feature with current connection tracking
code, we have faced some issues :
     1. userspace code has to duplicate conntrack entries, thus it's
        complex and uses memory
     2. there is no hope to have it done by a simple command line
        (because of 1.)
     3. if replication of conntrack in userspace is needed there will be
        many synchronisation problems : stop and start of an
        hypothetical "expiration" daemon would cause conntrack
        duplication and/or loss of information ...

For this reason, we've worked on a simple kernel level implementation.
This is done via a second "struct timer" that is added in connection
structure. Activation of the timer, is for now done via userspace by
using libnetfilter_conntrack or by using new option -T of the conntrack
tool.

This kernel implementation could easily lead to a new iptables target in
the future.

This is a resend of patch :
http://patchwork.netfilter.org/netfilter-devel/patch.pl?id=3289
It adds support for nf_conntrack.

Best regards,
--
Eric Leblond <regit@inl.fr> for the NuFW Core Team
NuFW : http://www.nufw.org/

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

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

end of thread, other threads:[~2006-04-22  0:02 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-04  8:33 [PATCH 0/3] [RFC] fixed duration connection Eric Leblond
2006-04-04  8:36 ` [PATCH 1/3] " Eric Leblond
2006-04-04  8:38 ` [PATCH 2/3] " Eric Leblond
2006-04-04  8:41 ` [PATCH 3/3] [RFC] " Eric Leblond
2006-04-04  8:43 ` [PATCH 2/3] " Eric Leblond
2006-04-04  8:43 ` [PATCH 3/3] [RFC] " Eric Leblond
2006-04-05 13:57 ` [PATCH 0/3] " Patrick McHardy
2006-04-05 14:41   ` Eric Leblond
2006-04-07 21:53   ` Eric Leblond
2006-04-07 21:57     ` [PATCH 1/3] [kernel patch] " Eric Leblond
2006-04-08 19:56       ` Patrick McHardy
2006-04-08 20:55         ` Eric Leblond
2006-04-11 16:22           ` Patrick McHardy
2006-04-11 20:20             ` Eric Leblond
2006-04-12  8:38         ` Harald Welte
2006-04-12 10:48           ` Harald Welte
2006-04-12 19:06             ` Patrick McHardy
2006-04-13 16:17               ` Eric Leblond
2006-04-21  2:30                 ` Patrick McHardy
2006-04-21 20:53                   ` Eric Leblond
2006-04-22  0:02                     ` Patrick McHardy
2006-04-07 21:59     ` [PATCH 2/3] [libnetfilter_conntrack] " Eric Leblond
2006-04-08 19:58       ` Patrick McHardy
2006-04-08 20:23         ` Eric Leblond
2006-04-07 22:01     ` [PATCH 0/3] [conntrack] " Eric Leblond
2006-04-07 22:08       ` [PATCH 3/3] " 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.