LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 09-25-2006, 04:56 PM   #1
BizHat.com
Member
 
Registered: Jul 2004
Location: India
Distribution: RH, RHEL, CentOS
Posts: 46

Rep: Reputation: 15
iptables error


Hi,

After upgrading kernel, iptables stoped working

Quote:
[root@linux ~]# iptables -L
iptables v1.2.11: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
[root@linux ~]#
Can anyone tell me how to fix this error ?

Quote:
[root@linux ~]# uname -a
Linux linux.host.com 2.6.17.11 #1 Sun Aug 27 08:54:35 IST 2006 i686 athlon i386 GNU/Linux
[root@linux ~]#
Regards,

Yujin
 
Old 09-25-2006, 04:57 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,182

Rep: Reputation: 284Reputation: 284Reputation: 284
Did you compile in or build as module support for iptables in the kernel?
 
Old 09-25-2006, 05:04 PM   #3
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
I would I assume you had maybe 2.6.14 or eariler. If you check the changelogs for 2.6.15 kernels will see the naming structure for netfilter changed so existing saved config files will not enable the netfilter section under networking. You just need to go into the netfilter section manually and enable as it was before in earlier config files if you have any.

Brian1
 
Old 09-27-2006, 07:35 PM   #4
BizHat.com
Member
 
Registered: Jul 2004
Location: India
Distribution: RH, RHEL, CentOS
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks all for the reply.

OS is Fedora Core release 3 and old kernel was vmlinuz-2.6.12-1.1381_FC3

The new kernel was compiled from source. The configuration file used to compile the kernel is

http://www.netfreehost.com/tmp/.config

I have done kernel compiling on another server today, getting same error on that too.

Quote:
# cat /etc/*release
CentOS release 4.4 (Final)
#
Quote:
# uname -a
Linux server1.wehost4u.net 2.6.18 #1 SMP Wed Sep 27 14:57:52 PDT 2006 i686 i686 i386 GNU/Linux
#
Quote:
# iptables -L
iptables v1.2.11: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
#
I know i can do this with out any problem with yum, but want to study how to do it from source.

Can any one tell me what i should do next ?
 
Old 09-28-2006, 04:05 PM   #5
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
If you are using the .config file from the link you posted it does not have any netfilter items set as modules or built into the kernel. Open the config tool and set all items in the netfilter to modules unless they default to be built into the kernel. Then do the make command again. It should not take long if you do not reset the kernel tree build.

Brian1
 
  


Reply

Tags
iptables


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 05:25 AM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
iptables error moger Slackware 2 06-12-2004 10:51 PM
iptables error... HappyDude Linux - Security 4 07-14-2003 07:37 PM
iptables error dat64597 Linux - Security 3 02-03-2003 01:52 PM


All times are GMT -5. The time now is 11:35 PM.

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