通过命令行加了几条规则
firewall-cmd --direct --permanent --add-rule ipv4 filter OUTPUT 0 \
--out-interface enp0s8 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
重启后报如下错误
Error: COMMAND_FAILED: Direct: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore v1.4.21: option "--in-interface" requires an argument
Error occurred at line: 4
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
把添加命令里的
--add-rule
改成--remove-rule
,执行下就删除了