]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfd5f6887d8ba9fa3bce8914edecfe9673c114736
tree543aae3493b8355faba862bfb30e43fd9ccdc4cf
parent5d2d40575f6ace923954cfc3122d782b887cb807
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