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:
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
ufw allow 80
ufw allow 443
ufw allow 9045
ufw allow 705
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
FW_SERVICES_EXT_TCP="80,443 9045 705"
parameter.firewall-cmd --reload
rcSuSEfirewall2 restart
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