RHEL 7 , how do you see open firewall ports  ?

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

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Cloud Architect
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
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
firewall-cmd is provided by the (Fedora) firewalld package:


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