Ports and Firewall
This page lists the TCP ports that Centova Cast uses, and tells you which firewall rules the installer adds.
Ports
80 and 443
The control panel, with HTTP on port 80 and HTTPS on port 443. Let's Encrypt also uses port 80 to issue and renew the certificate. The control panel does not use these ports if you install with--no-webports. If you install with--ports, the control panel uses the ports that you give instead.2197 and 2199
The control panel, with HTTP on port 2197 and HTTPS on port 2199. The control panel always uses these ports, in addition to ports 80 and 443.8000 to 10000
The streams. Centova Cast gives the ports of each new account from this range. You can change the range with thePort range for new serverssetting on the Settings page of the control panel.2121
The FTP server of Centova Cast, for the upload of media files. The FTP server is disabled by default. You enable it incastd.conf.2222
The SFTP server of Centova Cast, for the upload of media files. The SFTP server is disabled by default. You enable it incastd.conf. This server is separate from the SSH server of the operating system, and does not change it.2198
The internal connection between the autoDJ software and Centova Cast. This port accepts connections only from the server itself (127.0.0.1). Do not open it in the firewall.
The WebDAV server of Centova Cast (enabled by default) and its S3-compatible server (disabled by default) do not use
ports of their own. They use the ports of the control panel, at the paths /dav/ and /s3/.
MediaMTX streams also use UDP ports: for SRT, for the media of WebRTC, and for RTSP with the UDP or multicast transport. Centova Cast gives these UDP ports from the same range as the TCP ports of the account (8000 to 10000 by default). MediaMTX uses no fixed UDP port outside this range. The installer opens only TCP ports. If you use MediaMTX, open the stream port range for UDP as well as for TCP in your firewall.
The Administration Manual, chapter Advanced, describes castd.conf.
Firewall Configuration by the Installer
At the end of a new installation, the installer tries to open these TCP ports in the firewall:
- 2197, 2199, 2121 and 2222
- 80 and 443 (or the ports of the
--portsoption), unless you install with--no-webports - 8000 to 10000
The installer does not change the firewall during an upgrade. It does not change the firewall if you give the
--no-firewall option.
The installer uses the first of these firewall tools that it finds:
firewalld
If thefirewall-cmdcommand exists, the installer adds the missing ports to the permanent firewalld configuration, then reloads firewalld.iptables
If iptables has rules, the installer does not change them. It shows the iptables commands that open the missing ports, under the headingManual Firewall Setup. Add these rules yourself.nftables
If thenftcommand and the file/etc/nftables.confexist, the installer adds rules for the missing ports to theinputchain in/etc/nftables.conf. It checks the new file withnft --check, then loads it.
If the installer cannot change the firewall, or finds no firewall rules, it shows the heading
Manual Firewall Setup and the list of ports to open. If your server has a firewall, open these ports yourself.
If your server is behind an external firewall (for example the firewall of your hosting provider), open the same ports in that firewall.