CentOS 7 - Disabling firewalld

The Aerospike Knowledge Base has moved to https://support.aerospike.com. Content on https://discuss.aerospike.com is being migrated to either https://support.aerospike.com or https://docs.aerospike.com. Maintenance on articles stored in this repository ceased on December 31st 2022 and this article may be stale. If you have any questions, please do not hesitate to raise a case via https://support.aerospike.com.

Summary:

We have found, in several situations, that there was something new in CentOS/RHEL 7 that was blocking ports. The firewall on Redhat 7 Linux system is enabled by default. It may have to be disabled for the cluster to operate correctly and the clients to reach it. The client may report “no route to host” error when firewalld is running. Below are the commands that you can used to operate firewalld. You can also find details on firewalld at: How to Stop and Disable Firewalld on CentOS 7

# systemctl status firewalld

Steps to Stoping, disabling and enabling Firewalld

Stop RHEL7 firewall The firewall on Redhat 7 Linux system can be stopped using the following command:

# service firewalld stop

Stopped firewall will start again after system’s reboot. To start the firewall on Redhat 7 Linux system use:

# service firewalld start

Disable and Enable RHEL7 firewall In order to completely disable RHEL7 firewalld so it would no longer load after reboot run:

# systemctl disable firewalld

Now the firewall will not start after system’s reboot. To enable the firewall again run:

# systemctl enable firewalld