LinuxQuestions.org
Help answer threads with 0 replies.
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-19-2012, 12:29 AM   #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, 01:19 AM   #2
bluekill14
LQ Newbie
 
Registered: Jul 2006
Posts: 20

Rep: Reputation: 2
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, 01:32 AM   #3
NM04
Member
 
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 240

Rep: Reputation: 14
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, 01: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, 03:13 AM   #5
bluekill14
LQ Newbie
 
Registered: Jul 2006
Posts: 20

Rep: Reputation: 2
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.
 
1 members found this post helpful.
Old 07-19-2012, 08:10 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,419

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
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, 08:27 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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 08: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 08:20 AM
firewall - iptables Gemenii Linux - Security 3 01-31-2007 03:24 AM
How does my iptables firewall look? gian2oo1 Linux - Security 2 10-20-2005 09:27 PM
iptables firewall ninjaz Linux - Networking 2 10-20-2005 11:19 AM
IPTABLES firewall Vs rc firewall netguy2000 Linux - Security 7 02-28-2004 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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