How to display the TCP/UDP port number for a firewalld service
Issue
-
Opening network ports with
firewalldis simplified by the use of service names. For example:# firewall-cmd --add-service=high-availability --permanent -
Which port number(s) are associated with service names?
Environment
- Red Hat Enterprise Linux (RHEL)
- 7
- 8
- 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.