blob: ab859365a57023c452ad017fe872e55ccf772009 (
plain)
1
2
3
4
5
6
7
8
|
#!/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 -a list table test | grep 'accept comment \"test_comment\"' >/dev/null
|