Introduction
You may find that you need to disable the firewalld service in some situations. One example would be in order to prepare your server for the installation of ConfigServerFirewall.
You may use the following procedure to disable the firewalld service.
NOTE: Please keep in mind that the management of third-party software such as firewalld is a task that is best handled by a systems administrator with the skills, training, and expertise required to do so for you. Although this issue is not related to cPanel or the basic configuration of cPanel, we would like to offer the following guide as a courtesy.
SECURITY NOTE: The firewalld service is a firewall. Disabling the server's firewall can pose a significant security risk if you do not know exactly what you are doing. If you are not aware of the potential consequences of disabling a security feature such as firewalld, you should NOT perform the steps in this guide, and you should instead consult with a systems administrator or security specialist with the skills, training, and expertise required to provide consultation on this topic.
Procedure
1. Login to the server via SSH or Terminal as the root user
2. Issue the following command to check the current status of the firewalld service:
firewall-cmd --state
systemctl status firewalld
3. If you see that the service is already disabled and is not running you do not need to make any further changes.
4. In order to stop the service issue the following command:
systemctl stop firewalld
5. To disable the service so that it will not start the next time that you reboot the server issue the following command:
systemctl disable firewalld