Skip to main content

Cloud connect requirements

This guide describes what the network has to allow for a Capture Edge gateway to reach the Capture cloud portal.

Two independent channels​

A gateway talks to the cloud over two channels that fail independently. Both go outbound over TLS; nothing has to be opened inbound.

ChannelCarriesTransport
Requestssoftware updates, artifacts, configuration, device registrationHTTPS, always
Messagingcommands, status, heartbeat, live log streamingMQTT, or MQTT over WebSocket — whichever gets through

A gateway with no messaging channel at all still updates itself, fetches artifacts and pulls its configuration. It is simply slower to hear that something has changed, and the portal's live views (Messages, real-time status) stop working.

Which components connect​

Four of the Capture services hold their own connection to the cloud:

ComponentWhat it uses the cloud for
CloudManagerDevice registration, fetching new configurations, receiving remote software updates, heartbeat and status
CollectorCommands, status and log streaming. Also real-time point forwarding, when a real-time sync destination is configured against the Capture broker
SyncerBatch upload of collected data over HTTPS, plus commands (including resync), status and log streaming
AnalyticsCommands, status and log streaming

Edge components diagram with Syncer and CloudManager connecting to the Capture Cloud API over HTTPS port 443

note

Each component connects under its own MQTT client id, so one gateway holds up to four broker sessions at the same time. This is expected and is not a sign of a reconnect loop.


Required firewall settings​

The gateway needs outbound HTTPS access. A simple test is to browse to https://portal.captureplatform.com from the edge device itself. Navigating to this domain must be allowed.

PortProtocolApplicationDirectionRequired?
443TCPHTTPSOutbound *Yes
53TCP/UDPDNSOutbound *Yes
8883TCPMQTTSOutbound *Recommended

* Linux systems also need an inbound rule for Established and Related connections.

If port 8883 is blocked​

RequiresEdge2.3.1+

Capture Edge does not go silent when the MQTT port is closed. It uses the first of these transports that connects:

  1. MQTT over TCP, on port 8883 — the fast path, and what an unrestricted network uses.
  2. MQTT over WebSocket, to wss://<broker host>/mqtt on port 443 — the same protocol, carried over an ordinary HTTPS connection, so it survives most port filtering.

While it is running on WebSocket, the gateway keeps trying port 8883 in the background and moves back as soon as it answers. Nothing has to be configured for this: the WebSocket endpoint is derived from the broker address the gateway already has.

warning

These are the only two messaging transports. A network that blocks port 8883 and WebSocket traffic to the broker host on port 443 leaves the gateway with no messaging channel at all. It still updates itself and pulls its configuration over HTTPS, as described above, but commands, status and the portal's live views do not work.

tip

Opening 8883 is still worth doing. The ladder is there so that a restricted network keeps working, not as a replacement for the fast path.

note

Which transport is in use is shown per service in the Cloud link column of the Status page in the CloudManager UI: Connected, with over mqtt or over websockets underneath.


Domains​

The edge device must be able to reach all of the following. Allow both the captureplatform.com and the capture-vintecc.com hosts: the default configuration of Capture Edge 2.3 sends its HTTPS requests to portal.captureplatform.com and uses the mqtt.captureplatform.com MQTT broker, while a gateway installed with an older version keeps the capture-vintecc.com hosts it was configured with: Capture Edge does not change them on an update.

HostPortUsed for
portal.captureplatform.com443The Capture portal, and every HTTPS request in the default configuration of 2.3 and newer: registration (/Provisioning), authentication (/auth), software updates (/Updater) and data upload (/api/data)
mqtt.captureplatform.com8883, 443MQTT broker in the default configuration of 2.3 and newer, and its WebSocket fallback on 443. A Docker CloudManager started without a configuration uses it too
broker.capture-vintecc.com8883MQTT broker on a gateway whose configuration still names this host, typically one first installed with a version older than 2.3. It serves no WebSocket fallback, so such a gateway has a messaging channel only while port 8883 is open
capture-vintecc.com443The same HTTPS requests on a gateway whose configuration still names this host, typically one first installed with a version older than 2.3
harbor.mgmt.vintecc.cloud443Capture Edge image pull (Docker installations only)
Docker Hub (registry-1.docker.io, auth.docker.io and the hosts Docker Hub serves image layers from)443The influxdb:1.8.10 image pull (Docker installations only)
get.docker.com, download.docker.com443Installing Docker, only when the Docker installer finds no Docker on the device
note

