Reading Time: < 1 minute

Pre-Flight Check

  • These instructions are intended for finding (viewing) active zones in Firewalld on CentOS 7 via the command line.
  • I’ll be working from a Liquid Web Core Managed CentOS 7 server, and I’ll be logged in as root.

All network interfaces exist within a zone. They can be located in the default zone or split into other zones. Zones enhance an administrator’s capability to define trusts and restrict network traffic.

Note: On installation and without any configuration, the default zone for firewalld is set to the public zone.

Find (View) Active Zones in Firewalld

firewall-cmd --get-active-zones

public
interfaces: eth0

In this case there is one network interface: eth0. That interface is in the public zone.

Avatar for J. Mays

About the Author: J. Mays

As a previous contributor, JMays shares his insight with our Knowledge Base center. In our Knowledge Base, you'll be able to find how-to articles on Ubuntu, CentOS, Fedora and much more!

Latest Articles

Deploying web applications with NGINX HTTP Server

Read Article

Email security best practices for using SPF, DKIM, and DMARC

Read Article

Linux dos2unix command syntax — removing hidden Windows characters from files

Read Article

How to use kill commands in Linux

Read Article

Change cPanel password from WebHost Manager (WHM)

Read Article