Nigeria
Kenya
South Africa
China
India
United States
Indonesia
Brazil
Egypt
Tanzania
Ethiopia
Uganda
Congo, Dem. Rep.
Ghana
Cote d'Ivoire
Cameroon
Rwanda
Germany
France
Spain
United Kingdom
Italy
Russia
Japan
Bangladesh
Mexico
Philippines
Pakistan
Turkey
Thailand
Korea, (South)
Netherlands

How to Open firewall port on CentOS 7

On Terminal

Logged in as root.

Run the following command.

firewall-cmd --zone=public --add-port=2888/tcp

Note this doesnot survive Reboots. Here is How to configure open firewall ports that survive Reboots.

Start by finding your active zones by running the following command.

 

firewall-cmd --get-active-zones

 

If the Zone is Public run the following:

 

firewall-cmd --zone=public --add-port=2888/tcp --permanent

firewall-cmd --reload

(for public active zone)

 

If its a different zone run the following.

firewall-cmd –zone=dmz –add-port=2888/tcp –permanent

 

Enjoy Server Administration.

Leave a comment

Your email address will not be published. Required fields are marked *

× WhatsApp us