LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-08-2010, 03:58 AM   #1
emjdev
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 0
How to configure iptables in Kernel?


I have configured iptables in my system and is working.
But I cant find iptables kernel folders such as iptables/extensions/Makefile to make a utility
Where to locate them?
or how to download and install?

Thanks

Last edited by emjdev; 10-08-2010 at 04:05 AM. Reason: Its not ipchains but iptables
 
Old 10-08-2010, 05:03 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

It would really help if:
a) you told us what distro you're using
b) what exactly you're tying to achieve.


Cheers,
Tink
 
Old 10-10-2010, 11:27 PM   #3
emjdev
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks boss

I am using redhat 2.4.18-14 and have iptables v1.2.6a in it.

Now that I want to test and install a small program utility to be hooked to iptables.

I am instructed to load a couple of *.c programs to my iptables/extensions directory,
run make, make install there and copy the *.so to lib/iptables directory.

However, I can't find any iptables/extensions directory so I downloaded the iptables-1.4.9.1.tar.bz2 unzipped it, run ./configure, make and make utilities. then there it
created and iptables/extensions directory. Now I have two issues

(a) There is only a gnumakefile in folder iptables/extensions. no makefile is seen.
(b)Still iptables -v shows old version number ie v1.2.6a and not 1.4.9.*

What could be the issue here?
 
Old 10-11-2010, 12:17 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Before you go and start replacing the distro supplied iptables with a
roll-your-own one .. did you check whether there's a iptables-development
package on your installation media, or available from RedHat?

Btw, you didn't really say which distro of Linux you're running,
just which kernel you have (which, just to note, is ancient).


Cheers,
Tink

Last edited by Tinkster; 10-11-2010 at 12:18 AM.
 
Old 10-11-2010, 11:14 PM   #5
emjdev
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
This is an old distribution Redhat Linux 8.0

Could you be more specific reg the dev env on installation packg.
Are they different from rpms?
 
Old 10-12-2010, 01:28 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,371

Rep: Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379
Is there any reason you're using RH8; it hasn't been updated or supported in many(!)years and used ipchains, NOT iptables for the firewall....
http://en.wikipedia.org/wiki/Red_Hat_Linux
Currently you'd use Centos 5.5 (free version of RHEL) or Fedora 13(?)
 
Old 10-12-2010, 02:28 AM   #7
emjdev
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your valuable comments. We were using this as a proxy server and so far working fine w/o any issues. Now is it possible to update this w/o uninstalling to work with iptables? (it had iptables*.rpm version v1.2.6a
 
Old 10-12-2010, 02:30 AM   #8
emjdev
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Are both Centos 5.5 and Fedora from RedHat? Which could be better for our use? Any comparison? compatibility issues?
 
Old 10-12-2010, 11:40 AM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by emjdev View Post
Are both Centos 5.5 and Fedora from RedHat? Which could be better for our use? Any comparison? compatibility issues?
Centos is a free version of RedHat Enterprise Linux; it uses
the same rpms & tools as redhat, minus a few branded items.

Fedora is the free opensource little brother of RedHat, the
playpen for the developers that comes w/o pay-for support,
and a very fast release cycle.

I can't believe you're using a version that was w/o patching
for the last 6 years in a production environment :}



Cheers,
Tink
 
Old 10-12-2010, 10:35 PM   #10
emjdev
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
We use this just for sharing net connection among selected users and not in production env. So which will be better here Fedora or CentOS? Then what about the iptables dev issue?
 
Old 10-13-2010, 06:28 AM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,371

Rep: Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379Reputation: 2379
Go with Centos. http://en.wikipedia.org/wiki/Centos

As above, it's the free version of RHEL http://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux, currently on v5.5.
Comes with iptables as std.

Fedora is the bleeding edge R&D unstable distro from RH. They use it to test out stuff that may or may not make it into RHEL
http://en.wikipedia.org/wiki/Fedora_...ting_system%29
 
Old 10-13-2010, 08:44 AM   #12
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
To get back to the original question, it seems appropriate to point out the underlying architecture. The iptables utility is a userspace application that is used to manage the rules that are applied to the kernel module 'netfilter'. If you want to modify the kernel component, you would need to look in the kernel sources in the 'net/' source tree. Any changes you make there would then involve rebuilding and installing the new kernel. OTOH, the sources for iptables should be available for your scrutiny and modification. What functionality are you trying to add?

--- rod.
 
  


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
configure route and iptables................................. spiff721120 Linux - Networking 1 10-01-2008 07:29 AM
how to configure iptables..? apulu Linux - Networking 16 02-18-2008 10:43 PM
How to Configure iptables through webmin kitek Linux - Security 13 04-24-2007 11:22 PM
how to configure iptables santhosh.linux Linux - Security 2 09-27-2006 10:52 AM
Need help to install/configure iptables Gaucho Slackware 10 02-20-2006 01:23 AM


All times are GMT -5. The time now is 12:12 AM.

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