美文网首页
Linux系统防火墙

Linux系统防火墙

作者: 可能性之兽 | 来源:发表于2022-11-29 23:20 被阅读0次
systemctl status firewalld  ## Linux服务器防火墙状态
systemctl start firewalld  #开启Linux服务器防火墙状态
systemctl stop firewalld    ##停止Linux服务器防火墙状态
firewall-cmd --list-ports  ### 查询Linux服务器防火墙所有开放端口
firewall-cmd --reload  ### 重启Linux服务器防火墙


firewall-cmd --state ##查看防火墙状态,是否是running
firewall-cmd --reload ##重新载入配置,比如添加规则之后,需要执行此命令
firewall-cmd --get-zones ##列出支持的zone
firewall-cmd --get-services ##列出支持的服务,在列表中的服务是放行的
firewall-cmd --query-service ftp ##查看ftp服务是否支持,返回yes或者no
firewall-cmd --add-service=ftp ##临时开放ftp服务
firewall-cmd --add-service=ftp --permanent ##永久开放ftp服务
firewall-cmd --remove-service=ftp --permanent ##永久移除ftp服务
firewall-cmd --add-port=80/tcp --permanent ##永久添加80端口
firewall-cmd --remove-port=80/tcp --permanent ##永久添加80端口
firewall-cmd --zone=public --list-ports ##查看已开放的端口

————————————————

链接:https://blog.csdn.net/weixin_43871182/article/details/104788143

相关文章

  • iptables 详解

    和window系统的防火墙一样,Linux也是有防火墙的。 如果你搜索【Linux防火墙】: 就会发现,大家都在教...

  • 使用stenOS 7 搭建lnmp环境

    安装完Linux系统时,切记一定要记住关闭自带的防火墙系统。 1关闭自带的防火墙: systemctl stop ...

  • linux - 防火墙操作

    对防火墙的操作是linux系统很常用的命令。 查看防火墙状态 systemctl status firewalld...

  • 【iptables&icmp】iptables默认策略中关于ic

    一、 默认iptables策略 Linux内核集成的IP信息包过滤系统,linux的包过滤功能,即linux防火墙...

  • centos7关闭防火墙

    [centos7关闭防火墙] 有些人安装的linux的系统默认防火墙不是iptables,而是firewall,那...

  • Linux下的防火墙

    使用过Linux系统的人对iptables一定不陌生,它是Linux从2.4.x版本内核开始,系统自带的防火墙。如...

  • 防火墙

    Linux中的防火墙 linux内核包含一个强大的网络过滤子系统:netfilter Netfilter允许lin...

  • CentOS防火墙iptables的配置方法详解

    CentOS系统也是基于linux中的它的防火墙其实就是iptables了,下面我来介绍在CentOS防火墙ipt...

  • Mac VMware Fusion虚拟机 CentOS 6.10

    macOS系统下使用的虚拟机 一、linux 为什么要关闭 SELinux 二、关闭Linux防火墙 和SELin...

  • ContOS7防火墙

    有些人安装的linux的系统默认防火墙不是iptables,而是firewall,那就得使用以下方式关闭防火墙了。...

网友评论

      本文标题:Linux系统防火墙

      本文链接:https://www.haomeiwen.com/subject/ocqjfdtx.html