Revision 07998281c268592963e1cd623fe6ab0270b65ae4 authored by Florian Westphal on 05 February 2021, 11:56:43 UTC, committed by Pablo Neira Ayuso on 08 February 2021, 23:04:14 UTC
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>
1 parent ce7536b
History
File Mode Size
Kconfig -rw-r--r-- 4.1 KB
Makefile -rw-r--r-- 913 bytes
array.c -rw-r--r-- 22.0 KB
base.c -rw-r--r-- 91.2 KB
bootconfig.c -rw-r--r-- 1.9 KB
cmdline.c -rw-r--r-- 415 bytes
consoles.c -rw-r--r-- 1.9 KB
cpuinfo.c -rw-r--r-- 740 bytes
devices.c -rw-r--r-- 1.2 KB
fd.c -rw-r--r-- 7.4 KB
fd.h -rw-r--r-- 539 bytes
generic.c -rw-r--r-- 18.9 KB
inode.c -rw-r--r-- 17.3 KB
internal.h -rw-r--r-- 9.0 KB
interrupts.c -rw-r--r-- 841 bytes
kcore.c -rw-r--r-- 15.6 KB
kmsg.c -rw-r--r-- 1.5 KB
loadavg.c -rw-r--r-- 880 bytes
meminfo.c -rw-r--r-- 5.2 KB
namespaces.c -rw-r--r-- 4.2 KB
nommu.c -rw-r--r-- 2.6 KB
page.c -rw-r--r-- 7.9 KB
proc_net.c -rw-r--r-- 9.7 KB
proc_sysctl.c -rw-r--r-- 45.4 KB
proc_tty.c -rw-r--r-- 4.5 KB
root.c -rw-r--r-- 8.7 KB
self.c -rw-r--r-- 1.9 KB
softirqs.c -rw-r--r-- 741 bytes
stat.c -rw-r--r-- 6.2 KB
task_mmu.c -rw-r--r-- 47.1 KB
task_nommu.c -rw-r--r-- 6.6 KB
thread_self.c -rw-r--r-- 1.9 KB
uptime.c -rw-r--r-- 988 bytes
util.c -rw-r--r-- 383 bytes
version.c -rw-r--r-- 515 bytes
vmcore.c -rw-r--r-- 40.1 KB

back to top