summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f/0023check_1
blob: 42793b6ec68c593032dbdbc43b4aec4d50ce1faf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

RULESET="table ip foo {
	chain bar {
		type filter hook prerouting priority 0;
	}
}"

$NFT -f - <<< "$RULESET"

$NFT -c add rule foo bar fib saddr . oif type local && exit 1
exit 0