From: Jeremy Sowden <jeremy@azazel.net>
To: ValdikSS <iam@valdikss.org.ru>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: String matcher "algo bm" broken in OUTPUT since 5.3.x
Date: Wed, 7 Jun 2023 18:31:59 +0100 [thread overview]
Message-ID: <20230607173159.GI187342@celephais.dreamlands> (raw)
In-Reply-To: <aec130b2-acaf-83f2-2729-fd48dcb0a698@valdikss.org.ru>
[-- Attachment #1: Type: text/plain, Size: 760 bytes --]
On 2023-05-31, at 11:05:14 +0300, ValdikSS wrote:
> Since at least kernel 5.3.x (2019) and up to current 6.2.15, iptables -m
> string --algo bm does not work when added to the OUTPUT chain.
>
> Quick reproducer (algo bm, does not work properly):
> > # iptables -I OUTPUT -p tcp -m string --algo bm --string 'GET /' -j DROP
> > $ curl -s example.com | head -n3
> >
> > ^^^^ curl executes successfully
>
> This works (algo kmp, works properly):
> > # iptables -I OUTPUT -p tcp -m string --algo kmp --string 'GET /' -j DROP
> > $ curl -s example.com | head -n
> >
> > ^^^^ curl does not execute successfully
I've reproduced this. I'll have a crack at fixing it.
> See:
> https://bugzilla.netfilter.org/show_bug.cgi?id=1390
J.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2023-06-07 17:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-31 8:05 String matcher "algo bm" broken in OUTPUT since 5.3.x ValdikSS
2023-06-07 17:31 ` Jeremy Sowden [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=20230607173159.GI187342@celephais.dreamlands \
--to=jeremy@azazel.net \
--cc=iam@valdikss.org.ru \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).