RHEL 7 , how do you see open firewall ports  ?

NAMEWITHELD12
NAMEWITHELD12 used Ask the Experts™
on
firewall-cmd.......?????? something , I cant seem to find this command
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Cloud Architect
Commented:
firewall-cmd [--zone=<zone>] --list-all

If you leave off the --zone it will take the default zone.

If you want to know what the default zone is:
 firewall-cmd --get-default-zone
Top Expert 2015
Commented:
iptables-save | less

Or move back to RHEL6:
chkconfig firewalld off; yum install system-config-firewall-tui ; chkconfig iptables on ; chkconfig ip6tables on (and now open common ports; stop firewalld ; start iptables services)
Gerwin Jansen, EE MVETopic Advisor
Most Valuable Expert 2016
Commented:
firewall-cmd is provided by the (Fedora) firewalld package:

https://fedoraproject.org/wiki/FirewallD?rd=FirewallD/#How_to_configure_or_add_zones.3F

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial