Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 01-11-2004, 03:37 AM   #1
Klaus Pforte
LQ Newbie
Registered: Jul 2003
Posts: 10

Rep: Reputation: 0
iptables do not initialize on Kernel 2.6

Sorry, again the same question like in (threadid=133171)

And I must repeat the first part:

"Ok I could be a freaking idiot but I figured I might as well check. "

Maybe it is too simple to give a solution but...

After compiling Kernel 2.6.0 on a Redhat 9 system and a reboot all works fine.
But when I want to enable iptables I get:

FATAL: Module ip_tables not found.
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

The same I have with iptables 1.2.9.
On I don't find any problems regarding Kernel 2.6.

What IS the problem?
How can I solve the problem?
Maybe during compiling?

Thanks for help,
Old 01-11-2004, 09:20 AM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
If you have compiled iptables as a module you will need to run:
modprobe ip_tables

To insert the module into your kernel. If you did not compile it at all you will need to go back and recompile your kernel.
Old 01-11-2004, 11:25 AM   #3
Klaus Pforte
LQ Newbie
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0

O.K., David, thank you!

I made modprobe ip_tables and many other modprobe with the other modules for my big iptables script (monmotha).

But why I must activate the modules all manually?
Before with Kernel 2.4 I did not must do that.

The modules are now *.ko instead of *.o, is this the reason?
And what software don't know this change?

I wrote a script to activate the modules and all works nice.

Thanks again,
Old 01-11-2004, 02:40 PM   #4
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You probably had them compiled into the kernel with 2.4 and not as seperate modules.
Old 01-11-2004, 11:53 PM   #5
LQ Newbie
Registered: Jan 2004
Distribution: ArchLinux 0.6
Posts: 3

Rep: Reputation: 0
I have had the same problem's myself before with the modules having to be modprobed to get them to work even though when I have compiled the 2.4 series of kernel's and added the iptables stuff as modules I have had no problems before. I still dont really know why but I found it mainly happened to me when I used the same source and compiled it again after already having compiled (say if I wanted to add something to a new kernel I just compiled). I would not get the same problems if I freshly installed the source though and then compile. So I am still not sure why I had the same problem but I dont think you should have to build them into the kernel for them to load automatically as I havent had to with the current distro I am using. I am curious maybe someone else knows why this happens?.
Old 03-24-2004, 11:35 AM   #6
LQ Newbie
Registered: Mar 2004
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0
Where/How do I make iptables a module?

I'm using the 2.6.4 kernel and I can't find the option for iptables, any where in the menu config. I've seen the other post [edit][edit] that tells me what I should have in my .config file, so I know what to do to fix it. (I think....) However I'm not too thrilled about using
#cd /usr/src/linux
#make config
Which I assume I would need to do because editing the .config file wouldn't change anything. However I will if I need to. I was woundering where I would find the option to compile iptables as a module. Or if I can somehow use the ip_tables.c or ip_tables.h instead of recompiling my kernel.
#locate ip_tables
I think that's where I found the files, however I get a "permission denied" error if I try to run any of the files.
I am willing to any man pages or websites that would tell me where/how to do this.
I may still be in the ranks and lazyish, but I [edit]am willing to[/edit] try and fix stuff myself.
[edit]I just found an email list that seems to confirm my fears. Looks like it's no longer an option in the menuconfig with 2.6* kernels.[/edit]

Last edited by DAudioLink; 03-24-2004 at 04:05 PM.


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
kernel cannot initialize OHCI chip nukkel Linux - Hardware 2 06-10-2005 02:24 AM
iptables not working... can't initialize 'filter' PennyroyalFrog Linux - Newbie 2 11-24-2004 11:03 PM
Kernel can't initialize the USB Hard Disk !! apache Linux - Hardware 0 10-04-2004 06:55 AM
Failed to initialize Nvidia kernel Baldrick Linux - Software 1 05-07-2004 04:37 PM
Failed to initialize the NVIDIA kernel module THX1138 Linux - Newbie 14 11-11-2003 02:34 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:44 PM.

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