Skip to content

Ports and firewall ​

ServicePortWho connectsWhat for
bs-control8080/tcpbrowsers, IPTV apps, scriptsPanel, admin API (/api/v1), client API (/player_api.php, /get.php, /xmltv.php, /live/..., /movie/..., /series/...).
bs-control8443/tcpnodesNode channel, mTLS. Enrollment is the only call without a client certificate.
bs-control443/tcpbrowsers, appsHTTPS for the same panel and client API, when BS_HTTP_TLS_LISTEN=:443 is set. See Cloudflare and HTTPS.
bs-control80/tcpLet's EncryptACME http-01 challenges are answered on the plain HTTP port. Only used if you move it to 80 (BS_HTTP_LISTEN=:80) or forward 80 to it.
bs-node8090/tcpviewers, child nodesHTTP delivery (/s/<token>/...) and relays (/relay/<token>/...).
bs-node8091/tcpviewersHTTPS delivery, when BS_LISTEN_TLS and a certificate are set.
bs-license8070/tcppanelsLicense API. Platform only.
PostgreSQL5432/tcpbs-control, bs-licenseLocal only (listen_addresses = 'localhost').
Redis6379/tcpbs-controlLocal only (bind 127.0.0.1), with a password.

Nodes never connect to PostgreSQL or Redis. They only talk to the control on 8443 and to their sources.

What the installer opens ​

The installer installs ufw and adds rules for the roles you install. With --firewall on (the default) it also turns ufw on. With --firewall rules it only adds the rules and leaves ufw as it was. With --firewall off it does not touch the firewall.

RolePorts
alwaysevery port sshd listens on, and 22
control80, 443, 8080, 8443
node80, 8090, 8091
license8070

SSH is allowed first, so enabling ufw never locks you out.

Extra ports

Anything not in this table is blocked once ufw is on. If you run a node on another port, for example a second node on 8092, allow it yourself:

bash
sudo ufw allow 8092/tcp

If viewers reach a node on another port than the one it listens on (NAT, port forward), set BS_PUBLIC_PORT (and BS_PUBLIC_TLS_PORT) in node.env. The node reports that port to the control, and viewers are redirected to it.

Behind a reverse proxy or Cloudflare ​

  • Add the proxy addresses to http.trusted_proxies (config) or the client API setting trusted_proxies. Otherwise every viewer looks like the proxy, and IP limits and blocks hit everyone at once.
  • With Cloudflare, only the panel record may be proxied. Node records must be DNS only. Cloudflare's ranges are trusted by default (http.cloudflare_proxies), and CF-Connecting-IP is believed only from them.
  • Node metrics (/metrics) answer only on loopback, so you do not need to firewall them.

Bitstream documentation