From: Florian Westphal <fw@strlen.de>
To: gaoxingwang <gaoxingwang1@huawei.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
davem@davemloft.net, bridge@lists.linux.dev,
netfilter-devel@vger.kernel.org, idosch@nvidia.com,
pablo@netfilter.org, kadlec@netfilter.org, yanan@huawei.com,
xuchunxiao3@huawei.com, huyizhen2@huawei.com
Subject: Re: netfilter: br_netfilter:NS packet was incorrectly matched by the nftables rule
Date: Thu, 14 Aug 2025 14:43:03 +0200 [thread overview]
Message-ID: <aJ3Z1_-mm67LOID-@strlen.de> (raw)
In-Reply-To: <20250814120753.1374735-1-gaoxingwang1@huawei.com>
gaoxingwang <gaoxingwang1@huawei.com> wrote:
> Hello,everyone:
> In my test case, the container (with net.bridge.bridge-nf-call-ip6tables=1 set) attempts
> to ping the host's IPv6 address through a bridged network. Simultaneously, tcpdump is used to monitor
> the bridge, and it is observed that the ping fails.
>
> The direct cause of the ping failure is that the NS packet matches the "ct state invalid drop"
> rule in nftables and is therefore discarded.
>
> The commit 751de2012eafa4d46d80 introduced a modification to bridge traffic handling. When the bridge
> is in promiscuous mode, it resets the conntrack state of the packets.
> > if (promisc) {
> > nf_reset_ct(skb);
> > return NF_ACCEPT;
> > }
> IPv6 NS packets are untracked by default.When an IPv6 NS packet passes through the bridge and the bridge
> is in promiscuous mode, the conntrack state of the packet is reset. If there is a firewall rule
> such as "ct state invalid drop," the IPv6 NS packet will be deemed invalid and dropped, leading to
> a ping failure issue.
>
> Is this a bug, or is there an issue with my analysis?
net.bridge.bridge-nf-call-ip6tables and bridge conntrack are
incompatible.
Either use ipv6 conntrack with net.bridge.bridge-nf-call-ip6tables or
disable net.bridge.bridge-nf-call-ip6tables.
prev parent reply other threads:[~2025-08-14 12:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-14 12:07 gaoxingwang
2025-08-14 12:43 ` Florian Westphal [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=aJ3Z1_-mm67LOID-@strlen.de \
--to=fw@strlen.de \
--cc=bridge@lists.linux.dev \
--cc=davem@davemloft.net \
--cc=gaoxingwang1@huawei.com \
--cc=huyizhen2@huawei.com \
--cc=idosch@nvidia.com \
--cc=kadlec@netfilter.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
--cc=xuchunxiao3@huawei.com \
--cc=yanan@huawei.com \
/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
all inboxes | Powered by JetHome®