LinuxQuestions.org
Register a domain and help support LQ
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 07-18-2012, 11:29 PM   #1
vijaysoft
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
bluekill14
LQ Newbie
 
Registered: Jul 2006
Posts: 19

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
NM04
Member
 
Registered: Jan 2011
Location: Bangalore, India
Distribution: Back Track,Fedora, FreeBSD, Linux
Posts: 132

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

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

Original Poster
Rep: Reputation: Disabled
GUI Firewall

bluekill14,

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
bluekill14
LQ Newbie
 
Registered: Jul 2006
Posts: 19

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

To save:
Quote:
iptables-save > /home/yourusername/iptables.bak
To restore:
Quote:
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
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,226

Rep: Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023
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
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
  


Reply

Tags
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 12:52 PM.

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