firewalld command line client
firewall-cmd --state
--state — Check whether firewall daemon is active.
firewall-cmd --get-active-zones
--get-active-zones — Print currently active zones with interfaces and sources used.
firewall-cmd --zone=public --list-all
--zone=public — Name of the zone.
--list-all — View everything added or enabled for zone.
firewall-cmd --zone=public --add-port=80/tcp --permanent
--zone=public — Name of the zone.
--add-port=80/tcp — Add port to the zone.
--permanent — Save changes permanently.
firewall-cmd --reload
--reload — Reload firewall rules.
Control the systemd system and service manager.
systemctl reload sshd.service