iptables 信息读取出错:没有那个文件或目录

办事 iptables 信息读掏出错:没有那个文件或目次

查看防火墙状况显示

Redirecting to /bin/systemctl status iptables.service
Unit iptables.service could not be found.

9345d688d43f87949fd2fb54dd1b0ef41bd53a9e.jpg

解决步调

  1. 1

    遏制 firewalld

    # systemctl stop firewalld
    # systemctl mask firewalld

    a8014c086e061d958199844274f40ad163d9cae9.jpg
  2. 2

    安装 iptables-services

    yum install iptables-services

    738b4710b912c8fcf75f45b7f3039245d688211f.jpg 024f78f0f736afc31aa58c1fbc19ebc4b745121a.jpg
  3. 3

    再查看防火墙状况

    service iptables status


    3b292df5e0fe9925b8a4da2a3ba85edf8db1711b.jpg
  4. 4

    开启 iptables

    #service iptables start

    a2cc7cd98d1001e9dc0aa675b70e7bec54e79792.jpg
  5. 5

    把 iptables 加到开机启动项中

    # systemctl enable iptables

    78310a55b319ebc4d14bc4e38d26cffc1e17169c.jpg
  6. 6

    保留防火墙法则

    service iptables save

    7a899e510fb30f2413a85e79c795d143ad4b039d.jpg
  7. 7

    查抄状况

    service iptables start

    ac4bd11373f0820203f4234544fbfbedab641b61.jpg
  • 发表于 2019-11-18 20:42
  • 阅读 ( 1254 )
  • 分类:其他类型

0 条评论

请先 登录 后评论
admin
admin

0 篇文章

作家榜 »

  1. xiaonan123 189 文章
  2. 汤依妹儿 97 文章
  3. luogf229 46 文章
  4. jy02406749 45 文章
  5. 小凡 34 文章
  6. Daisy萌 32 文章
  7. 我的QQ3117863681 24 文章
  8. 华志健 23 文章

联系我们:uytrv@hotmail.com 问答工具