Firewalld is a lightweight and popular command-line firewall for Linux servers and desktop systems used on many Linux servers and machines today. firewalld is written in the Python programming language and is licensed under the GNU GPL 2 license. firewalld supports both IPv4 and IPv6.
This tutorial will teach you how to Start /stop and enable/disable the firewalld.
You may ask why sometimes you may need to temporarily enable or disable the firewall. The answer to this question is very simple.
Troubleshooting connection issues:
Sometimes when there are connection problems, one of the first things that should be done is to temporarily disable the firewall. For this reason, it may be better to configure open ports firewall-offline-cmd
before enabling the firewall on more complex production systems.
Sometimes the configuration file may not be set correctly or it may not be adapted to the desired conditions, in this case, it is necessary to disable the firewalld. We may want to use other firewalls on our system. And many other reasons Well, now let’s see what we need to do to disable the firewalld.
How to Stop/Start Firewalld #
Step1: Log into SSH
Step2: Check Firewalld status:
If Firewalld is running, you’ll see something look like the following Picture :
a green circle (🟢) before firewalld.service, and two lines below, Active: active (running).
Step3: Stop Firewalld for the current session:
Step4: Check Firewalld status:
If firewalld is inactive, You should see a white circle (○) before
Active: inactive (dead).
Step5: Start Firewalld :
How Disable Firewalld permanently #
When Stop firewalld with Systemd “disable” command, this is only inactive till the next system reboot. For Disable Firewalld permanently need run the following command :