To verify that the service is running and reachable by typing:
sudo firewall-cmd --state
We can see which zone is currently selected as the default by typing:
firewall-cmd --get-default-zone
Add temporary port 5000 to public zone:
firewall-cmd --zone=public --add-port=5000/tcp
Add permanently port 5000 to public zone:
firewall-cmd --zone=public --permanent --add-port=5000/tcp
Reload your firewall:
firewall-cmd --reload
More:
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-7
Leave a comment