Doesn't port 80/http need to be explicitly opened like other ports (such as 443/https or 8080/server), or is it a special case?

on my machine (CentOS Linux release 7.3.1611)

firewall-cmd --list-ports

8777/tcp 443/tcp 8080/tcp 8000/tcp

(nothing re: port 80)


http is service and will show in services query.

Use firewall-cmd –get-services to show current active services.

A service in firewalld is described as an xml file. There is one section named ports. Ports section of service http is 80.

  • ok, and I suppose http in the services list can be associated with port 80 via /etc/services. or is there a more direct association between service and port number? – theRiley Jul 17 '17 at 2:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.