All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Patrick McHardy <kaber@trash.net>
Cc: Phil Oester <kernel@linuxace.com>,
	Netfilter Development Mailinglist
	<netfilter-devel@vger.kernel.org>
Subject: [RFC] generic CONNTRACK target
Date: Mon, 14 Jan 2008 17:19:00 +0100	[thread overview]
Message-ID: <478B8B74.3070903@netfilter.org> (raw)

Hi Patrick,

Attached an untested RFC patch to discuss the posibility of introducing
a generic CONNTRACK target which replaces several existing specific
targets. It's a quick and dirty hack. I have also somehow merged the
recent Phil Oester's proposition on manual timeouts. We may also
introduce there the explicit helper tracking via iptables that you've
been discussing lately.

Also, I'd like to discuss some kind of mechanisms to reduce the number
of event messages generated by ctnetlink such as introducing
IPCT_VOLATILE to explicitly tell ctnetlink ignore certain events via
iptables. I think that, ideally, an alternative can be some kind of
ctnetlink filtering based on unicast netlink socket (similar to
nfnetlink_queue) in which we attach a filter via CMD_SUBSCRIBE_EVENTS or
something. This solution let us define a per-socket filter in the style
of BSF. However, this means that we'll need a complete filtering
facility for ctnetlink to classify events, and iptables already provides
such classificator. This is intended to reduce the CPU consumption of
conntrackd (around 25% avg, 45% max, in my testbed [1] with 2500 HTTP
GET request per second) by only replicating TCP ESTABLISHED states.

Any ideas?

[1] http://people.netfilter.org/pablo/conntrack-tools/testcase.html

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

             reply	other threads:[~2008-01-14 16:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-14 16:19 Pablo Neira Ayuso [this message]
2008-01-14 16:29 ` [RFC] generic CONNTRACK target Pablo Neira Ayuso
2008-01-14 17:00   ` Jan Engelhardt
2008-01-15  6:40   ` Patrick McHardy
2008-01-15 12:27     ` Jan Engelhardt
2008-01-15 14:11       ` Patrick McHardy
2008-01-15  6:42 ` Patrick McHardy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=478B8B74.3070903@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=kaber@trash.net \
    --cc=kernel@linuxace.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.