首页 > 其他 > 详细

iptables

时间:2016-02-22 12:13:45      阅读:173      评论:0      收藏:0      [点我收藏+]

一、具体的异常现象

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 ]

iptables

原文:http://www.cnblogs.com/bethal/p/5206496.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!