Appearance
Ports and firewall
| Service | Port | Who connects | What for |
|---|---|---|---|
bs-control | 8080/tcp | browsers, IPTV apps, scripts | Panel, admin API (/api/v1), client API (/player_api.php, /get.php, /xmltv.php, /live/..., /movie/..., /series/...). |
bs-control | 8443/tcp | nodes | Node channel, mTLS. Enrollment is the only call without a client certificate. |
bs-control | 443/tcp | browsers, apps | HTTPS for the same panel and client API, when BS_HTTP_TLS_LISTEN=:443 is set. See Cloudflare and HTTPS. |
bs-control | 80/tcp | Let's Encrypt | ACME 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-node | 8090/tcp | viewers, child nodes | HTTP delivery (/s/<token>/...) and relays (/relay/<token>/...). |
bs-node | 8091/tcp | viewers | HTTPS delivery, when BS_LISTEN_TLS and a certificate are set. |
bs-license | 8070/tcp | panels | License API. Platform only. |
| PostgreSQL | 5432/tcp | bs-control, bs-license | Local only (listen_addresses = 'localhost'). |
| Redis | 6379/tcp | bs-control | Local 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.
| Role | Ports |
|---|---|
| always | every port sshd listens on, and 22 |
| control | 80, 443, 8080, 8443 |
| node | 80, 8090, 8091 |
| license | 8070 |
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/tcpIf 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 settingtrusted_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), andCF-Connecting-IPis believed only from them. - Node metrics (
/metrics) answer only on loopback, so you do not need to firewall them.