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 ]

posted @ 2016-02-22 11:02  bethal  阅读(718)  评论(0编辑  收藏  举报