LinuxQuestions.org
Register a domain and help support LQ
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 07-17-2005, 03:02 AM   #1
yhus
Member
 
Registered: May 2004
Posts: 74

Rep: Reputation: 15
Save iptables filters


Hello,

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,

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

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 53
No.

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
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 620

Rep: Reputation: 30
Howzit

Listen to misc he right

cheers
 
  


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
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


All times are GMT -5. The time now is 01:17 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration