LinuxQuestions.org
Visit Jeremy's Blog.
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 11-15-2016, 01:36 AM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 451

Rep: Reputation: 29
best way to configure a firewall on RHEL7


hi guys,

read this:

The RHCSA objective does not define which tool you should use to create firewall rules. It just mentions that you should be able to create firewall rules by using iptables, firewall-config, or firewall-cmd. So, you do not have to be able to work with each of these tools; you just have to be able to configure a firewall with the tool that works best for you.

what would you recommend and why?
iptables
firewall-config
firewall-cmd

thanks
 
Old 11-15-2016, 06:37 AM   #2
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 286

Rep: Reputation: 61
Hi,

My recommendation is firewall-cmd.
iptables is still good, but it is the past.
 
Old 11-16-2016, 08:41 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,944

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by sigint-ninja View Post
hi guys,
read this:

The RHCSA objective does not define which tool you should use to create firewall rules. It just mentions that you should be able to create firewall rules by using iptables, firewall-config, or firewall-cmd. So, you do not have to be able to work with each of these tools; you just have to be able to configure a firewall with the tool that works best for you.

what would you recommend and why?
iptables
firewall-config
firewall-cmd
I wouldn't recommend any of them...because it's YOU taking the exam. Since you have the flexibility to choose one, the best and most obvious answer is for you to read about/try/study all three, and figure out which one you can use best. If all three do the same things, and your objective is to pass an exam, then whichever you find you can work with easiest, use.
 
Old 11-28-2016, 05:54 PM   #4
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 451

Original Poster
Rep: Reputation: 29
so tbone,

it doesnt really matter? they all accomplish the same thing
but isnt there pros and cons to doing thins differently?
the previous poster said iptables is in the past...do you agree?
 
Old 11-28-2016, 09:14 PM   #5
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,835

Rep: Reputation: 260Reputation: 260Reputation: 260
I believe all three options use iptables. The other two simply parse iptables rules. Once I started using iptables directly it was so much easier to lock down a network exactly the way I wanted that I just kept using it.
 
Old 11-28-2016, 11:17 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
use bash
 
Old 11-29-2016, 08:16 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,944

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by sigint-ninja View Post
so tbone,
it doesnt really matter? they all accomplish the same thing but isnt there pros and cons to doing thins differently? the previous poster said iptables is in the past...do you agree?
You either didn't read what I posted, or missed the point.

To break it down:
  • YOU are wanting to take a 'certification' exam.
  • YOU have the choice of tools to use to accomplish a task
  • YOU are going to have to decide what is easiest for YOU to use
  • And the only way to determine what is better for YOU is for YOU to actually use both tools
There is no 'right' answer for anyone to give you...this is like asking someone, "Is the CLI easier than the GUI to use?" Depends on the user, and what THEY are comfortable with.
 
Old 12-04-2016, 05:45 PM   #8
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 451

Original Poster
Rep: Reputation: 29
ok with you TBONE thanks...understand now.
 
1 members found this post helpful.
Old 12-05-2016, 01:26 PM   #9
lazydog
Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 785
Blog Entries: 1

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by sigint-ninja View Post
the previous poster said iptables is in the past...do you agree?
Just because someone say something doesn't make it true. But here are some true statements for you.

Redhat does everything to try and stand out even to the point of trying to make the way they do things the standard.

Since you are taking the test you need to decide what works best for you and what you can use to complete the task at hand in a timely matter as in the end that is what counts, complete each task correctly in a timely matter.
 
  


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
Unable to install RHEL7 KVM onto RHEL7 desktop redhatprat Red Hat 10 02-18-2015 04:44 AM
LXer: Install and configure Nginx, MariaDB & PHP-FPM in CentOS 7 (RHEL7) LXer Syndicated Linux News 0 08-25-2014 08:42 PM
How to configure my firewall 144419855310001 Linux - Security 7 08-19-2006 10:39 AM
do I need to configure firewall? totti10 Mandriva 5 10-24-2004 03:37 PM
Need to configure firewall aargh Fedora 3 09-17-2004 03:34 PM


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