1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash EXPECTED='table inet t { flowtable f { hook ingress priority 10 devices = { lo } } chain c { flow add @f } }' set -e $NFT -f - <<< "$EXPECTED"