Firewalld is a popular, lightweight command-line firewall for Linux server and desktop systems. We’ve covered how to open necessary ports and services in Firewalld. We’ve also covered how to manage zones and more advanced Firewalld configurations.
From the configuration guide, one of the most important related tasks for troubleshooting server access is how to disable Firewalld temporarily or permanently. Why?
Troubleshooting connection issues. Sometimes, something goes wrong and temporarily disabling Firewalld can help you troubleshoot the problem. Firewalld blocks traffic from most ports by default. For this reason it may be better to configure open ports with firewall-offline-
cmd
before enabling the firewall on more complex production systems.
Testing another firewall application. Maybe you may want to test a different firewall application but lack a staging, or development, system. For example, ConfigServer Security & Firewall (CSF) is popular for it’s powerful, yet user-friendly setup process and cPanel plugin for managed VPS and dedicated servers.
Below we cover how to temporarily stop Firewalld and disable Firewalld from starting upon system reboot.
firewalld.service
and firewalld
can be used interchangeably with the Systemd commands below.
How to Stop Firewalld
Systemd stop
and start
commands refer to the current server session. Follow these steps to stop Firewalld until manually started again or the server reboots if Firewalld is enabled.
- Log into SSH
- Check Firewalld status:
systemctl status firewalld.service
If Firewalld is running, you’ll see a green circle (🟢) beforefirewalld.service
, and two lines below,Active: active (running)
. TheLoaded
row states whether the service is enabled to start upon reboot.
For a quickactive
orinactive
instead:systemctl is-active firewalld.service
- Stop Firewalld for the current session:
systemctl stop firewalld.service
- Confirm Firewalld is inactive
systemctl status firewalld
You should see a white circle (○) beforefirewalld.service
andActive: inactive (dead)
. - Start Firewalld once desired:
systemctl start firewalld
Upgrade to VPS Hosting for Peak Performance
Upgrade to InMotion VPS Hosting today for top-notch performance, security, and flexibility, and save up to $2,412 – a faster, stronger hosting solution is just a click away!
SSD Storage High-Availability Ironclad Security Premium Support
Disable Firewalld
Systemd disable
and enable
commands refer to whether a process starts automatically when the server reboots. This operates separately from stop
/ inactive
status above.
- Check Firewalld status:
systemctl status firewalld
TheLoaded
row states whether the service is enabled to start upon reboot. - Disable Firewalld from starting at boot:
systemctl disable firewalld
- Confirm Firewalld is disabled:
systemctl status firewalld
- Enable Firewalld once desired:
systemctl enable firewalld
Want to learn more about server security? Read more about Dedicated server and VPS hardening in our full guide.