- Run the following command to allow traffic on port 80:
sudo firewall-cmd --permanent --zone=public --add-service=http
- Run the following command to allow traffic on port 443:
sudo firewall-cmd --permanent --zone=public --add-service=https
- Run the following command to save the firewalld rules:
sudo firewall-cmd --reload