LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-01-2003, 06:36 PM   #1
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
%&*#&$$ iptables modules


Here is my beef... I've compiled a new kernel (2.4.20) for my RH 7.2 system and I've included every option there is for iptables and complied them all as modules. I've gone through and removed ipchains (rpm -e ipchains). I've even go so far as to compile the latest version of iptables. However, no matter what I do, when I try to run iptables, I always get
Quote:
iptables v1.2.5: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
If I insmod iptables, insmod says that it can't find the modules. What is really freaking me out is if I run lsmod, it looks as if there are absolutely no modules running at all. I get the column headers and that is it.

I'm starting to think I've missed something REALLY basic ( but I did make modules and make modules_install when I compiled the kernel) and apparently I haven't RT correct FM because at this point I haven't got a clue what is going wrong.

I'm really stuck now and would appreciate any advice....

 
Old 03-02-2003, 07:11 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,683

Rep: Reputation: 219Reputation: 219Reputation: 219
Maybe you compiled iptables into the kernel? Check the configuration.
 
Old 03-02-2003, 07:24 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803

Original Poster
Blog Entries: 1

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
Thanks for the thought, but I am sure iptables was supposed to compile as modules. I went throught the ususal steps:

make mrproper
make xconfig (iptables and its componenets are all selected as m)
make dep
make bzImage
make modules
make install
make modules_install

I get a couple of errors when the process tries to configure lilo.conf, but I use grub so I haven't paid any attention to them.
 
Old 03-02-2003, 10:50 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,683

Rep: Reputation: 219Reputation: 219Reputation: 219
If they're <M>, you should have the modules. Look into your /lib/modules/yourkernelversion/ directory. Browse it and see if they are (and other modules you may need).
 
Old 03-02-2003, 03:17 PM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803

Original Poster
Blog Entries: 1

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
Thank you for the help Mara. Hopefully this is a clue. I've had a look in /lib/modules/2.4.20 and there are absolutely no modules there. However, if I keep digging deeper, the iptables modules ARE in /lib/modules/2.4.20/kernel/net/ipv4/netfilter.

Is make modules_install making a mistake or do I need to change a configuration file to point to the directory that actually contains the iptables modules?
 
Old 03-02-2003, 03:26 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,683

Rep: Reputation: 219Reputation: 219Reputation: 219
No, it's OK. Try
modprobe netfilter
 
Old 03-02-2003, 04:36 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803

Original Poster
Blog Entries: 1

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
I tried modprobe netfilter and I get back
Quote:
modprobe: Can't locate module netfilter
I even tried pointing it to the directory where I know the iptables modules are and it still can't find them.
 
Old 03-02-2003, 04:48 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,683

Rep: Reputation: 219Reputation: 219Reputation: 219
Try 'depmod' before modprobe.
 
Old 03-02-2003, 05:30 PM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803

Original Poster
Blog Entries: 1

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
Well that was revealing, I only wish I know what it all meant. I ran depmod and got back
Quote:
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/ip_gre.o
So on a lark I ran depmod -v. At first the returned info looks like netfilters worked because I see a lot of

Quote:
xftw_readdir /lib/modules/2.4.20/kernel/net/ipv4/netfilter
user function /lib/modules/2.4.20/kernel/net/ipv4/netfilter
user function /lib/modules/2.4.20/kernel/net/ipv4/netfilter/arp_tables.o
user function /lib/modules/2.4.20/kernel/net/ipv4/netfilter/arptable_filter.o
However, slightly farther down I start seeing the same block of information all over again only it is slightly different:
Quote:
depmod: *** Unresolved symbols in /lib/modules/2.4.20/kernel/net/ipv4/ip_gre.o
/lib/modules/2.4.20/kernel/net/ipv4/ip_gre.o
/lib/modules/2.4.20/kernel/net/ipv4/ipip.o
So is this telling me that it does know where netfilter is, but the unresolved symbols in ip_gre.o are causing a problem?
 
Old 03-03-2003, 03:40 PM   #10
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
The latest version of iptables is 1.2.6a or 1.2.7a

Quote:
However, no matter what I do, when I try to run iptables, I always get
quote:iptables v1.2.5: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Did you remove the old rpm version of iptables before building the new one?
They install into different locations...
 
Old 03-03-2003, 09:16 PM   #11
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803

Original Poster
Blog Entries: 1

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
Well, I took out the old iptables (rpm -e iptables) and that did stop the error messages about not being able to initialize iptables. That's the good news. The bad news is that the system still has no idea about the new iptables modules. I still get the same error message from depmod and compiling a newer version of iptables (1.2.7a) doesn't seem to help.

At this point I think I am going to give up and go do a lot more reading about compiling a kernel and how to use modules.

Thank you both for all your help!!
 
  


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
zsnes && logitech dual action gamepad && dpad woes John5788 Linux - Games 5 10-29-2008 10:56 PM
Japanese canna won't work : Warning: &#12363;&#12394;&#28450;&#23383;&#22793;&am OrganicOrange84 Debian 3 06-30-2005 03:28 PM
Ph&#7909;c h&#7891;i d&#7919; li&#7879;u b&#7883; m&#7845;t???, c&#7913; pollsite General 1 06-27-2005 01:39 PM
kernel failing loading unnessary modules && issues upgrading to kde 3.2.2 promark Slackware 2 06-09-2004 05:03 PM
Samba & IPTABLES & Network Drives Oh My! logicdisaster Linux - Networking 3 06-03-2004 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration