centos防火墙设置通行策略
允许address访问本机6377端口 firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="10.10.202.140" port protocol="tcp" port="6377" accept" 允许address访问本机6377端口 firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="172.30.154.98/130" port protocol="tcp" port="6377" accept" 重新加载 firewall-cmd --reload 添加 firewall-cmd --zone=public --add-port=80/tcp --permanent (--permanent永久生效,没有此参数重启后失效) 重新载入 firewall-cmd --reload
查看防火墙开放信息
firewall-cmd --list-all
查看开放端口
firewall-cmd --list-ports