zoukankan      html  css  js  c++  java
  • iptables

    一、具体的异常现象

    1、启动或者关闭防火墙没任何的提示

    [root@ethnicity ~]# /etc/init.d/iptables start

    [root@ethnicity ~]# /etc/init.d/iptables stop

    2、查看防火墙的状态直接提示模块未加载

    [root@ethnicity ~]# /etc/init.d/iptables status

    iptables: Firewall modules are not loaded.


    二、修复的方法

    默认的情况下安装防火墙Iptables的Linux服务默认需要加载两个模块

    [root@ethnicity ~]# lsmod |grep iptable

    iptable_filter 2173 1

    ip_tables 9567 1 iptable_filter

    很简单加载这两个模块就行了

    [root@ethnicity ~]# modprobe ip_tables

    [root@ethnicity ~]# modprobe iptable_filter

    [root@ethnicity ~]# lsmod |grep iptable

    iptable_filter 2173 0

    ip_tables 9567 1 iptable_filter

    这样就好了

    [root@ethnicity ~]# /etc/init.d/iptables restart

    iptables: Setting chains to policy ACCEPT: filter [ OK ]

    iptables: Flushing firewall rules: [ OK ]

    iptables: Unloading modules: [ OK ]

    iptables: Applying firewall rules: [ OK ]

  • 相关阅读:
    统计学基础
    ip地址分类
    OSI七层协议与TCP/IP模型、三次握手与四次挥手
    计算机编码
    [HNOI2008]Cards
    P4309 [TJOI2013]最长上升子序列
    P3794 签到题IV
    P2605 [ZJOI2010]基站选址
    UVA10791
    P3825 [NOI2017]游戏
  • 原文地址:https://www.cnblogs.com/bethal/p/5206496.html
Copyright © 2011-2022 走看看