centos firewall-cmd防火墙设置

180it 2021-10-26 PM 310℃ 0条

centos firewall-cmd防火墙设置

增加一条富规则:

firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="202.106.86.130" port port="3306" protocol="tcp" accept'

firewall-cmd --reload

删除一条富规则:

firewall-cmd --permanent --remove-rich-rule='rule family="ipv4" source address="202.106.86.130" port port="3306" protocol="tcp" accept'

firewall-cmd --reload

查看富规则:

firewall-cmd --list-rich-rule

查看所有:

firewall-cmd --list-all

支付宝打赏支付宝打赏 微信打赏微信打赏

如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!

标签: none

centos firewall-cmd防火墙设置