Configuring ports for operation of the Master server and Secondary master server

Perform the necessary steps for configuring ports if a firewall is enabled on the server.

To configure ports for Master server or Secondary master server:

  1. Open access to ports 80, 443 and 9045. To do so, run one of the following commands depending on the utilized operating system:
    • CentOS or Red Hat Enterprise Linux:

      firewall-cmd --add-port=80/tcp --permanent

      firewall-cmd --add-port=443/tcp --permanent

      firewall-cmd --add-port=9045/tcp --permanent

      firewall-cmd --add-port=705/tcp --permanent

    • Ubuntu:

      ufw allow 80

      ufw allow 443

      ufw allow 9045

      ufw allow 705

    • Debian:

      apt-get install iptables-persistent

      iptables -A INPUT -p tcp --dport 80 -j ACCEPT

      iptables -A INPUT -p tcp --dport 443 -j ACCEPT

      iptables -A INPUT -p tcp --dport 9045 -j ACCEPT

      iptables -A INPUT -p tcp --dport 705 -j ACCEPT

    • If you use SUSE Linux Enterprise Server, in the /etc/sysconfig/SuSEfirewall2 file, specify the FW_SERVICES_EXT_TCP="80,443 9045 705" parameter.
  2. Apply the changes. To do so, run one of the following commands depending on the utilized operating system:
    • CentOS or Red Hat Enterprise Linux:

      firewall-cmd --reload

    • SUSE Linux Enterprise Server:

      rcSuSEfirewall2 restart

    • Debian:

      netfilter-persistent save

    If you are using Ubuntu OS, the changes are applied automatically.

Ports are configured for Master server or Secondary master server.

Page top