From aa6f521b427f0c5b2384f90599807ad35b400293 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 6 Nov 2023 20:04:05 +0100 Subject: tests: shell: skip prerouting reject tests if kernel lacks support Skip tests that require reject at prerouting hook. Signed-off-by: Pablo Neira Ayuso --- tests/shell/features/prerouting_reject.nft | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/shell/features/prerouting_reject.nft (limited to 'tests/shell/features/prerouting_reject.nft') diff --git a/tests/shell/features/prerouting_reject.nft b/tests/shell/features/prerouting_reject.nft new file mode 100644 index 00000000..3dcfb40e --- /dev/null +++ b/tests/shell/features/prerouting_reject.nft @@ -0,0 +1,8 @@ +# f53b9b0bdc59 netfilter: introduce support for reject at prerouting stage +# v5.9-rc1~133^2~302^2~11 +table inet t { + chain nat_filter { + type filter hook prerouting priority 0; policy accept; + reject with icmpx type host-unreachable + } +} -- cgit v1.2.3