LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   can't initialize iptables table `filter': Table does not exist... (https://www.linuxquestions.org/questions/linux-software-2/cant-initialize-iptables-table-%60filter-table-does-not-exist-739550/)

sodek 07-12-2009 10:53 AM

can't initialize iptables table `filter': Table does not exist...
 
When I try to use IPTABLES to secure some connections to SSH... :

# iptables -A INPUT -p tcp -s x.x.x.x -m tcp --dport 22 -m state --state NEW -m limit --limit 3/min --limit-burst 3 -j ACCEPT
iptables v1.4.2: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.


Using Debian Lenny (VPS).

Any Ideas ?

# apt-get install iptables
Reading package lists... Done
Building dependency tree
Reading state information... Done
iptables is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

repo 07-12-2009 11:02 AM

Make sure iptables is configured in the kernel
Code:

grep -i iptables /boot/config-`uname -r`
If yes, try
Code:

modprobe ip_tables

sodek 07-12-2009 11:11 AM

Nvm... talk'd to admin and he said it's not enabled...

gopi219 05-07-2012 02:54 AM

I am also facing same problem
 
Hi,

I am also getting "Iptables v1.4.2 cab't initialize iptables with `filter': iptables who? ( do you need insmod? )".

My linux kernel version is linux 2.6.32.13
When I executed, I got
# `grep -i iptables /boot/linux.config`
CONFIG_IP_NF_IPTABLES=Y
CONFIG_IP6_NF_IPTABLES=Y
#


Does your problem resolved.

arre 04-24-2019 04:20 AM

Slightly out of date, but I ran into the same issue.
Turns out you also need CONFIG_IP_NF_FILTER to be enabled, in order for /proc/net/ip_tables_names to also show the "filter" table.

(Found this by running strace on iptables)


All times are GMT -5. The time now is 03:37 AM.