Is there an easy way to show a full list of all the ports that have been opened using firewalld?
I know the command firewall-cmd --list-all, but that just shows service names, not the ports that those services define as being open.
For example:
[root@myserver log]# firewall-cmd --list-all
dmz (active)
target: default
icmp-block-inversion: no
interfaces: ens160
sources:
services: ssh squid my-icap
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
I know I can go into the definition files for each of these services to see what ports they are defining as open, but it seems like there should be a single-line way to do this, and I'm just missing it.
And I'm not looking for netstat: that will tell me if something is listening on a port, which is a different question from whether that port is accessible from another host.