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

set -e

RULESET="add table x
add chain x y
flush ruleset
add table x
add chain x y { type filter hook input priority 0; }
add chain x y { policy drop; }
flush ruleset
add table w
add chain w y { type filter hook output priority 0; }"

$NFT -f - <<< $RULESET
if [ $? -ne 0 ] ; then
        echo "E: unable to load good ruleset" >&2
        exit 1
fi