Display current rules:
sudo firewall-cmd --zone=public --list-all
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