Relay

Edition: ENTERPRISEEnterprise

What it does

Relay collects from networks the cinqstack server cannot reach: a remote site, or an OT segment behind a firewall that allows traffic in one direction only. A small edge inside that network does the collecting. The edge only ever connects out, over HTTPS, to the cinqstack server. Nothing connects in to the edge.

FIG. 1 · Relay, a section through two sitesThe edge only connects out. Its credentials are sealed to that edge and opened only in memory.

You route a job to an edge. From then on, when the job runs, the server writes a work order instead of collecting. The edge picks the order up on its next poll, collects locally with the same collectors the server uses, and uploads a signed result. The server then plans the run as usual: plan, review, apply (see Collect, review and approve).

These jobs can be routed:

ModuleWhat the edge collects
Network devicesSwitches over SSH.
vCentervCenter or ESXi over HTTPS.
Hyper-VA Hyper-V host over SSH.
SolarWindsOrion over SWIS.
Firewall policyCheck Point and Fortinet management servers; SCALANCE S/SC appliances over SSH.
MonitoringThe reachability checks of one scope.

What travels between the server and an edge, and what waits on the edge's disk, is on What each connector reads.

How it stays safe:

What it needs in NetBox

Nothing extra in NetBox. The edge never talks to NetBox. The server reads NetBox to prepare orders (for example, the device list for a Network devices job or a monitoring scope) and to plan the results.

Setting up

All Relay pages are for admins.

1. Create an enrolment code

Open Connectors › Relay. Under the Edges table, type a name in New edge (for example "Site 2 edge") and click Create enrolment code.

The page shows Enrolment code for <name>, valid for 30 minutes and for one use only, with the commands to run on the edge machine.

2. Enrol the edge

The edge is the cinqstack package itself (cinqstack edge enrol, run and status), on a Linux VM, in a container or on Windows. Run the same version as the server where you can. If the edge must go through a web proxy, set the standard HTTPS_PROXY environment variable; the edge honours it. On the edge machine:

cinqstack edge enrol --hub https://cinqstack.example.com --code ABCD-EFGH-JKLM-NPQR --name "Site 2 edge"
OptionWhat it does
--hubThe cinqstack server's HTTPS address, as the edge reaches it: your reverse proxy in front of the server.
--codeThe enrolment code.
--nameThe edge's name.
--stateWhere the edge keeps its files. Default: $CINQSTACK_EDGE_DIR, or ./data/edge.
--caA CA bundle, when the server's certificate comes from an internal CA.
--insecureDo not check the server's certificate. For labs only.

The edge answers Enrolled as <edge id> (<name>), key fingerprint <fingerprint>. Check that fingerprint against the one on the Relay page.

3. Start the edge

cinqstack edge run
cinqstack edge status

Run cinqstack edge run as a service so that it survives a restart. On Windows, the offline bundle installs it as a service with cinqstack winservice install edge. cinqstack edge status prints the edge's last status.

4. Route jobs to the edge

On the Relay page, under Routes, pick the Job (grouped by module), choose Collect through and the edge, and click Route. The page confirms: <Module> job collects through <edge> from now on.

A job has at most one route. Routing it again moves it to the new edge. Remove sends the job back to the server: Route removed: that job collects directly from this server again.

For a vCenter or SolarWinds server that only the edge can reach, add its connection with Save without testing. The edge tests it on the job's first run.

5. Open the network paths

FromToWhat for
Edgecinqstack server, HTTPSEverything: enrolment, polling, uploads.
EdgeSwitches, SSHNetwork devices jobs.
EdgevCenter, 443 (or the port on the connection)vCenter jobs.
EdgeHyper-V hosts, SSH (22, or the port on the connection)Hyper-V jobs.
EdgeOrion, 17774 (17778 before 2023)SolarWinds jobs.
EdgeCheck Point management, 443; FortiManager or FortiGate admin portFirewall policy jobs.
EdgeSCALANCE S/SC appliances, SSH (22, or the port on the connection)Firewall policy jobs.
EdgeDevices, ICMP or the scope's TCP portsMonitoring scopes.

The edge's clock must be within 120 seconds of the server's: requests are signed, and the server refuses them when the clocks differ by more than that. Keep the clocks in sync with NTP on both.

Problems with enrolment, clocks and certificates are covered in Relay troubleshooting.

Reading the results

The Relay page

The Relay page: an edge online, its last contact and its routed jobs.
The Relay page: an edge online, its last contact and its routed jobs.

The Edges table shows, for each edge:

ColumnWhat it shows
EdgeName, edge ID, key fingerprint, host name and the address it last called from.
Statusonline (heard from in the last 2 minutes), offline or revoked. A clock more than 30 seconds off is shown here.
Last contactWhen the edge last called in, and its last error if it has one.
VersionThe edge's software version.
Can collectThe modules this edge can collect for.
OutboxResults collected but not yet uploaded.

Revoke (after a confirmation) stops an edge from connecting at once. Its waiting orders fail, and their runs say Relay edge <name> was revoked. A revoked edge can then be deleted. To bring an edge back, enrol it again with a new code.

Actions that cannot be undone ask first, in cinqstack's own dialog.
Actions that cannot be undone ask first, in cinqstack's own dialog.

The Routes table lists each routed job and its edge.

Recent work orders lists the last 30 orders with their module and run, edge, status, result size and any message.

Order statusWhat it means
pendingWaiting for the edge to poll.
leasedThe edge has taken it. If the edge does not finish within 30 minutes, it is offered again.
uploadedThe edge's result has arrived and its signature checked.
appliedThe result was handed to its run.
failedThe edge could not collect, or the edge was revoked.
expiredNot delivered within 6 hours.
rejectedThe result failed a check, the collection was incomplete, or its run was no longer waiting.
supersededA newer collection for the same job was already applied.

A routed run

A routed run shows status relay with Waiting for relay edge <name> to collect. When the result arrives, the run goes on as any other: planned, then reviewed and applied. The run log says Snapshot received from the Relay edge. If the edge fails, the run fails with the edge's own message, for example Relay edge <name>: vCenter login failed.

Address tables through the edge

A Network devices job routed to an edge gets the switches' ARP and MAC address tables back with the rest, read the same way as from the server (show commands only, 30 seconds and 20,000 lines per table). IP addresses records them as sightings labelled via Relay and the edge's name. An edge whose version doesn't send them still collects as before; its run log and the address page say this edge's version doesn't send address tables. Upgrade the edge to add them.

The edge also reports its own address (from version 1.1), so Firewall policy › Reach checks the firewall path from the edge for the devices it collects.

What the edge does

The edge polls the server about every 20 seconds and takes up to 5 orders at a time. If the server cannot be reached, it retries with a growing wait, up to 5 minutes, and keeps finished results in its outbox until it can upload them. Results are uploaded in pieces and resume after a broken connection. The outbox holds at most 2 GB; beyond that the oldest results are dropped.

The edge keeps its files in its state directory: edge.json (its private keys, readable by the owner only), edge.log and status.json.

Findings it raises

Findings appear in the Findings inbox.

FindingSeverityWhen
Relay edge <name> has not been heard fromMediumAn active edge has not called in for 15 minutes, or has never connected.

Limits