Help Docs Security Overview Firewall Management Find (View) Default Zone for Firewalld on CentOS 7

Find (View) Default Zone for Firewalld on CentOS 7

Zones enhance an administrator's capability to define trusts and restrict network traffic. Learn how to find the default zone in Firewalld on CentOS 7 via the command line.

Pre-Flight Check

  • These instructions are intended for finding (viewing) the default zone 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.
  • To learn more about our managed dedicated servers, you can contact us or buy direct.

Zones enhance an administrator’s capability to define trusts and restrict network traffic. On installation and without any configuration, the default zone for firewalld is set to the public zone.

Note: When network interfaces added to firewalld they are assigned to the default zone.

Find (View) Default Zone for Firewalld

firewall-cmd --get-default-zone

public

In this case the default zone is the public zone. The default trust level of this zone is to not trust the other servers on the network. Only chosen incoming connections are accepted.

Was this article helpful?