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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-19-2012, 12:29 AM
|
#1
|
LQ Newbie
Registered: Apr 2012
Posts: 4
Rep:
|
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.
|
|
|
07-19-2012, 01:19 AM
|
#2
|
LQ Newbie
Registered: Jul 2006
Posts: 20
Rep:
|
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.
|
07-19-2012, 01:32 AM
|
#3
|
Member
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 240
Rep:
|
vijaysoft,
There is a rc.firewall bash script, which runs the CLI frontend "iptables" which configures "netfilter", this is linux firewall.
cheers,
nm
|
|
|
07-19-2012, 01:43 AM
|
#4
|
LQ Newbie
Registered: Apr 2012
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
07-19-2012, 03:13 AM
|
#5
|
LQ Newbie
Registered: Jul 2006
Posts: 20
Rep:
|
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.
|
07-19-2012, 08:10 PM
|
#6
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,419
|
Actually, 'firewall' is the concept, 'iptables' is a specific implementation.
See also mta (concept) vs eg sendmail or postfix or ... (implementations)
|
|
|
07-19-2012, 08:27 PM
|
#7
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
All times are GMT -5. The time now is 07:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|