Firewall-cmd 错误:INVALID_RULE: attribute 'ipset' outside of any element. 解决方法
这个错误是由于在添加富规则时,'ipset'属性没有放在正确的位置引起的。您可以按照下面的方式修改命令来解决问题:
firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source ipset="destDenyIP" drop'
在这个命令中,将'ipset'属性放在了'source'元素中。这样就可以正确地添加富规则了。
原文地址: https://www.cveoy.top/t/topic/bsE8 著作权归作者所有。请勿转载和采集!