From: Pablo Neira Ayuso <pablo@netfilter.org>
To: "Marc Aurèle La France" <tsi@tuyoix.net>
Cc: Laura Garcia Liebana <nevola@gmail.com>, netfilter-devel@vger.kernel.org
Subject: Re: {PATCH nf] x_tables: Allow REJECT targets in PREROUTING chains
Date: Mon, 8 Mar 2021 11:34:38 +0100 [thread overview]
Message-ID: <20210308103438.GA23953@salvia> (raw)
In-Reply-To: <alpine.LNX.2.20.2103071733480.15162@fanir.tuyoix.net>
On Sun, Mar 07, 2021 at 06:16:10PM -0700, Marc Aurèle La France wrote:
> Extend commit f53b9b0bdc59c0823679f2e3214e0d538f5951b9 "netfilter:
> introduce support for reject at prerouting stage", which appeared in
> 5.9, by making the corresponding changes to x_tables REJECT targets.
>
> Please Reply-To-All.
This patch LGTM.
> Thanks.
>
> Marc.
>
> Signed-off-by: Marc Aurèle La France <tsi@tuyoix.net>
> Tested-by: Marc Aurèle La France <tsi@tuyoix.net>
>
> --- a/net/ipv4/netfilter/ipt_REJECT.c
> +++ b/net/ipv4/netfilter/ipt_REJECT.c
> @@ -92,7 +92,7 @@ static struct xt_target reject_tg_reg __read_mostly = {
> .targetsize = sizeof(struct ipt_reject_info),
> .table = "filter",
> .hooks = (1 << NF_INET_LOCAL_IN) | (1 << NF_INET_FORWARD) |
> - (1 << NF_INET_LOCAL_OUT),
> + (1 << NF_INET_LOCAL_OUT) | (1 << NF_INET_PRE_ROUTING),
> .checkentry = reject_tg_check,
> .me = THIS_MODULE,
> };
> --- a/net/ipv6/netfilter/ip6t_REJECT.c
> +++ b/net/ipv6/netfilter/ip6t_REJECT.c
> @@ -102,7 +102,7 @@ static struct xt_target reject_tg6_reg __read_mostly = {
> .targetsize = sizeof(struct ip6t_reject_info),
> .table = "filter",
> .hooks = (1 << NF_INET_LOCAL_IN) | (1 << NF_INET_FORWARD) |
> - (1 << NF_INET_LOCAL_OUT),
> + (1 << NF_INET_LOCAL_OUT) | (1 << NF_INET_PRE_ROUTING),
> .checkentry = reject_tg6_check,
> .me = THIS_MODULE
> };
next prev parent reply other threads:[~2021-03-08 10:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-08 1:16 {PATCH nf] x_tables: Allow REJECT targets in PREROUTING chains Marc Aurèle La France
2021-03-08 10:34 ` Pablo Neira Ayuso [this message]
2021-03-08 16:06 ` Marc Aurèle La France
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=20210308103438.GA23953@salvia \
--to=pablo@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=nevola@gmail.com \
--cc=tsi@tuyoix.net \
/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).