Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-18-2012, 11:29 PM   #1
LQ Newbie
Registered: Apr 2012
Posts: 4

Rep: Reputation: Disabled
IPTables or Firewall

I am confused over the use of IPTables and Firewall. I have IPTables set with masquerade for internet sharing. Since IPtables is in place shall I disable Firewall that can be viewed from System->Administration menu? Where I have to implement Firwall rules in IPTables? I am using Redhat 5.
Old 07-19-2012, 12:19 AM   #2
LQ Newbie
Registered: Jul 2006
Posts: 20

Rep: Reputation: 1
Hi vijaysoft, afaik when they say firewall its the GUI counterpart of iptables, if you are proficient enough in IPTables you can setup firewall rules in it. As per experience in SLES, if I disable GUI Firewall it also flushes all the rules of my iptables.
1 members found this post helpful.
Old 07-19-2012, 12:32 AM   #3
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 234

Rep: Reputation: 14
There is a rc.firewall bash script, which runs the CLI frontend "iptables" which configures "netfilter", this is linux firewall.

Old 07-19-2012, 12:43 AM   #4
LQ Newbie
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
GUI Firewall


Thanks for your input. You are right. When I added a new Trusted item to my GUI Firewall, I lost all the iptable configuration which has masquerade settings in it. I am wondering is there any way to recover the old configuration.
Old 07-19-2012, 02:13 AM   #5
LQ Newbie
Registered: Jul 2006
Posts: 20

Rep: Reputation: 1
There is no way to recover if you don't have a backup of your iptables configuration

To save:
iptables-save > /home/yourusername/iptables.bak
To restore:
iptables-restore < /home/yourusername/iptables.bak
I am really not familiar on the GUI way of setting it. Using iptables to set firewall rules is really hard to digest at first, but once you get used to it you will like and love it.
Old 07-19-2012, 07:10 PM   #6
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.7, Centos 5.10
Posts: 17,051

Rep: Reputation: 2261Reputation: 2261Reputation: 2261Reputation: 2261Reputation: 2261Reputation: 2261Reputation: 2261Reputation: 2261Reputation: 2261Reputation: 2261Reputation: 2261
Actually, 'firewall' is the concept, 'iptables' is a specific implementation.
See also mta (concept) vs eg sendmail or postfix or ... (implementations)
Old 07-19-2012, 07:27 PM   #7
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
Sorry, misread which disto you were using. You might want to check if there is a background process which periodically backs up items in /etc/sysconfig/ and other files in /etc/. It may back up the config files your system uses for the firewall interface.

Last edited by jschiwal; 07-19-2012 at 07:38 PM.


firewall, iptables

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
Iptables with iptables-firewall.conf arno's matt3333 Slackware 16 06-28-2007 07:20 AM
firewall - iptables Gemenii Linux - Security 3 01-31-2007 02:24 AM
How does my iptables firewall look? gian2oo1 Linux - Security 2 10-20-2005 08:27 PM
iptables firewall ninjaz Linux - Networking 2 10-20-2005 10:19 AM
IPTABLES firewall Vs rc firewall netguy2000 Linux - Security 7 02-28-2004 04:31 AM

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