Linux Centos7.0 | 防火墙

Linux Centos7.0 | 防火墙


CentOS 7.0默认使用的是firewall作为防火墙

  • 查看防火墙状态 : firewall-cmd --state
  • 停止firewall: systemctl stop firewalld.service
  • 禁止firewall开机启动: systemctl disable firewalld.service
  • 防火墙开放指定端口: firewall-cmd --zone=public --add-port=端口号/tcp --permanent
  • 防火墙关闭指定端口: firewall-cmd --zone=public --remove-port=端口号/tcp --permanent
  • 重启防火墙: firewall-cmd --reloadl

本文作者:—清风碎心—

本文链接:https://www.cnblogs.com/zhy-god/p/15957526.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   —清风碎心—  阅读(18)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
💬
评论
📌
收藏
💗
关注
👍
推荐
🚀
回顶
收起
  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.