From: Jan Kogut <jkogut@genesilico.pl>
To: "Juan León" <debjuanca@gmail.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Netfilter Hooks
Date: Thu, 21 Jun 2007 20:29:41 +0200 [thread overview]
Message-ID: <467AC395.1030007@genesilico.pl> (raw)
In-Reply-To: <6bb85d880706211114p50a552e6mdf294b1f8b3119c4@mail.gmail.com>
Hello,
>
> if you use a string match and match for a specific string inside the
> packet, lets say get /index.html. Will that work? Normally, yes.
> However, if the packet size is very small, it will not. The reason is
> that iptables is built to work on a per packet basis, which means that
> if the string is split into several separate packets, iptables will
> not see that whole string. For this reason, you are much, much better
> off using a proxy of some sort for filtering in the application layer.
>
> Use Squid.
That's correct (I hope).
The point is "what is the idea of Knuth-Pratt-Morris algorithm in string
module, if Boyer-Moore works fine?". I assume there should be some pros
and cons of it, hence my curiosity.
Anyway thnx for your indication by demonstration.
Cheers,
JK
--
Regards,
Jan Kogut
Computer Systems Administrator
Laboratory of Bioinformatics and Protein Engineering
International Institute of Molecular and Cell Biology
ul. Ks. Trojdena 4
02-109 Warsaw, Poland
http://genesilico.pl
:.
next prev parent reply other threads:[~2007-06-21 18:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-21 1:41 Netfilter Hooks Tercio F. Gaudencio Filho
2007-06-21 7:09 ` Werner Maier
2007-06-21 15:30 ` Jan Kogut
2007-06-21 18:14 ` Juan León
2007-06-21 18:29 ` Jan Kogut [this message]
2007-06-21 12:09 ` Elvir Kuric
-- strict thread matches above, loose matches on Subject: below --
2001-12-04 13:20 Netfilter hooks Simona
2001-12-04 21:58 ` José Luis Domingo López
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=467AC395.1030007@genesilico.pl \
--to=jkogut@genesilico.pl \
--cc=debjuanca@gmail.com \
--cc=netfilter@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.