From: Patrick Schaaf <bof@bof.de>
To: Harald Welte <laforge@netfilter.org>, Patrick Schaaf <bof@bof.de>,
macadanet@yahoo.es,
lista de correo netfilter <netfilter-devel@lists.netfilter.org>
Subject: Re: string match -> new option
Date: Sun, 2 Mar 2003 12:36:29 +0100 [thread overview]
Message-ID: <20030302113629.GC25876@oknodo.bof.de> (raw)
In-Reply-To: <20030302095915.GC2296@naboo.clug.de>
> Look at 'libqsearch' from Philipe Biondi. (I don't have the URL here
> right now, but 'libqsearch' + 'kernel' on google gives you the result).
Thanks for the pointer! The homepage is at
http://www.cartel-securite.fr/pbiondi/libqsearch.html
> This is the way to do pattern matching on TCP streams in the kernel...
Looks good at first glance, as a fast parallel pattern matcher. Really nice.
However, for full generality in application to TCP streams, one would
at least need an additional, upfront reorder step, to bring the
stream's packets into the correct order. If a packet it missing,
in the sequence, the search must be paused, with the question
of what to do with the already arrived head-of-sequence packet
(the packet after the perceived gap).
I still feel that such logic has already been implemented in the form
of the local network stack TCP layer; it would be wrong to reimplement
all of that in a separate stream matcher. That's why REDIRECT is my
preferred approach: it gets the packets through the TCP layer.
Thus, the critical question, to me, is less in the matching, than in
how to architect such a matching machinery above the TCP stack, without
paying the cost of a user level interface / application level gateway.
As occasionally mentioned, I think khttpd and the Tux web server are
the correct "role models" for a total solution to this really frequently
asked question. How to fit such a kernel daemon approach into configuration
by iptables?
Note that I don't feel like implementing anything like that, myself. No need,
no motivation.
best regards
Patrick
prev parent reply other threads:[~2003-03-02 11:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-01 1:53 string match -> new option macadanet
2003-03-01 6:39 ` Patrick Schaaf
2003-03-01 15:47 ` Michael Rash
2003-03-02 9:59 ` Harald Welte
2003-03-02 11:36 ` Patrick Schaaf [this message]
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=20030302113629.GC25876@oknodo.bof.de \
--to=bof@bof.de \
--cc=laforge@netfilter.org \
--cc=macadanet@yahoo.es \
--cc=netfilter-devel@lists.netfilter.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.