PDA

View Full Version : iptables: Table does not exist (do you need to insmod?)


cccc
18th March 2006, 15:59
hi

I've installed shorewall firewall on debian sarge stable and I get the following:
# shorewall show capabilities
Shorewall-2.2.3 Chain capabilities at ext.undostres.ch - Sam Mär 18 15:46:57 CET 2006

Counters reset Sat Mar 18 14:55:30 CET 2006

iptables: Table does not exist (do you need to insmod?)

# iptables -V
iptables v1.2.11

# uname -a
Linux mysystem 2.6.8-2-686 #1 Tue Aug 16 13:22:48 UTC 2005 i686 GNU/Linux


depmod -a seems not to help.

what's missing and howto solve this problem ?

falko
18th March 2006, 22:53
Run modprobe ip_tablesand add ip_tables at the end of /etc/modules.

seblo
16th August 2007, 12:27
I also do have the same problem:

# iptables -L
iptables v1.3.8: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

but when trying to do "modprobe ip_tables"

ha1:/home/slorandel # modprobe ip_tables
FATAL: Module ip_tables not found

I tried to modify the kernel configuration through "make menuconfig" but I always get the error, does somebody has other idea?

thanks, Sebastien.

falko
17th August 2007, 16:45
What's the output of
grep -i iptables /boot/config-`uname -r`?

seblo
21st August 2007, 10:46
What's the output of
Code:

grep -i iptables /boot/config-`uname -r`

?

here it is:

# grep -i iptables /boot/config-`uname -r`
CONFIG_IP_NF_IPTABLES=y
CONFIG_IP6_NF_IPTABLES=y

falko
22nd August 2007, 18:21
iptables is built into the kernel, so that should not be the problem.

I think you should also enable all the other iptables options in make menuconfig and compile a new kernel.

seblo
23rd August 2007, 10:13
Actually, it seems that my problem came from iptables installation and not from the kernel but I am not really sure, I reinstalled iptables with the following commands:

make KERNEL_DIR=/usr/src/linux
make install KERNEL_DIR=/usr/src/linux

then I recompiled my kernek with:

make dep
make bzIamge
make
make install
make modules

now it is working, thank you for your help