帮助中心
  • 云主机
  • 数据盘
  • 弹性IP
  • 快照
  • 云防火墙


1、背景:

CentOS7默认的防火墙不是iptables,而是firewalle。

2、安装准备:

a) iptables-devel-1.4.21-33.el7.x86_64

iptables-services-1.4.21-33.el7.x86_64

iptables-utils-1.4.21-33.el7.x86_64

b) centos7.6_x64

3、操作准备:

image.png

a) 查看centos release版本,执行命令 cat /etc/redhat-release

     b) 查看centos系统版本,执行命令uname -a

     c) root操作权限

      image.png


4、安装步骤:

a) 禁用/停止自带的firewalld服务

image.png


     b) 安装iptables服务

image.png


    c) 开机iptables自启

image.png


    d) 启动iptables服务

     image.png


    e) 查看iptables服务状态

    image.png


    f) 已完成安装,并启动成功。


下一篇

技术交流企业群

点击发起工单