![Forrest logo](/images/logo.png)
firewall-cmd:tldr:cadb1
firewall-cmd: View the rules which are currently applied.
$ firewall-cmd --list-all
try on your machine
The command "firewall-cmd --list-all" is used to display a comprehensive list of all the firewall rules and settings currently configured on a system using the firewalld firewall management tool.
Here's a breakdown of the command:
- "firewall-cmd" is the command-line utility used to interact with firewalld.
- The option "--list-all" is used to list all the firewall configurations and rules.
When you run this command, the output will include information about the existing firewall zones, services, source/destination addresses, ports, protocols, and any other custom rules that have been created. This information provides a detailed overview of the active firewall settings on your system.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.