Opening the Firewall Ports for a WebCC Server on GNU/Linux
The GNU/Linux firewall will block attempts from other computers to communicate with the WebCC server. In order to circumvent this, the ports used by the database server must be opened.
-
Add the ports used by the WebCC server to the list of open ports with the following commands:
$ sudo iptables -I INPUT -m state --state NEW -p tcp -m tcp --dport 8080 -j ACCEPT
$ sudo service iptables save
$ sudo service iptables restart
The GNU/Linux firewall should now allow other machines to connect to WebCC.
- 8080 is the default port used by the WebCC server. You can customize this port number—see Configuring WebCC with Custom Parameters on GNU/Linux.
- If your WebCC server is configured to allow both http and https connections, you will need to add a firewall rule for the port used by both protocols.
-
Add the ports used by the WebCC server to the list of open ports with the following commands:
$ sudo firewall-cmd --permanent --zone=public --add-port=8080/tcp
$ sudo firewall-cmd --reload
The GNU/Linux firewall should now allow other machines to connect to WebCC.
- 8080 is the default port used by the WebCC server. You can customize this port number—see Configuring WebCC with Custom Parameters on GNU/Linux.
- If your WebCC server is configured to allow both http and https connections, you will need to add a firewall rule for the port used by both protocols.