Surprised => indulgence => Calm => Lost => Panic =>Calm

Linux 防火墙

Linux-Basic imekaku 571℃ 0评论

系统操作防火墙

systemctl start firewalld # 开启

systemctl restart firewalld # 重启

systemctl status firewalld # 或者

systemctl disable firewalld # 禁用

systemctl stop firewalld # 关闭

防火墙命令

firewall-cmd –version # 防火墙版本

firewall-cmd –state # 防火墙状态

firewall-cmd –zone=public –list-ports # 查看所有打开的端口

firewall-cmd –zone=public –query-port=80/tcp # 查看80端口是否打开

firewall-cmd –zone=public –add-port=80/tcp –permanent # 添加80端口 (–permanent永久生效,没有此参数重启后失效)

firewall-cmd –reload # 重载

firewall-cmd –zone=public –remove-port=80/tcp –permanent # 删除端口

参考地址:http://www.cnblogs.com/hubing/p/6058932.html

转载请注明:Imekaku-Blog » Linux 防火墙

喜欢 (0)or分享 (0)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址