LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-20-2004, 09:08 AM   #1
lamborghini
LQ Newbie
 
Registered: Jan 2003
Posts: 2

Rep: Reputation: 0
How to upgrade iptables?


Environment: RedHat 9.0 Kernel 2.4.20-8

Now, I removed iptables-1.2.7a with Redhat, and want to install iptables 1.2.9, have downloaded the source code,
1) run the following commands:
make KERNEL_DIR=/usr/src/linux-2.4
make install KERNEL_DIR=/usr/src/linux-2.4

2) compile kernel

3) reboot

but, iptables service wasn't started, I run service iptables start and system told me: iptables: unrecognized service

so I checked /etc/xinetd.d, iptables not there,

I think I did wrong, anyone can give me some ideas?

Thx
 
Old 01-20-2004, 09:36 AM   #2
drws
Member
 
Registered: Jan 2004
Posts: 30

Rep: Reputation: 15
The RPM for iptables also installed the scripts in /etc/rc.d/init.d and placed symbolic links in /etc/rc.d/rc.3 etc. to start and stop iptables
Uninstalling the RPM should have removed these scripts.

You (hopefully) should have the files /sbin/iptables (or /usr/sbin/iptables)
running /sbin/iptables -V to check you are looking at the version you installed.

you could then try to load the iptables modules with
modprobe ip_tables

then run
lsmod
and you should see the ip_tables and possible iptable_filter modules loaded.

Then use the /sbin/iptables command to build your firewall rules.
as you use things in your firewall like connection tracking, the relevent module should load automagically. (like ip_conntrack)

You could however install the RPM for iptables again and keep a copy of the /etc/rc.d/init.d/iptables and /etc/rc.d/rc*.d/*iptables files, as well as /etc/sysconfig/iptables* to use after the upgrade.
 
Old 01-20-2004, 09:51 AM   #3
lamborghini
LQ Newbie
 
Registered: Jan 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you, drws,
Can I compile the iptables 1.2.9 into rpm and then install it?
 
Old 01-23-2004, 03:42 AM   #4
drws
Member
 
Registered: Jan 2004
Posts: 30

Rep: Reputation: 15
You can build your own rpms, but they would only contain the stuff in the source code you've got (they would still be missing the redhat scripts)

If you want the cutting-edge rpms for you system you can try the RPMS from the Fedora project which is now where the old "RawHide" RPMS reside.

iptables 1.2.9: (download all 3)
ftp://ftp.mirror.ac.uk/sites/fedora....9-1.1.i386.rpm
ftp://ftp.mirror.ac.uk/sites/fedora....9-1.1.i386.rpm
ftp://ftp.mirror.ac.uk/sites/fedora....9-1.1.i386.rpm

Fedora Core 1 replaced RedHat 9 as the free RedHat Linux OS. http://fedora.redhat.com)
RawHide is what RedHat calls their cutting/bleeding-edge rpms.

You can give these rpms a try, I can't say for sure if they'll work or not on your system, but if your happy to start again if they don't, then what have you got to lose?

Last edited by drws; 01-23-2004 at 03:43 AM.
 
Old 01-23-2004, 03:46 AM   #5
drws
Member
 
Registered: Jan 2004
Posts: 30

Rep: Reputation: 15
additional:

If you building a system for youself now, why not try the Fedora Core 1 OS, as RedHat 9 is due to be retired in the next few months.
At least then you'll be able to keep up2date with the latest rpms.
 
  


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
How to upgrade iptables version chingyenccy Linux - Newbie 3 01-17-2005 10:20 PM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
iptables book wich one can you pll recomment to be an iptables expert? linuxownt Linux - General 2 06-26-2003 04:38 PM
How do you upgrade IPTABLES? yuzuohong Linux - General 4 04-24-2003 04:13 AM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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