From: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Netfilter Development Mailing list
<netfilter-devel@vger.kernel.org>,
Patrick McHardy <kaber@trash.net>,
fw@strlen.de
Subject: Re: [PATCH nf-next v3] netfilter: x_tables: add context to know if extension runs from nft_compat
Date: Wed, 15 Apr 2015 10:40:39 +0200 [thread overview]
Message-ID: <CAOkSjBgx5cmjOZhqGKi4si+cA2-AiMPN97KOFfJt45pah8FvLw@mail.gmail.com> (raw)
In-Reply-To: <1425311196-5271-1-git-send-email-pablo@netfilter.org>
On 2 March 2015 at 16:46, Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> Currently, we have four xtables extensions that cannot be used from the
> xt over nft compat layer. The problem is that they need real access to
> the full blown xt_entry to validate that the rule comes with the right
> dependencies. This check was introduced to overcome the lack of
> sufficient userspace dependency validation in iptables.
>
> To resolve this problem, this patch introduces a new field to the
> xt_tgchk_param structure that tell us if the extension is run from
> nft_compat context.
>
> The four affected extensions are:
>
> 1) CLUSTERIP, this target has been superseded by xt_cluster. So just
> bail out by returning -EINVAL.
>
> 2) TCPMSS. Relax the checking when used from nft_compat. If used with
> the wrong configuration, it will corrupt !syn packets by adding TCP
> MSS option.
>
> 3) SYNPROXY6. Don't check for e->ipv6.flags if used from nft_compat.
>
> 4) ebt_stp. Relax the check to make sure it uses the reserved
> destination MAC address for STP.
>
> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Tested-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
--
Arturo Borrero González
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2015-04-15 8:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-02 15:46 [PATCH nf-next v3] netfilter: x_tables: add context to know if extension runs from nft_compat Pablo Neira Ayuso
2015-04-15 8:40 ` Arturo Borrero Gonzalez [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=CAOkSjBgx5cmjOZhqGKi4si+cA2-AiMPN97KOFfJt45pah8FvLw@mail.gmail.com \
--to=arturo.borrero.glez@gmail.com \
--cc=fw@strlen.de \
--cc=kaber@trash.net \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@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 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).