firewall

删除规则

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

启动firewall

systemctl start firewalld

关闭firewall命令

systemctl stop firewalld

查看所有区域

sudo firewall-cmd --list-all-zones

重载firewall命令

 firewall-cmd --reload 

增加某个ip

firewall-cmd --permanent   --zone=trusted --add-source=0.0.0.0

删除某个ip

firewall-cmd --permanent  --zone=trusted --remove-source=0.0.0.0

你可能感兴趣的:(Linux,docker,服务器,网络)