赞
踩
systemctl status firewalld
systemctl start firewalld
systemctl stop firewalld
firewall-cmd --reload
firewall-cmd --list-port
firewall-cmd --query-port=80/tcp
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --remove-port=80/tcp --permanent
–zone #作用域
–add-port=80/tcp #添加端口,格式为:端口/通讯协议
–remove-port=80/tcp #移除端口,格式为:端口/通讯协议
–permanent #永久生效,没有此参数重启后失效
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。