]> www.infradead.org Git - users/dwmw2/linux.git/commit
netfilter: conntrack: skip identical origin tuple in same zone only
authorFlorian Westphal <fw@strlen.de>
Fri, 5 Feb 2021 11:56:43 +0000 (12:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Feb 2021 13:00:32 +0000 (14:00 +0100)
commitf66f9f73e0303e0b498529cc72febbbfa11e2103
treec061ddc9998bcf8c4fc9df2419c562924325ace2
parent18b4830f5764421ea13e475e8f6e449905eb6d1d
netfilter: conntrack: skip identical origin tuple in same zone only

[ Upstream commit 07998281c268592963e1cd623fe6ab0270b65ae4 ]

The origin skip check needs to re-test the zone. Else, we might skip
a colliding tuple in the reply direction.

This only occurs when using 'directional zones' where origin tuples
reside in different zones but the reply tuples share the same zone.

This causes the new conntrack entry to be dropped at confirmation time
because NAT clash resolution was elided.

Fixes: 4e35c1cb9460240 ("netfilter: nf_nat: skip nat clash resolution for same-origin entries")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_conntrack_core.c