How to open http port 80 on Redhat 7 Linux using firewall-cmd -

By default the port 80 for http connection is filtered on Redhat 7 as you can only access this port from the actual localhost and not from any other public host. To open a port 80 on RHEL 7 Linux we need to add an iptables rule. For this RHEL7 uses firewall-cmd. First add your port 80 rule with a following linux command:
[root@rhel7 ~]# firewall-cmd --zone=public --add-port=80/tcp --permanent

This is a companion discussion topic for the original entry at

Bhargavan .k@Chrompet

How to enable sctp port in redhat 7

Rajesh Patel

Thanks for your suggestion