1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash set -e RULESET="table inet filter { chain x { } } table inet filter { chain input { type filter hook input priority filter; policy accept; jump x } }" $NFT -f - <<< "$RULESET" && exit 0 exit 1