summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0043chain_ingress_0
blob: a6973b99e514ef2cd515c544e58f2f2a72bb663a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

# NFT_TEST_REQUIRES(NFT_TEST_HAVE_inet_ingress)

set -e
RULESET="table inet filter {
	chain ingress {
		type filter hook ingress device \"lo\" priority filter; policy accept;
	}
	chain input {
		type filter hook input priority filter; policy accept;
	}
	chain forward {
		type filter hook forward priority filter; policy accept;
	}
}"

$NFT -f - <<< "$RULESET" && exit 0
exit 1