iptables的问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
dogfox
论坛版主
帖子: 5311
注册时间: 2006-09-02 14:18
来自: 汉桑城
联系:

iptables的问题

#1

帖子 dogfox » 2007-01-17 23:22

俺的是dapper
升级内核到2.6.19.2后发现iptables竟然无法启动

代码: 全选

:~$ iptables
iptables v1.3.3: no command specified
Try `iptables -h' or 'iptables --help' for more information.
请问该如何解决啊?
全世界linux爱好者联合起来 !
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#2

帖子 yohu » 2007-01-17 23:24

还没解决?为什么不试试shorewall?
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
头像
dogfox
论坛版主
帖子: 5311
注册时间: 2006-09-02 14:18
来自: 汉桑城
联系:

#3

帖子 dogfox » 2007-01-17 23:25

代码: 全选

~$ iptables -L
FATAL: Module ip_tables not found.
iptables v1.3.3: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
全世界linux爱好者联合起来 !
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#4

帖子 yohu » 2007-01-17 23:36

找不到模块?试试用modconf看看能不能添加。

代码: 全选

sudo apt-get install modconf

代码: 全选

sudo modconf
查找:
kernel/net/ipv4/netfilter
相关的模块添加进去看看象iptable_*之类的.
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
头像
dogfox
论坛版主
帖子: 5311
注册时间: 2006-09-02 14:18
来自: 汉桑城
联系:

#5

帖子 dogfox » 2007-01-17 23:54

真倒霉
没有见
那如果重新编译内核需要在那添加该模块啊?
附件
Screenshot.png
全世界linux爱好者联合起来 !
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#6

帖子 yohu » 2007-01-18 0:01

晕,你把它给去掉了,位置还是在net那边,如果你是copy系统默认配置文件的话默认应该是没有去掉的,你自己把它给去掉了。
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
头像
dogfox
论坛版主
帖子: 5311
注册时间: 2006-09-02 14:18
来自: 汉桑城
联系:

#7

帖子 dogfox » 2007-01-18 0:09

我狂晕ing..........
全世界linux爱好者联合起来 !
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#8

帖子 yohu » 2007-01-18 0:38

找到了,在这里。应该是没找错吧。
networking--》networking option--》Network packet filtering--》IP: Netfilter Configuration--》IP tables support
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
回复