A gateway that is registered against a different Capture environment uses that environment's hosts instead. The addresses in use are in the gateway's configuration: the HTTPS endpoints under CloudManager, and the broker as mqttEndpoint.


Running behind a proxy​

RequiresEdge2.4.0+upcoming

Some sites give the edge device no internet access, while a jump host next to it has. The gateway can then reach the Capture cloud through a standard HTTP CONNECT proxy on that jump host: Squid, 3proxy or the site's own corporate proxy. Capture does not ship a proxy of its own.

The gateway keeps its usual cloud addresses and asks the proxy to open a tunnel to each of them. TLS stays end to end: the proxy sees the host names the gateway connects to, never the traffic, and the gateway still checks the cloud's certificates. The proxy resolves the host names, so the device itself needs no public DNS. One proxy can serve gateways of different Capture environments.

What goes through the proxy​

All Capture cloud traffic of the CloudManager, Collector, Syncer and Analytics services: registration, login, configuration, software updates, batch data upload, and the messaging channel (commands, status, live logs). The Collector's realtime data sync goes through the proxy only when its destination has Use the device's cloud broker switched on.

Everything local goes direct: databases, local MQTT brokers, mirrors, requesters, field devices, and a realtime sync destination that names its own endpoint.

Behind a proxy, the messaging channel uses MQTT over WebSocket (wss://<broker host>/mqtt on port 443). MQTT over TCP on port 8883 is not offered, because it cannot be tunnelled through the proxy. A gateway with a proxy set never falls back to a direct connection: it keeps retrying through the proxy.

capture-vintecc.com is not supported behind a proxy

The broker.capture-vintecc.com broker answers on port 8883 only and has no WebSocket listener. A gateway whose configuration names it gets its HTTPS requests through the proxy, but no messaging channel: no commands, live logs, status or realtime data.

Set the proxy​

The proxy is part of the gateway's configuration, under cloudManagerSettings:

SettingValue
proxyEndpointThe proxy as http://host:port (or host:port). Without a path, and without credentials in the URL. Empty or absent: no proxy
proxyUsernameThe user for the proxy's Basic authentication. Leave empty when the proxy needs no login
proxyPasswordThe password for that user. It is stored encrypted
"cloudManagerSettings": {
"proxyEndpoint": "http://jump-host:3128",
"proxyUsername": "capture",
"proxyPassword": "..."
}

In the portal, the same settings are in the Proxy section of the Cloud manager page of the configuration editor. Cloud3.10.0+ A portal older than that drops these settings when it saves or serves a configuration, so on such a portal only the environment variables below survive a configuration update.

Only Basic authentication is supported; NTLM and Kerberos are not.

Environment variables​

Each setting can also be set on the device itself, with an environment variable that overrides that one field:

VariableOverrides
CAPTURE_CLOUD_PROXYproxyEndpoint. Set it to none, / or only spaces to use no proxy, whatever the configuration says
CAPTURE_CLOUD_PROXY_USERNAMEproxyUsername
CAPTURE_CLOUD_PROXY_PASSWORDproxyPassword

Because each variable overrides only its own field, the endpoint can come from the configuration while the credentials stay on the device. The proxy password is never uploaded to the cloud with the device's other environment variables.

Each service reads its own environment, so set the variables for every Capture service:

  • Windows: as system environment variables, then restart the Capture services.
  • Linux: in a drop-in for each of the cloudmanager, collector, syncer and analytics units (sudo systemctl edit cloudmanager, with a [Service] section holding Environment="CAPTURE_CLOUD_PROXY=http://jump-host:3128"), then restart those units.
  • Docker: under environment: of the cloudmanager, collector, syncer and analytics services in docker-compose.yml, then docker compose up -d.

A changed environment variable takes effect when the services restart. A proxy changed in the configuration needs no restart by hand: applying the configuration restarts the services that need it.

If a wrong proxy cuts the gateway off

A gateway whose configuration names a proxy it cannot reach has no way to receive the corrected configuration from the cloud. Fix it on site: set CAPTURE_CLOUD_PROXY to the right proxy, or to none to connect directly, and restart the services.

note

A gateway older than Capture Edge 2.4.0 ignores these settings and connects directly, which behind a jump host means not at all. Update the gateway before you put it behind a proxy.

The proxy in use is shown in the Cloud link column of the Status page in the CloudManager UI, for example over websockets via proxy http://jump-host:3128 (environment), and in the diagnostics package. Its credentials are shown nowhere. When a connection fails, the services' logs say whether the proxy could not be reached, refused the credentials (407) or refused the destination.

Hosts to allow on the proxy​

The proxy has to allow CONNECT on port 443 to the cloud hosts in the gateway's configuration. For the default configuration that is:

HostPortUsed for
portal.captureplatform.com443Every HTTPS request: registration, authentication, software updates and data upload
mqtt.captureplatform.com443The messaging channel, over MQTT over WebSocket
api4.ipify.org, api6.ipify.org443Optional. The gateway looks up its public IP address to show it in the portal; without it, that field stays empty

A gateway registered against another Capture environment needs that environment's hosts instead: the HTTPS endpoints under CloudManager and the host of mqttEndpoint in its configuration.

Example: Squid on the jump host​

A minimal /etc/squid/squid.conf that lets the gateways on one subnet open tunnels to the Capture cloud and nowhere else. Change the subnet, and add the hosts of your own environment if it is not the default one.

http_port 3128

# The gateways that may use this proxy
acl capture_gateways src 192.168.10.0/24

# Where they may connect to
acl capture_cloud dstdomain portal.captureplatform.com mqtt.captureplatform.com api4.ipify.org api6.ipify.org
acl SSL_ports port 443
acl CONNECT method CONNECT

http_access deny CONNECT !SSL_ports
http_access allow CONNECT capture_gateways capture_cloud
http_access deny all

To require a login, add Basic authentication and use the same user in proxyUsername and proxyPassword. The path of basic_ncsa_auth differs per distribution:

auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwords
acl capture_users proxy_auth REQUIRED

http_access deny CONNECT !SSL_ports
http_access allow CONNECT capture_gateways capture_cloud capture_users
http_access deny all

Create the user with htpasswd -c /etc/squid/passwords capture, then reload Squid with sudo systemctl reload squid.

Docker installations: image pulls​

The Docker daemon pulls the Capture Edge images itself and does not use the settings above. On a Docker installation behind a proxy, give the daemon its own proxy, for example with a systemd drop-in /etc/systemd/system/docker.service.d/http-proxy.conf:

[Service]
Environment="HTTPS_PROXY=http://jump-host:3128"

Then sudo systemctl daemon-reload and sudo systemctl restart docker. The proxy then also has to allow the image hosts from the Domains table: harbor.mgmt.vintecc.cloud and Docker Hub. See Docker's own documentation on configuring the daemon to use a proxy for the other ways to set it.


Optional firewall settings​

The CloudManager component hosts a local web page with:

  • An overview of the Capture services and what they are reporting
  • The configuration editor and a list of configuration backups
  • License / config uploading
  • Component logs and the issues the services are reporting
  • The diagnostics download

Open it on the edge device at http://localhost:5004; no firewall change is needed for that. The older address http://localhost:5004/api/ui still works and redirects to the current UI at /ui/v2.

To reach it from another machine, at http://<ip edge device>:5004, port 5004 must be opened inbound.

PortProtocolApplicationDirection
5004TCPCloudManager appInbound / outbound
5005TCPEdgeApi, deprecated (only when EdgeApi is installed and reached from another machine)Inbound
18830TCPEdgeApi MQTT relay, deprecated (same)Inbound
EdgeApi is deprecated

Edge2.4.0+upcoming No installer ships EdgeApi any more, and it is not developed further. It no longer relays the messaging channel correctly, so commands, live logs and status cannot be relied on through it. Put a gateway without internet access behind a proxy instead. An update leaves an EdgeApi that an earlier version installed as it is, and uninstalling Capture Edge removes it.

danger

The CloudManager web UI has no login, and neither does the API behind it. Anyone who can reach port 5004 can read the full configuration, change it, restore an old one and restart the services. Only open this port on a network you trust, and prefer reaching the page from the device itself.

EdgeApi's ports do not check who connects either: port 18830 accepts every MQTT client and passes it on to the cloud broker.