问题原文
原帖链接 · Emax · CC BY-SA 4.0
I'm trying to comment an existing ufw firewall rule, but I can't find the exact command
I can easily add a rule with comment like:
sudo ufw allow in on eth0 to any port 80 comment 'test'
But how do I comment an existing rule?
已采纳解答
原帖链接 · recyber · CC BY-SA 4.0
If you add exactly same rule, then the existing rule gets overwritten and comment is updated there.
E.g.:
recyber@linux:~$ sudo ufw allow from 10.0.0.0/24 to any port 1234 comment "Comment"
Rule updated
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
