1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/bash # NFT_TEST_REQUIRES(NFT_TEST_HAVE_ctexpect) EXPECTED='table ip filter { ct expectation ctexpect{ protocol tcp dport 9876 timeout 1m size 12 l3proto ip } chain c { ct expectation set "ctexpect" } }' set -e $NFT -f - <<< "$EXPECTED"