Sample Header Ad - 728x90

How do I get a list of the ports which belong to preconfigured firewall-cmd services?

15 votes
1 answer
27932 views
I want to open the following ports in my CentOS 7 firewall: UDP 137 (NetBIOS Name Service) UDP 138 (NetBIOS Datagram Service) TCP 139 (NetBIOS Session Service) TCP 445 (SMB) I can guess that the services names include samba includes TCP 445 but I don't know if the other ports have a service name preconfigured. I can list supported services with: $ firewall-cmd --get-services But this doesn't tell me what ports are configured with the services. Is there a way to list what ports belong to these services so that I can grep for the one that I need?
Asked by Zhro (2831 rep)
Dec 5, 2018, 09:37 AM
Last activity: Nov 22, 2024, 06:06 AM