I typed the following on my Debian system:
iptables --list
And got the following:
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.
Any tips on how to fix it?
You are running it as a regular user, run the command as root.
@poige is right, your loading the wrong kernel module version. I added as a seperate answer since there wasnt really enough room in comments.
In libkmod/libkmod-index.h
Have you tried rebooting? Seems like module version is newer than running kernel expects.