Opening the Firewall Ports for a Harmony Database Server on GNU/Linux
The GNU/Linux firewall will block attempts from other computers to communicate with the database server. In order to circumvent this, the ports used by the database server must be opened.
-
Add the ports used by the database server to the list of open ports with the following commands:
$ sudo iptables -I INPUT -m state --state NEW -p tcp -m tcp --dport 5678 -j ACCEPT
$ sudo iptables -I INPUT -m state --state NEW -p tcp -m tcp --dport 5680 -j ACCEPT
$ sudo service iptables save
$ sudo service iptables restart
The GNU/Linux firewall should now allow other machines to connect to the database server.
-
Add the ports used by the database server to the list of open ports with the following commands:
$ sudo firewall-cmd --permanent --zone=public --add-port=5678/tcp
$ sudo firewall-cmd --permanent --zone=public --add-port=5680/tcp
$ sudo firewall-cmd --reload
The GNU/Linux firewall should now allow other machines to connect to the database server.