Ask Your Question

Do I need to setup firewalld on fedora28?

asked 2018-09-11 06:04:16 -0500

yesiamabdul gravatar image

I use Fedora 28 and I don't know whether there's firewall on my laptop.

How can I know there's firewall installed?

If it's not then how can I install and configure it.

Thank you very much for the help and Great day.

edit retag flag offensive close merge delete



@Abdul , you can more deep in the following pages -> documentation, quick-docs

hhlp gravatar imagehhlp ( 2018-09-11 07:11:52 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-09-11 06:47:35 -0500

clnetbox gravatar image

updated 2018-09-11 07:56:57 -0500

Fedora 28 ships with Firewalld pre-installed.
The firewall is active and running by default.
Learn how to use it : Fedora WIKI Firewalld
Here are the commands to verify the status :

$ sudo dnf list installed | grep firewalld
firewalld.noarch                     0.5.3-2.fc28                    @updates
firewalld-filesystem.noarch          0.5.3-2.fc28                    @updates

$ sudo firewall-cmd --state

$ sudo systemctl status firewalld
โ— firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled;  
                                               vendor preset: enabled)
   Active: active (running) since Tue 2018-09-11 12:05:25 CEST; 2h 40min ago
     Docs: man:firewalld(1)
 Main PID: 755 (firewalld)
    Tasks: 2 (limit: 4915)
   Memory: 39.7M
   CGroup: /system.slice/firewalld.service
           โ””โ”€755 /usr/bin/python3 -Es /usr/sbin/firewalld --nofork --nopid

If you want to configure the firewall via GUI :

sudo dnf install firewall-config

You can check what's installed and available :

$ sudo dnf list firewall*
Last metadata expiration check: 1:34:17 ago on Di 11 Sep 2018 12:16:19 CEST.
Installed Packages
firewall-config.noarch               0.5.3-2.fc28                    @updates
firewalld.noarch                     0.5.3-2.fc28                    @updates
firewalld-filesystem.noarch          0.5.3-2.fc28                    @updates
Available Packages
firewall-applet.noarch               0.5.3-2.fc28                    updates
edit flag offensive delete link more


Are users advised to make further configuration changes to firewalld? I'm used to Ubuntu's ufw where I would just do sudo ufw enable and forget about it since it would by default drop all incoming connections and only allow outgoing connections.

mb3 gravatar imagemb3 ( 2018-09-24 01:43:36 -0500 )edit

@mb3 If you don't want to adjust something special, there is nothing you need to do - everything is setup out-of-the-box. The difference compared to Ubuntu is that the firewall is enabled and running by default. :)

clnetbox gravatar imageclnetbox ( 2018-09-24 03:08:34 -0500 )edit

Question Tools

1 follower


Asked: 2018-09-11 06:04:16 -0500

Seen: 285 times

Last updated: Sep 11 '18