India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Turkey Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Canada English
Canada Français
Somalia English
Netherlands Nederlands

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.

× WhatsApp us