LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-13-2011, 12:28 PM   #1
User-N@me
Member
 
Registered: May 2011
Distribution: Cent0S, Fedora, Ubuntu, Debian
Posts: 32

Rep: Reputation: 0
Arrow How to install IPtables from source ?


Hello,

I think I'll need to install a newer version of IPtables for my CentOS 5.6 since I updated the kernel to 2.6.32.41 and iptables-1.4.6 seems to be the older version that matches this kernel but CentOS 5.6 is shipped with 1.3.5 (this distro and it's 10 years old packages is starting to bore me...).

So I need to update iptables but I don't find good howtos on this subject...

So my question would be : how to build iptables from source and does it change anything to the procedure that I already have 1.3.5 installed ?
 
Old 06-13-2011, 01:22 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi there,

When you say you want to install iptables from source, do you have the source RPM?

Also you can update iptables using yum update iptables. I would suggest you to backup your iptables configuration file before doing this. You can find out iptables configuration file using: rpm -qc iptables
 
Old 06-13-2011, 01:22 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
boring = stable. Why do you want the newer versions? What can't you do with the "old" release? Note that all relevant security and bugfixes will have been back ported to it...
 
Old 06-13-2011, 01:53 PM   #4
User-N@me
Member
 
Registered: May 2011
Distribution: Cent0S, Fedora, Ubuntu, Debian
Posts: 32

Original Poster
Rep: Reputation: 0
@T3RM1NVT0R

Hello,
I can't yum update it, since 1.3.5 is the "newer" in the CentOS repos. I don't know much about RPMs usually I compile things with "make" and that kind of stuff, I was planing on using that file http://www.netfilter.org/projects/ip...4.11.1.tar.bz2 as a source.

@acid_kewpie

You're indeed right on the boring = stable. Now I'm not sure I need the newer version, although I read that there are incompatibilities between old iptables and more recent kernels. Right now I have a problem that has to do with my kernel config, at least that's what I think, after fixing it I'll see if iptables runs fine, I hope it will but I'm getting ready for the worst.
 
  


Reply



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
source specification in IPTABLES Alexvader General 2 11-23-2010 04:13 PM
More than one source IP in IPTABLES gubak Linux - Security 1 11-04-2009 03:31 AM
iptables dnat working, but server logs local source IP instead of original source IP Nothsa Linux - Server 3 02-14-2008 05:34 PM
Mangle ip source with iptables spank Linux - Networking 1 02-02-2008 12:34 AM
blocking source ip's using iptables ekkins Linux - Networking 5 06-20-2005 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:44 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
Open Source Consulting | Domain Registration