Skip to content

Restrict management access to streamers

Limit access to the streamers' API, console, and HTTP metrics to trusted networks. Standard authentication still applies. The restriction does not affect access to SRT or to HLS served directly by the streamer. The restriction also applies to HLS requests that go through Mcaster's built-in HTTP proxy (http_proxy). If viewers get HLS through this proxy, provide another way for them to access the streams before enabling the restriction.

The allowlist applies to all managed streamers, not just those that deliver video over the internet. This setting does not protect central itself or its built-in streamer.

Set the allowed networks

Sign in to the central console with permission to change shared settings. Make sure the Network restriction of management access setting is available on every central instance. Under Cluster → Streamers, check the latest report for each streamer. If Applied by the node (last report) shows No data, wait for a fresh report and check the streamer's version before proceeding. Without a report, you can't confirm that the streamer supports management_allowed_ips.

Include your work network and the source addresses that other administrators, central, monitoring services, and load balancers use to reach the streamers. Central needs these connections to collect statistics, sessions, and episodes. If a request goes through NAT or a reverse proxy, use the source address the streamer sees, not the client's original address. If you allow a proxy's address, restrict management access at the proxy itself: the streamer sees all clients of that proxy as coming from the same address.

If you use NMOS, include the IP addresses of your NMOS controllers. To verify the restriction, make sure you can test from two networks: one you will allow and one outside the allowlist. Use HTTPS or a trusted private network when sending API credentials.

Here are two example networks. Replace them with your own:

192.0.2.0/24
198.51.100.0/24
  1. In the Mcaster console, open Cluster → Settings (/#/settings) and find Network restriction of management access. Record the current mode and list. From the network that should retain access, send GET /streamer/api-v4/listeners with API authentication to the streamer's own address, not central's. Confirm that the streamer returns 200.
  2. Under Restriction policy, select Allowed networks.
  3. In Allowed addresses and CIDRs (one per line), enter an IP address or a network in CIDR notation. Press Enter before the next entry; do not use a space or comma.
  4. Click Save. If the form flags an invalid entry, correct it and save again.

Verify the restriction

  1. Open Cluster → Streamers, then open the card for each affected managed streamer. Wait for a new report after saving. Then, under Network restriction of management access, compare Set in central with Applied by the node (last report). No data means the streamer has not confirmed application. Network restriction disabled means the report contains no effective list. If a fresh report differs from the shared setting, check for additional local configuration files that may override it. Do not use central's built-in streamer for this check.
  2. From the allowed network, repeat the authenticated request over HTTPS or through a trusted private network. Expect 200. From the network outside the allowlist, send the same request without credentials. Expect 403. If you use NMOS, verify separately that the controller can still manage connections on the configured NMOS port.
  3. From an external network, test playback over HLS or SRT. If you use both protocols, test each one. While playback is running, look for the new session on the Sessions page in the central console. Check that the streamer's statistics are updating. If you collect episodes, confirm that central has received a new episode. If the console reports that a streamer is unreachable, check the source address central uses to reach it.

Restore the previous setting

Under Cluster → Settings, restore the mode and list you recorded. Disabled (all networks) overrides the list in the streamer's main configuration file, but a list in an additional local configuration file may still apply. Not set (inherit) removes the shared list and leaves local settings in effect. After saving, check the latest streamer reports and test management access again.

Restoring the previous setting is different from rolling back to an older version. An older version of central may stop sending the shared list. Streamer versions that predate support for management_allowed_ips do not read it from local configuration files. Before rolling back, back up the configuration and put a separate network restriction in place.

Once every central instance supports the setting again, read the shared configuration with GET /central/api-v4/config. Use the response ETag as the If-Match header in a PATCH /central/api-v4/config request with the intended management_allowed_ips list. Send the request even if the console already shows the right list: an unchanged form does not send a PATCH. Keep the separate network restriction until fresh streamer reports and access checks confirm that the list is effective again.