QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1163|回复: 8

编译netfilter模块后不能正常运行iptables

[复制链接]
发表于 2005-11-17 21:41:17 | 显示全部楼层 |阅读模式
make modules install之后
[code:1]# iptables -L                                                           
FATAL: Error inserting ip_tables (/lib/modules/2.6.14-686/net/ipv4/netfilter/ip_tables.ko): Unknown symbol in module, or unknown parameter (see dmesg)
[/code:1]
[code:1]#  dmesg|grep ip_tables
ip_tables: no version for "struct_module" found: kernel tainted.
ip_tables: Unknown symbol nf_register_sockopt
ip_tables: Unknown symbol nf_unregister_sockopt
ip_tables: Unknown symbol nf_register_sockopt
ip_tables: Unknown symbol nf_unregister_sockopt
[/code:1]
发表于 2005-11-19 22:31:11 | 显示全部楼层
编译netfilter模块后不能正常运行iptables

only a module or the whole kenel and the kenel_moduels?
回复

使用道具 举报

 楼主| 发表于 2005-11-20 16:25:29 | 显示全部楼层
only a module,
试了直接cp编译好的ko文件到/lib/modules…和make module install
回复

使用道具 举报

发表于 2005-11-20 22:32:40 | 显示全部楼层
试了直接cp编译好的ko文件到/lib/modules…和make module install

  

cp编译好的ko文件到/lib/modules ----> modprobe

make module install --------> it's wrong..........................
回复

使用道具 举报

 楼主| 发表于 2005-11-21 23:43:49 | 显示全部楼层
[quote:c77cebc79e="linky_fan"]
make module install --------> it's wrong..........................[/quote]
WHY?
回复

使用道具 举报

发表于 2005-11-22 20:12:22 | 显示全部楼层
only a module,
试了直接cp编译好的ko文件到/lib/modules…和make module install

If you make only a module , the System.map in your /path/to/kernel/src/ will only contain one module map which was built before, in other words, the modules in the /lib/modules/2.x.x which were there before will be fully lost.   cp it to the /lib/modules/2.x.x/ and modprobe....... is a good way.

If  you make the whole kernel(include the bzImage, the modules), then make modules_install

Here is a usefull link , good luck ^-^
http://www.chinaitlab.com/www/news/article_show.asp?id=37488
回复

使用道具 举报

 楼主| 发表于 2005-11-22 21:46:25 | 显示全部楼层
我不需要加ipp2p其他模块,只要netfilter模块,所以make xconfig选上netfilter模块然后编译
modprobe时提示Invalid module format
iptables没有重编,我想这个应该没关系吧
回复

使用道具 举报

发表于 2005-11-22 22:14:44 | 显示全部楼层
Invalid module format

.ko or .o?
回复

使用道具 举报

 楼主| 发表于 2005-11-23 20:58:03 | 显示全部楼层
.ko
[code:1]# modprobe ip_tables
FATAL: Error inserting ip_tables (/lib/modules/2.6.14-686/kernel/net/ipv4/netfilter/ip_tables.ko): Invalid module format[/code:1]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-3 07:05 , Processed in 0.074652 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表