免费注册 查看新帖 |

Chinaunix

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

编译kernel后iptables不能启动 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-05 17:12 |只看该作者 |倒序浏览
2.6.11的内核,编译kernel添加了ipt_time.ko和iptconmlimit.ko,
现在iptables无法启动
[root@sgfw sysconfig]# service  iptables status
Firewall is stopped.
执行restart和start均无反应
[root@sgfw sysconfig]# service  iptables restart
[root@sgfw sysconfig]# service  iptables start
[root@sgfw sysconfig]# iptables -v
iptables v1.3.3: no command specified
Try `iptables -h' or 'iptables --help' for more information.
添加策略可以生效
[root@sgfw sysconfig]# iptables -P FORWARD DROP
[root@sgfw sysconfig]# iptables -nvL
Chain INPUT (policy ACCEPT 67 packets, 5496 bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 42 packets, 4608 bytes)
pkts bytes target     prot opt in     out     source               destination

[root@sgfw sysconfig]# lsmod
Module                  Size  Used by
iptable_filter          2881  0
ip_tables              19521  1 iptable_filter
md5                     4033  1
ipv6                  268097  10
dm_mod                 58101  0
video                  15941  0
button                  6609  0
battery                 9413  0
ac                      4805  0
shpchp                 94405  0
i2c_piix4               8657  0
i2c_core               21569  1 i2c_piix4
pcnet32                36165  0
mii                     5441  1 pcnet32
floppy                 65269  0
ext3                  132553  1
jbd                    86233  1 ext3
BusLogic               79445  2
sd_mod                 20545  3
scsi_mod              148105  2 BusLogic,sd_mod

[ 本帖最后由 zsgd 于 2006-4-5 17:14 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-04-05 21:37 |只看该作者
重新源码安装过iptables?

试试 ln -s /lib/iptables  /usr/local/lib/iptables

[ 本帖最后由 skyy23 于 2006-4-5 21:38 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP