diff options
Diffstat (limited to 'tests/shell/testcases/nft-f/0008split_tables_0')
-rwxr-xr-x | tests/shell/testcases/nft-f/0008split_tables_0 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/shell/testcases/nft-f/0008split_tables_0 b/tests/shell/testcases/nft-f/0008split_tables_0 new file mode 100755 index 0000000..2631aed --- /dev/null +++ b/tests/shell/testcases/nft-f/0008split_tables_0 @@ -0,0 +1,22 @@ +#!/bin/bash + +set -e + +RULESET="table inet filter { + chain ssh { + type filter hook input priority 0; policy accept; + tcp dport 22 accept; + } +} + +table inet filter { + chain input { + type filter hook input priority 1; policy accept; + } +}" + +$NFT -f - <<< "$RULESET" +if [ $? -ne 0 ] ; then + echo "E: unable to load good ruleset" >&2 + exit 1 +fi |