我在我的Debian系统中键入以下内容:
iptables --list
并得到如下:
libkmod: ERROR ../libkmod/libkmod-index.c:816 index_mm_open: magic check fail: b007fa57 instead of b007f457 iptables v1.4.13: can't initialize iptables table `filter': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded.
有关如何解决它的任何提示?
您正在以普通用户身份运行它,以root身份运行该命令。
@poige是正确的,你的加载错误的内核模块版本。 我加了一个单独的答案,因为没有足够的评论空间。
在libkmod / libkmod-index.h中
/* Integers are stored as 32 bit unsigned in "network" order, ie MSB first. All files start with a magic number. Magic spells "BOOTFAST". Second one used on newer versioned binary files. */ /* #define INDEX_MAGIC_OLD 0xB007FA57 */ #define INDEX_MAGIC 0xB007F457
你尝试重新启动? 看起来像模块版本比运行内核期望更新。