Allow Port 80 & 443 in FirewallD

Using firewalld, you can allow/deny any port temporarily or permanently. The temporary allow/deny rules will be removed after the system reboot. But the permanent rules will persist even after the system restart. The following commands allow incoming traffic on TCP ports 80 and 443 in firewalld. The –permanent option insures to remain firewall rules after system reboots. Next, apply the changes by reloading the firewallD.

View Firewall Rules

After adding the rules in firewalld, You can verify the by the running following command. Output:

Remove Rules from FirewallD

If you don’t need to keep the ports open, you can remove/deny the above ports from the firewalld using the –remove-port option: Next, run the following command to apply the changes:


This tutorial helped you to open port 80 and 443 through the firewalld on Linux operating systems.