> ## Content Index
> Fetch the complete content index at: https://linuxhandbook.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Listing firewalld Rules
- URL: https://linuxhandbook.com/firewalld-list-rules/
- Published: 2024-03-19T05:40:59.000Z
- Updated: 2024-11-20T15:44:53.000Z
- Description: Wondering what firewall rules are put in place by firewalld tool? Here's how to know that.
- Author: Sagar Sharma
- Tags: Firewalld Basics, #docs-col

Listing firewalld rules is the first step when configuring a network problem to know if the service you intend to use is being blocked by the firewall or not.

To list firewalld rules, all you need to do is execute the following:

```
firewall-cmd --list-all
```

Want more details? Let me help.

## How to list firewalld rules

If your distro comes pre-installed with firewalld then the firewalld service will be up and running but sometimes, it may bring an error than the firewalld rules.

For example, when I tried listing the firewalld rules, it gave me this:

![Firewalld is not running](https://linuxhandbook.com/content/images/2024/03/Firewalld-is-not-running.png)

The above output simply means the firewalld is not enabled so first, you have to enable the firewall using the following:

```
sudo systemctl start firewalld
```

Now, if you try to list the firewalld rules, it will show you the following:

![List firewalld rules](https://linuxhandbook.com/content/images/2024/03/List-firewalld-rules.png)

## How to list firewalld rules of a specific zone

To list firewalld rules of a specific zone, [use the firewall-cmd command](https://linuxhandbook.com/firewalld-cmd/) in the following manner:

```
firewall-cmd --list-all --zone <zone_name>
```

For example, if I want to list firewalld rules of the `public` zone, then I'll be using the following:

```
firewall-cmd --list-all --zone public
```

![List firewalld rules of a specific zone](https://linuxhandbook.com/content/images/2024/03/List-firewalld-rules-of-a-specific-zone.png)

Yep, that's all it takes to list firewalld rules of a specific zone.

## Final words 

Listing firewalld rules is a simple yet important task. And in this tutorial, I went through how you can list all the firewall rules and also explained how you can list firewalld rules of a specific zone.

I hope listing firewalld will no longer be a complex task for you. 

If you still have any doubts or queries, feel free to leave a comment.