Disabling the Firewall

To disable the firewall on each host in your cluster, perform the following steps on each host.

  1. If the iptables command is not installed on your system, then install it by running the following command:
    • RHEL:
      sudo yum install iptables
    • SLES:
      sudo zypper install iptables
    • Ubuntu:
      sudo apt-get install iptables
  2. For iptables, save the existing rule set:
    sudo iptables-save > ~/firewall.rules
  3. Disable the firewall:
    • RHEL 7 compatible:
      sudo systemctl disable firewalld
      sudo systemctl stop firewalld
    • SLES:
      sudo chkconfig SuSEfirewall2_setup off
      sudo chkconfig SuSEfirewall2_init off
      sudo rcSuSEfirewall2 stop
    • Ubuntu:
      sudo service ufw stop