OSDN Git Service

selftests: netfilter: extend flowtable test script for ipsec
authorFlorian Westphal <fw@strlen.de>
Tue, 30 Jul 2019 12:57:18 +0000 (14:57 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 5 Aug 2019 09:29:50 +0000 (11:29 +0200)
commit0ca1bbb7f4212aeef83a67a8aed9da1d84567fcc
tree543aae3493b8355faba862bfb30e43fd9ccdc4cf
parent5e5412c365a32e452daa762eac36121cb8a370bb
selftests: netfilter: extend flowtable test script for ipsec

'flow offload' expression should not offload flows that will be subject
to ipsec, but it does.

This results in a connectivity blackhole for the affected flows -- first
packets will go through (offload happens after established state is
reached), but all remaining ones bypass ipsec encryption and are thus
discarded by the peer.

This can be worked around by adding "rt ipsec exists accept"
before the 'flow offload' rule matches.

This test case will fail, support for such flows is added in
next patch.

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