OSDN Git Service

selftests: netfilter: extend flowtable test script with dnat rule
authorFlorian Westphal <fw@strlen.de>
Fri, 13 Dec 2019 00:19:58 +0000 (01:19 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 20 Dec 2019 01:12:27 +0000 (02:12 +0100)
commitd05d5db815d56a0ce203ed297153d9794dfdcb68
tree2f469b919a74ce9b5effb8ca6099b7d4558f6b9e
parentc9b3b8207bc487de02cbca968927ba2c2cb46aaf
selftests: netfilter: extend flowtable test script with dnat rule

NAT test currently covers snat (masquerade) only.

Also add a dnat rule and then check that a connecting to the
to-be-dnated address will work.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/netfilter/nft_flowtable.sh