aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/netfilter/Makefile
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-06-24 12:36:41 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-07-02 02:05:59 +0200
commit37d220b58d52d6da88b928e11bffd83f88c6ac79 (patch)
treea5f08597cfca3fc37f7704bf713dcc56b2482250 /tools/testing/selftests/netfilter/Makefile
parents390: iucv: Avoid field over-reading memcpy() (diff)
downloadlinux-dev-37d220b58d52d6da88b928e11bffd83f88c6ac79.tar.xz
linux-dev-37d220b58d52d6da88b928e11bffd83f88c6ac79.zip
selftest: netfilter: add test case for unreplied tcp connections
TCP connections in UNREPLIED state (only SYN seen) can be kept alive indefinitely, as each SYN re-sets the timeout. This means that even if a peer has closed its socket the entry never times out. This also prevents re-evaluation of configured NAT rules. Add a test case that sets SYN timeout to 10 seconds, then check that the nat redirection added later eventually takes effect. This is based off a repro script from Antonio Ojea. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/testing/selftests/netfilter/Makefile')
-rw-r--r--tools/testing/selftests/netfilter/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/netfilter/Makefile b/tools/testing/selftests/netfilter/Makefile
index cd6430b39982..8748199ac109 100644
--- a/tools/testing/selftests/netfilter/Makefile
+++ b/tools/testing/selftests/netfilter/Makefile
@@ -5,7 +5,7 @@ TEST_PROGS := nft_trans_stress.sh nft_fib.sh nft_nat.sh bridge_brouter.sh \
conntrack_icmp_related.sh nft_flowtable.sh ipvs.sh \
nft_concat_range.sh nft_conntrack_helper.sh \
nft_queue.sh nft_meta.sh nf_nat_edemux.sh \
- ipip-conntrack-mtu.sh
+ ipip-conntrack-mtu.sh conntrack_tcp_unreplied.sh
LDLIBS = -lmnl
TEST_GEN_FILES = nf-queue