Permanently opening a firewall port in CentOS

This is a simple process that can be accomplished by running:
firewall-cmd --zone=public --add-port=8080/tcp --permanent

Remember to reload the firewall for the changes to take effect:
firewall-cmd --reload

** Make sure to change the zone type and port number according to what you are looking to open. The above is simply an example.

You may also like