selftests: netfilter: add test case for conntrack helper assignment
authorFlorian Westphal <fw@strlen.de>
Mon, 22 Jun 2020 08:28:32 +0000 (10:28 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 24 Jun 2020 22:50:31 +0000 (00:50 +0200)
commit619ae8e0697a6fb85b99b19137590c7c337c579e
treeb9a0ebb008803d2ce88616f8a7ae7e68b95188ec
parent5f027bc74a9be2e53233de4ebcd2f90390b50a62
selftests: netfilter: add test case for conntrack helper assignment

check that 'nft ... ct helper set <foo>' works:
 1. configure ftp helper via nft and assign it to
    connections on port 2121
 2. check with 'conntrack -L' that the next connection
    has the ftp helper attached to it.

Also add a test for auto-assign (old behaviour).

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/netfilter/Makefile
tools/testing/selftests/netfilter/nft_conntrack_helper.sh [new file with mode: 0755]