galaxy001 / scholarzhang

Automatically exported from code.google.com/p/scholarzhang
1 stars 1 forks source link

ipset error #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When this step:
# ipset -R < YOUTUBE
FATAL: Module ip_set not found!
ipset v4.2: couldn't vertify kernel module version!

The release used is slackware 13.Please help!
Rewards.

Original issue reported on code.google.com by fnc...@gmail.com on 15 Mar 2010 at 5:23

GoogleCodeExporter commented 9 years ago
[@T41 west-chamber] $ sudo ipset -R < YOUTUBE
FATAL: Module ip_set not found.
ipset v4.2: Couldn't verify kernel module version!
[@T41 west-chamber] $ uname -a
Linux T41 2.6.33-gentoo #4 SMP Thu Mar 11 15:29:23 CST 2010 i686 Intel(R) 
Pentium(R) 
M processor 1700MHz GenuineIntel GNU/Linux

在2.6.31的内核下 ipset 
就没有问题,这什么重启系统到2.6.33后ipset就没有了呢?内核
配置文件是一
样的。

Original comment by daniel.liulihua on 16 Mar 2010 at 2:21

GoogleCodeExporter commented 9 years ago
@daniel.liulihua 不同内核版本的模块需要分别制作。

Original comment by yingyingcui.scholarzhang@gmail.com on 16 Mar 2010 at 5:46

GoogleCodeExporter commented 9 years ago
如果要在2.6.33下使用,试试用2.6.33的内核重新编译ip_set

Original comment by revl...@gmail.com on 17 Mar 2010 at 2:52

GoogleCodeExporter commented 9 years ago
@yingyingcui.scholarzhang, 请教一下如何编译2.6.33下的ip_set模块?
sudo make -C /lib/modules/$(uname -r)/build M=/usr/src/linux/net/ipv4/netfilte
做完后还是没有发现ip_set这个模块,但在2.6.31下就没有问题.

Original comment by daniel.liulihua on 17 Mar 2010 at 10:05

GoogleCodeExporter commented 9 years ago
重新编译完 ipset 后解决问题了

Original comment by daniel.liulihua on 18 Mar 2010 at 3:33

GoogleCodeExporter commented 9 years ago

Original comment by yingyingcui.scholarzhang@gmail.com on 4 Apr 2010 at 8:01

GoogleCodeExporter commented 9 years ago
大家好!我也顺利安装好了,不过执行“ipset -R < 
YOUTUBE”时遇到类似的问题,错误信息是这样:

# ipset -R < YOUTUBE
FATAL: Error inserting ip_set (/lib/modules/2.6.24.4/extra/ip_set.ko): Invalid 
module
format
ipset v4.2: Couldn't verify kernel module version!

系统内核用的是当初自己编译安装的2.6.24.4,看了前面的回复
猜测我的情况是要重新编译/usr
/sbin/ipset 这个执行程序,于是找到这里:
http://ipset.netfilter.org/install.html

按照提示准备重新编译安装ipset,不过我又遇到另一个问题,
我当初编译安装2.6.24.4内核的时
候,是使用类似如下命令做的:
make O=/home/name/build/kernel menuconfig

现在安装ipset时,这一步始终过不了:
make KERNEL_DIR=<<where-you-built-your-kernel>>

即 KERNEL_DIR 
指定内核源码目录或者指定当初编译时的输出目录都会报错��
�…,错误信息分别如下:
(指定内核源码自身的目录时)
Error: The kernel source in '/usr/src/linux-2.6.24.4/' must be configured
make: *** [modules] 错误 1

(制定当初编译输出的目录时)
Error: The directory '/home/yanqian/build/kernel/' doesn't look like a Linux 
2.6.x
kernel source tree.
make: *** [modules] 错误 1

请问大家这样的情况应该如何处理呢?
我自己了解不多,之前都是老老实实按照readme或者install来做�
��现在这样的情况不晓得如何处
理了。

Original comment by Chian....@gmail.com on 9 Apr 2010 at 5:23

GoogleCodeExporter commented 9 years ago
回楼上:
试试下面的命令
ln -s /lib/libxtables.so.6 /lib/libxtables.so.5

Original comment by chenwx.ustc on 14 Jun 2011 at 6:25