Cent 7 - FirewallD

Manage services:

firewall-cmd --list-services
firewall-cmd --zone=public --permanent --add-service=[ ]
firewall-cmd --zone=public --permanent -—remove-service=[ ]

Manage ports:

firewall-cmd --zone=public --permanent --add-port=[ ]/tcp
firewall-cmd --zone=public --permanent --remove-port=[ ]/tcp

Reload firewalld:

firewall-cmd —-reload