#!/bin/bash # table with invalid expression (masquerade called from filter table). # nft must return an error. Also catch nfnetlink retry loops that # cause nft or kernel to spin. timeout 3 $NFT -f - <&2 exit 111 fi # 124 means 'command timed out', fail if this # happens. Else, pass, failure is wanted here. if [ $rc -ne 124 ]; then exit 0 fi exit $rc