Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 07-17-2005, 03:02 AM   #1
Registered: May 2004
Posts: 75

Rep: Reputation: 15
Save iptables filters


I changed the filters using iptables, then save it by calling the iptables-save. But, after rebooting, the old filter came back. Does the iptables-save save the modified filter? If not how can I save the filter?

Also, is there anyway I can edit and save the iptables filter parameters to a text file, and invoke it during booting up?

I am using RH 9.0.

Thank you.

Kind Regards,

Old 07-17-2005, 03:15 AM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Yes, you would place your iptables commands into a text file, make it executable, and have it run at boot up.

Or perhaps even easier, place the iptables commands into the /etc/rc.d/rc.local file.
Old 07-28-2005, 07:43 PM   #3
Senior Member
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54

Use the way iptables is integrated into Red Hat Linux. Run service iptables save, which calls iptables-save internally to save the firewall rules in the right place, where they are loaded at boot-time: /etc/sysconfig/iptables
Old 07-30-2005, 05:01 AM   #4
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30

Listen to misc he right



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
Where should I save this iptables? wardialer Linux - Newbie 2 02-12-2005 05:10 AM
iptables save rules Osten Debian 1 02-10-2004 05:53 PM
iptables save commands are not working tarheel92x Linux - Networking 1 01-19-2004 06:16 PM
Iptables-save ??? gruger Linux - Security 3 05-23-2003 07:23 PM
iptables-save doen't! Smerk Linux - General 4 03-13-2003 11:39 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration