答案1
您可以使用该comment
字段:
$ sudo ufw allow from any to any port 1234 comment 'my super secret service'
Rule added
Rule added (v6)
然后
$ sudo ufw status
Status: active
To Action From
-- ------ ----
22/tcp ALLOW Anywhere
Samba ALLOW Anywhere
1234 ALLOW Anywhere # my super secret service
22/tcp (v6) ALLOW Anywhere (v6)
Samba (v6) ALLOW Anywhere (v6)
1234 (v6) ALLOW Anywhere (v6) # my super secret service