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

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.0Practice node (graded) - spare /dev/sda2 Core4 GB50 GB + 15 GB

This guide includes

Use this because it appears in two objectives at once. This matters because runtime and permanent are effectively two different firewalls - a rule added to one is not in the other, and a reload discards the difference.

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