#!/bin/bash # comments are shown $NFT add table test $NFT add chain test test $NFT add rule test test tcp dport 22 counter accept comment test_comment $NFT list table test -a | grep 'accept comment \"test_comment\"' >/dev/null