赞
踩
systemctl status firewalld
,也可通过service firewalld status
systemctl start firewalld
,也可通过service firewalld start
systemctl stop firewalld
,也可通过service firewalld stop
systemctl restart firewalld
,也可通过service firewalld restart
systemctl disable/enable firewalld
,也可通过service firewalld disable/enable
firewall-cmd --list-all
1、查看防火墙开放的所有端口firewall-cmd --zone=public --list-ports
2、开放80端口firewall-cmd --zone=public --add-port=80/tcp --permanent
3、查看端口是否开启firewall-cmd --permanent --query-port=80/tcp
4、重新载入防火规则firewall-cmd --reload
5、移除80端口firewall-cmd --zone= public --remove-port=80/tcp --permanent
6、查看防火墙的域firewall-cmd --get-zones
7、查看防火墙默认的域firewall-cmd --get-default-zone
注:**-permanent参数表示永久生效设置,如果没有指定-zone参数,则加入默认区域
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。