免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 11568 | 回复: 20
打印 上一主题 下一主题

[系统安全] Iptables 规则错误不明,搜索很多资料无法解决,求助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-07-26 18:59 |只看该作者 |倒序浏览
我下载了一份Iptables规则,重启Iptables后就出现如下错误:

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

Shutting down firewall:    [  OK  ]
Starting Firewall:     [  OK  ]

FATAL: Module ip_tables not found.
FATAL: Module iptable_filter not found.
FATAL: Module ip_conntrack not found.
FATAL: Module ip_conntrack_ftp not found.
FATAL: Module ip_tables not found.
iptables v1.4.7: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

/etc/init.d/iptables: line 93: /proc/sys/net/ipv4/tcp_timestamps: Permission denied
/etc/init.d/iptables: line 105: /proc/sys/net/ipv4/ip_dynaddr: Permission denied
/etc/init.d/iptables: line 112: /proc/sys/net/ipv4/ip_local_port_range: Permission denied
/etc/init.d/iptables: line 115: /proc/sys/net/ipv4/tcp_fin_timeout: Permission denied
/etc/init.d/iptables: line 116: /proc/sys/net/ipv4/tcp_keepalive_time: Permission denied
/etc/init.d/iptables: line 117: /proc/sys/net/ipv4/tcp_window_scaling: Permission denied
/etc/init.d/iptables: line 118: /proc/sys/net/ipv4/tcp_sack: Permission denied
/etc/init.d/iptables: line 119: /proc/sys/net/ipv4/tcp_max_syn_backlog: Permission denied


如果删除下载的,用默认的没问题:

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

iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]

我要用的规则:http://files1.directadmin.com/services/all/iptables

google了很久,也许是我的搜索关键词不对还是啥,没找到解决方法。网上说是因为Iptables是静态编译的所以这样,不明所以,请教大家,谢谢……
独立服务器,CentOS6.4 64bit

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
2 [报告]
发表于 2013-07-26 19:18 |只看该作者
FATAL: Module ip_tables not found.
FATAL: Module iptable_filter not found.
FATAL: Module ip_conntrack not found.
FATAL: Module ip_conntrack_ftp not found.
FATAL: Module ip_tables not found.

这个挺奇怪的,按道理iptables的module应该是内核的模块,不应该加载不了的

论坛徽章:
0
3 [报告]
发表于 2013-07-26 19:32 |只看该作者
回复 2# chenyx


    系统是干净的,刚重装过的,默认功能正常,但是用那份规则后重启就出错了,网上查了很多资料都没有详细的解决方法,这个是独立服务器,不是VPS,不知道怎么解决,蒙了

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
4 [报告]
发表于 2013-07-26 19:35 |只看该作者
你将iptables服务先停了.然后运行那个脚本里面的modprobe语句,看看报错是不是刚才的那个报错信息.

论坛徽章:
0
5 [报告]
发表于 2013-07-26 21:28 |只看该作者
回复 4# chenyx


    报错是一样的,还是FATAL: Module xxx not found.

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
6 [报告]
发表于 2013-07-26 21:32 |只看该作者
在/lib/modules/下find看下iptable_filter.ko

论坛徽章:
0
7 [报告]
发表于 2013-07-26 21:33 |只看该作者
本帖最后由 chinaweed 于 2013-07-26 21:37 编辑

加载不了那些模块,但是删掉那些规则后,iptables的功能正常,可以封IP

论坛徽章:
0
8 [报告]
发表于 2013-07-26 21:52 |只看该作者
回复 6# chenyx


    find: `iptable_filter.ko': No such file or directory  在/lib/modules/目录下,搜索不到

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
9 [报告]
发表于 2013-07-26 21:56 |只看该作者
不应该啊,你的iptables不是系统自带的吗

论坛徽章:
0
10 [报告]
发表于 2013-07-26 22:10 |只看该作者
回复 9# chenyx


    是系统自带的,系统刚安装就有了,我运行了这些命令:

/lib/modules/
find iptable_filter.ko

不知道有没错。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP