LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-12-2009, 11:53 AM   #1
sodek
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
Unhappy 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.
 
Old 07-12-2009, 12:02 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Make sure iptables is configured in the kernel
Code:
grep -i iptables /boot/config-`uname -r`
If yes, try
Code:
modprobe ip_tables
 
Old 07-12-2009, 12:11 PM   #3
sodek
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Nvm... talk'd to admin and he said it's not enabled...

Last edited by sodek; 07-12-2009 at 12:18 PM.
 
Old 05-07-2012, 03:54 AM   #4
gopi219
LQ Newbie
 
Registered: Oct 2006
Posts: 9

Rep: Reputation: 0
Lightbulb 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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables(marking) + ip rule add fwmark 1 table 200 + ip route add via GW table 200 ?? amitsharma_26 Linux - Networking 9 05-26-2010 07:42 AM
iptables: can't initialize iptables table `NAT' linuxgentoo Linux - Kernel 3 01-17-2010 11:15 AM
iptables-restore: unable to initialize table 'nat' R03L Fedora 1 10-26-2008 03:19 PM
iptables v1.3.8: can't initialize iptables table `filter' sebastien.lorandel Linux - Networking 11 09-22-2007 07:34 AM
filter /etc/messages for certain IP table entries don_wombat Linux - Software 0 12-14-2004 04:45 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration