Move to Linux
Browse guides

Fedora

Firewall

Check Fedora Workstation's firewall and understand its default settings.

Is it already on?

Fedora Workstation comes with firewalld enabled. It manages the firewall rules that control network connections to your computer.

Its default settings aim to keep everyday apps working without much setup.

Check if it’s running

Open a terminal and run:

sh
sudo firewall-cmd --state

If it says running, firewalld is on.

What settings is it using?

Firewalld groups its rules into zones. A zone is simply a set of firewall settings for a network connection.

sh
sudo firewall-cmd --get-active-zones

On a standard Workstation installation, you’ll usually see FedoraWorkstation beside your connection. Other Fedora editions can use different defaults.

To see the rules for that zone, run:

sh
sudo firewall-cmd --zone=FedoraWorkstation --list-all

Do I need to change anything?

You can leave the default settings as they are for everyday use.

If you want tighter rules or need to allow a particular app, follow Fedora’s firewall guide (opens in a new tab).

Last updated