summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f/0023check_1
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/nft-f/0023check_1')
-rwxr-xr-xtests/shell/testcases/nft-f/0023check_112
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/shell/testcases/nft-f/0023check_1 b/tests/shell/testcases/nft-f/0023check_1
new file mode 100755
index 0000000..42793b6
--- /dev/null
+++ b/tests/shell/testcases/nft-f/0023check_1
@@ -0,0 +1,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