Find (View) Default Zone for Firewall on CentOS 7

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 an AKLWEB HOST Core Managed CentOS 7 Server, and I’ll be logged in as root.

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

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 are 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 not to trust the other servers on the network. Only chosen incoming connections are accepted.

We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies

More