How to Stop and Disable Firewall on CentOS 8

1) How to check the status of Firewalld

Login to your server via SSH and run the command below to verify or check the status of your firewall.

# systemctl status firewalld

sample output
check status of firewalld
From the output above, we can evidently see that Firewalld is up and running. Let’s now see how we can stop the firewall.

2) How to Stop Firewalld

To stop the firewall, issue the below command:

# systemctl stop firewalld

sample output
How to stop and disable firewalld

3) How to disable Firewalld

Finally, to disable the firewall on boot, run the command:

# systemctl disable firewalld

sample output

HOw to stop and disable firewalld

Having disabled the firewall, we need to verify that the firewall is indeed disabled. Again, to check the status of firewalld, issue the command:

# systemctl status firewalld

sample output

verify firewalld is disabled

Great! We have now established that the Firewall has been stopped and disabled.

Conclusion

It’s always recommended to have your firewall active at all time to keep unwanted services and traffic at bay. This way, you will safeguard your system from possible threats and attacks. Always remember to turn your Firewall back after disabling it.