From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Phil Oester <kernel@linuxace.com>
Cc: netfilter-devel@vger.kernel.org, ljlane@debian.org, jengelh@medozas.de
Subject: Re: [PATCH] iptables: state match incompatibilty across versions
Date: Thu, 8 Aug 2013 18:16:03 +0200 [thread overview]
Message-ID: <20130808161603.GA7525@localhost> (raw)
In-Reply-To: <20130807234449.GA22535@linuxace.com>
On Wed, Aug 07, 2013 at 04:44:49PM -0700, Phil Oester wrote:
> As reported in Debian bug #718810 [1], state match rules added in < 1.4.16
> iptables versions are incorrectly displayed by >= 1.4.16 iptables versions.
> Issue bisected to commit 0d701631 (libxt_state: replace as an alias to
> xt_conntrack).
>
> Fix this by adding the missing .print and .save functions for state match
> aliases in the conntrack match.
The problem seems to be related with xtables_mt_prefer, which ranks
the conntrack match higher than state match itself, as it treats state
as an alias. This is OK in the userspace to kernel path, where state
is internally transformed to conntrack, but not from kernel to
userspace, where the state match info is being interpreted by the
conntrack match.
We could fix this from libxtables, but adding some parameter to
xtables_find_match to indicate what path this function is called from.
But that requires a new ABI change to resolve it, which will break
Jamal's tc action again, I guess stephen will not be very happy with
it.
I'm going to take your patch, it's simple and it fixes this issue.
Thanks Phil.
prev parent reply other threads:[~2013-08-08 16:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-07 23:44 [PATCH] iptables: state match incompatibilty across versions Phil Oester
2013-08-08 16:16 ` Pablo Neira Ayuso [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=20130808161603.GA7525@localhost \
--to=pablo@netfilter.org \
--cc=jengelh@medozas.de \
--cc=kernel@linuxace.com \
--cc=ljlane@debian.org \
--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).