Show active firewalld zones and services.

Section: Firewalling with nftables and iptables

List firewalld settings

bash
bash
sudo firewall-cmd --list-all
Explanation

Show active firewalld zones and services.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Firewalling with nftables and iptables
Show UFW status
Inspect uncomplicated firewall status and rules.
OpenIn sheetbashsame section
Allow service with firewalld
Permanently allow the HTTPS service.
OpenIn sheetbashsame section
Show nftables rules
Display the active nftables ruleset.
OpenIn sheetbashsame section
Create nftables table
Create an inet filter table.
OpenIn sheetbashsame section
Create nftables chain
Create an input chain with a default policy.
OpenIn sheetbashsame section
Allow SSH with nftables
Permit inbound SSH traffic.
OpenIn sheetbashsame section