Table of Contents

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.
According to the configuration guide, one of the most important tasks for troubleshooting server access is to temporarily or permanently disable the firewall. 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. You may want to test a different firewall application without a staging or development system. For example, ConfigServer Security & Firewall (CSF) is popular for its 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:
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: - Stop Firewalld for the current session:
- Confirm Firewalld is inactive
You should see a white circle (○) beforefirewalld.service
andActive: inactive (dead)
. - Start Firewalld once desired:
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:
TheLoaded
row states whether the service is enabled to start upon reboot. - Disable Firewalld from starting at boot:
- Confirm Firewalld is disabled:
- Enable Firewalld once desired:
Want to learn more about server security? Read more about Dedicated server and VPS hardening in our complete guide.