Network and firewall
Which cluster ports to open between the hub and its agents, which to block, how agents find the hub, and how an agent proves it belongs to your cluster.
The hub and its agents talk over a cluster connection of their own, separate from the admin UI. This page says which of its ports to open, to whom, and what protects them.
Never forward 6443/TCP to the internet, and never expose it through a
tunnel or a reverse proxy. The cluster connection is encrypted and both sides
must present a certificate your hub issued, but it is a link between your own
machines and nothing else needs to reach it.
The cluster ports
| Port | Protocol | On | Who needs to reach it |
|---|---|---|---|
6443 | TCP | Hub | Each agent. |
6443 | TCP | Each agent | The hub. |
5353 | UDP | Hub | Your computers and each agent's dashboard, to find the hub by name (mDNS). Optional. |
4444 | TCP | Each agent | You, from your LAN, to use the agent's dashboard. |
Both directions use mutual TLS on 6443: each side checks the other's
certificate, so only machines your hub has enrolled can talk to it. The old
clear-text cluster port 6000, the per-agent 20000–29999 range and the
4445/UDP discovery port no longer exist. If a firewall rule still opens them,
remove it.
The full list, including the admin UI and live video, is on Ports.
Firewall: allow your agents, nothing else
Restrict 6443/TCP on the hub to the addresses of your agents, and 6443/TCP
on each agent to the address of the hub. On a single trusted home LAN
this is optional, but it matters as soon as cameras, smart-home devices or guest
devices share the network: a camera is the classic compromised device on a home
LAN, and it should not be able to open a connection to your hub's cluster port.
With ufw, on the hub (agents at 10.0.0.21 and 10.0.0.22):
sudo ufw allow from 10.0.0.21 to any port 6443 proto tcp
sudo ufw allow from 10.0.0.22 to any port 6443 proto tcp
sudo ufw deny 6443/tcp
# Only if you want the hub found by name (mDNS) from your LAN:
sudo ufw allow from 10.0.0.0/24 to any port 5353 proto udpWith iptables, the same rule for the hub's cluster port:
sudo iptables -A INPUT -p tcp --dport 6443 -s 10.0.0.21 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 6443 -s 10.0.0.22 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 6443 -j DROPOn each agent, allow 6443/TCP from the hub only. If your cameras and IoT devices live on
their own VLAN, a router rule that blocks that VLAN from the hub's 6443/TCP
does the same job in one place.
A firewall in front of Docker needs care: with host networking (the
recommended setup) the rules above apply directly. Under bridge networking,
Docker publishes ports past ufw; filter in the DOCKER-USER chain instead.
How an agent finds the hub
If the agent has a hub address (DOMINEVO_HUB_ADDRESS, the Unraid template's
Hub address, or Manual in the Mac setup window), it dials the hub
directly. This is the recommended setup.
Without an address, the agent stays unconfigured and dials nobody. It
announces itself over mDNS (_camstack-agent._tcp, UDP 5353) and the hub lists
it under Agents found on the network on Cluster → Nodes, where
you pair it. Finding an agent does not let anything join: the pairing, with
the same six-digit code confirmed on both screens, does.
The hub announces itself over mDNS only when its container shares your LAN: with
host networking, or a container with its own LAN address (for example Unraid's
br0). Under Docker bridge networking the hub is not announced; set the hub
address instead. mDNS works on one network segment only. Across subnets or
VLANs, set the hub address.
What the announcement carries and how to turn it off: Finding the hub on your network.
How an agent proves it belongs
There is no shared secret. When you pair an agent, the hub issues it a certificate from the cluster's own certificate authority, after you confirm the same six-digit code on the hub and on the agent's page. From then on the agent and the hub authenticate each other with those certificates on every connection: the hub accepts only an agent whose certificate it issued, and the agent accepts only its paired hub. A revoked certificate stops working on the next message.
On Cluster → Nodes, Agents found on the network lists each agent with its state (unpaired, pending or paired) and, once paired, the fingerprint of its certificate. Use Unpair to remove one.
Coming from an older version? A leftover cluster secret in an agent's
agent.json, or DOMINEVO_CLUSTER_SECRET in its environment, is ignored.
Pair the agent from the hub once. The old Agents without the secret setting
(Transition / Enforced) no longer exists.
What this does not protect
The cluster connection is encrypted (TLS 1.3) and both ends present a
certificate the hub issued, so someone watching the traffic cannot read it or
pretend to be an agent. An agent that has not been paired cannot join. It is
still a link between your own machines: firewall 6443 as above, and use a VPN
such as Tailscale for an agent that is not on your
LAN.