CertGrid CertGrid
Hands-on Lab·Red Hat Certified System Administrator

firewalld Zones, Services and Ports

This appears in two objectives - networking and security - and is one skill. The runtime/permanent split is the whole of it: `--permanent` writes the config without changing the running firewall, and without `--permanent` the change is lost at the next reload. Both halves are demonstrated failing.

Basic Networking Guide 51 of 67 Intermediate

Written against the versions above. firewalld writes **nftables** rules underneath. Hand-written `nft` or `iptables` rules will be overwritten by the next `firewall-cmd --reload`, which is why the objective names firewalld and not the layer below it.

Every command on this page runs on RHCSA-A01.
Server NameIP AddressOSRolesCPURAMHDD
RHCSA-A01192.168.0.31RHEL 10.0 (Coughlan)Practice node (graded) - spare /dev/sda2 Core4 GB50 GB + 15 GB

Before you start

  1. Zones, and what is open

  2. Services are names, not numbers

  3. Runtime and permanent are two different firewalls

  4. Ports, and verifying by exit status

  5. What it writes underneath

  6. A zone of its own, and the one rule never to break

Official sources