1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash set -e RULESET="define concat-set-variable = { 10.10.10.10 . 25, 10.10.10.10 . 143 } table inet forward { set concat-set-variable { type ipv4_addr . inet_service elements = \$concat-set-variable } }" $NFT -f - <<< "$RULESET"