CentOS 7 Firewall Configuration

 
Written By Sanjir Habib On Jan-8th, 2018

Allow http

firewall-cmd --zone=public --add-service=http  

To enumerate active zones. As parameter to --zone

firewall-cmd --get-active-zones  

To enumerate service names. As parameter to --add-service

firewall-cmd --get-services