A short post to save some of the useful options for firewall-cmd:
List all the port opened by firewall-cmd
firewall-cmd --zone=public --list-ports
List all information
firewall-cmd --list-all
List services (be careful some services are opened but not listed in list-ports)
firewall-cmd --list-services
Add a port or service
firewall-cmd --permanent --zone=public --add-port=2200/tcp
Remove a port or service
firewall-cmd --permanent --remove-port=8000/tcp firewall-cmd --permanent --remove-service=http/tcp
Reload & commit change
firewall-cmd --reload
great piece of information , thanks for sharing