Guide on how to turn off and disable firewalld on Linux OS

Of the many functions and features of firewalld, one of the most important for troubleshooting linux servers is disabling firewalld either temporarily or permanently.

What is the purpose of turning off the firewalld feature?

  • To troubleshoot internet connection problems.
    Sometimes we don't realize the blocking done by the Linux OS built-in firewall. Firewalld blocks traffic from most default ports. For this reason, it is better to configure open ports with the firewall-offline- cmd syntax before enabling the firewall on the production server.
  • Try using other firewall software.
    You might want to try using another firewall application. For example, using a firewall from ConfigServer Security & Firewall (CSF). CSF is a popular and powerful firewall, and its use is quite user-friendly. If you use cPanel, then there is a CSF plugin that makes it easy for you to setup a firewall with a GUI either on a Cloud VPS or on a Physical Dedicated Server.

Below we will provide a tutorial on how to stop firewalld and disable firewalld on Linux OS.

 

Stop Firewalld

The steps you must take to stop Firewalld are:

  1. Login to SSH
  2. Check the firewalld status first.

    systemctl status firewalld

    status firewalld

    If firewalld is running, you will see the Active status in green. Loaded describes whether the service is enabled or disabled upon reboot.
  3. Next you can stop the firewalld
    systemctl stop firewalld

  4. Cek apakah firewalld status of already inactive

    systemctl status firewalld

  5. Start firewalld if desired again
    systemctl start firewalld

 

Disable Firewalld

Walaupun kamu sudah melakukan stop firewalld, tetapi jika tidak kamu disable, maka setelah server reboot, firewalld akan tetap menyala otomatis kembali. Lalu solusinya? Ya tentunya kamu harus disable firewalld tersebut dengan cara:

  1. Check the status of firewalld
    systemctl status firewalld

    If Loaded describes enable, then it will start automatically when rebooted. Then we need to take a disable action.


  2. Disable firewalld from the starting boot time.
    systemctl disable firewalld

  3. Check the status of firewalld.
    systemctl status firewalld

  4. You can enable it again if needed.
    systemctl enable firewalld

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.