Explain firewalld zones and runtime vs permanent configuration.
IntermediateProductionFirewalls, MAC & Compliance
Answer
Zones are trust levels bound to interfaces or source networks (public, internal, trusted, drop). Changes are runtime by default and lost on reload; --permanent writes config but does not apply until reload.
sudo firewall-cmd --get-active-zones
sudo firewall-cmd --zone=public --add-service=https --permanent
sudo firewall-cmd --zone=internal --add-source=10.0.0.0/16 --permanent
sudo firewall-cmd --reload
sudo firewall-cmd --list-all --zone=public
firewall-cmd --runtime-to-permanent saves tested runtime rules.
More on Firewalls, MAC & Compliance
How do ufw, firewalld, nftables and iptables relate?BeginnerConfigure ufw for a web server with SSH only from the office.BeginnerWrite a minimal nftables ruleset for a server.AdvancedWhy are nftables preferred over iptables at scale?AdvancedHow do you avoid locking yourself out when changing remote firewall rules?IntermediateHost firewall vs cloud security groups: do you need both?Intermediate