Open firewall port in CentOs 7 , RHEL 7

Here in this small post , i will discuss about taht how to port open in latest 7 or 7  or version . some  users want to open ports or some of user wants to open port for services like http, ftp , etc..

I am going to explain below for open port  or add services in .

Active Zone  in firewalld :

You need to first search , which zone is active in firewalld or which is you are using .To find get active zone , execute below command.

 #firewall-cmd --get-active-zones

In , or latest firewalld , you will get zone name .zone name can be dmz,public or others. if you get dmz zone from name and you want to open port like 3444, then execute below command for open port in dmz zone.

#firewall-cmd --zone=dmz   --permanent --add-port=3444/tcp 

and then  we need to reload service of firewall  for changing effect.

#firewall-cmd --reload

About Sachin Gupta

I am a professional freelance contributor and founder of tech transit. Love to write and lover of education, culture, and community. I have been using it, setting, supporting, and maintaining it since 2009. rocks!

Have any Question or Comment?

Leave a Reply

Your email address will not be published.