Show all opened ports
$ sudo firewall-cmd --list-all
To open up a new port (e.g., TCP/80) permanently, use these commands. Without --permanent
flag, the firewall rule would not persist across reboots.
sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
sudo firewall-cmd --reload