LinuxQuestions.org
Review your favorite Linux distribution.
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-02-2008, 01:57 AM   #1
tanch
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
problem with iptables afer compiling 2.6.24.2 from www.kernel.org on centos 5.1


Hello there, this is my first post.

I have been using RedHat 9.0 since it first came out.
When fedora core 1.0 first came out, I had problem when recompiling iptables. Iptables didnt work after the recompile.
For this reason I never move beyond redhat 9.0.

I thought I give it a try to move to CENTOS 5.1.
After recompiling the 2.6.24.2 kernel on CENTOS 5.1 and iptables 1.4.0, iptables failed to work.

On close examination of /usr/src/linux-2.6.24.2/.config, many CONFIG_IP_NF* parameters were missing. I couldn't figure a way to insert the CONFIG_IP_NF* parameters via make menuconfig.

I edited a copy of .config in the /root directory and then copied it to /usr/src/linux-2.6.24.2 directory. Somehow after the "make menuconfig" it is overwritten.

It somehow was easier done on redhat 9.00 with 2.4.36 kernel.

Anybody have any idea how I can fix this probem.

Regards,
Tan Chin Huat
 
Old 03-02-2008, 03:37 AM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Two guesses:

1. Did you recompile iptables against the new kernel?

2. Did you check the standard (1.3.5....) src rpm to see if it required any special tricks?


3. There may be a reason why the newer versions (above 1.3.5) are not yet supported. Backing this up would be that even F8 is only on 1.3.8.
 
Old 03-02-2008, 07:47 PM   #3
tanch
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Good morning Lazlow, thank you for the quick response.

1) yes, i recompiled iptables 1.3.7 and 1.4.0 from source in the new kernel.

2) sorry, i did not use rpm. i have been compiling from source for a long time.
rpm always give me dependency problems.

3)

I did some checking and found that after recompiling the kernel, the /usr/src/linux-2.6.24.2/.config files are missing
a lot of CONFIG_IP_NF* modules.

I am trying centos because of "xen". "xen" on centos doesn't look stable.
i thought i try "kvm". but "kvm" needs 2.6.20 kernel and above. this is why i tried to upgrade centos 2.6.18 kernel to
2.6.24.2 or even 2.6.24.3.
 
Old 03-02-2008, 10:40 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
2. src.rpm packages are source packages(src)not binaries. The spec file contained in the src.rpm can give you a good hint about how to go about it.

If you use yum it will take care of the dependency issues for you (thats its purpose).
 
Old 03-03-2008, 01:22 AM   #5
tanch
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Original Poster
Rep: Reputation: 0
okay. will give it a try.

thanks again.
 
  


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
"www::mechanize"-->www.cpan.org using this module login to secure website vvnkishore Linux - General 0 10-04-2007 02:14 AM
Some questions about the 'compiling a kernel' section at slackbook.org athanatos Slackware 1 07-15-2006 10:12 AM
compiling iptables into custom kernel straxus Linux - Newbie 1 03-26-2005 11:32 PM
few questions afer kernel install pcorajr Slackware 1 05-05-2004 07:00 PM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 07:08 AM


All times are GMT -5. The time now is 08:56 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