Relay Server Overview

Dinesh

Last Update 1 個月前

Overview

A Relay Server is used when some of your assets are in a separate, restricted, or isolated network that the Central Server cannot reach directly.

You install the Relay Server inside that network. It acts as a bridge between the Central Server and the assets.

Note: In this document, Central Server refers to either the SecOps SaaS Platform or the SecOps On-Prem Central Server

SecOps Solution offers two types of Relay Server:

Jump HostDistribution Server
Connects the Central Server to assetsYesYes
Keeps a local copy of patchesNoYes
Use it when You only need to reach assets in a restricted network.You also want patches to be downloaded once and shared locally, for example in a branch office or on a slow WAN link.

How the Connection Works  

For firewall planning, what matters is which side starts each connection. This depends on how the asset is onboarded.
Asset type Asset → Relay ServerRelay Server → Asset
Agent-based (SecOps Agent installed)5679 / 5680 (HTTP / HTTPS)
5683 / 5684 (WebSocket)
None
Agentless Windows 5679 / 5680 (HTTP / HTTPS)5985 / 5986 (WinRM)
Agentless Linux/Mac5679 / 5680 (HTTP / HTTPS)22 (SSH)

The agent opens the WebSocket (5683 / 5684) and keeps it open. The Relay Server uses this open connection to send tasks back to the agent, so it never needs to connect into an agent-based asset.

The Relay Server connects out to the Central Server over HTTPS and also opens a WebSocket to it. The Central Server sends tasks to the Relay Server on this open WebSocket, so it never connects into your network.

Hardware Requirements

Size the Relay Server by the number of assets it manages.

Assets per Relay ServerJump HostDistribution Server
1 - 500 2 cores, 4 GB RAM, 10 GB SSD2 cores, 4 GB RAM, 50 GB SSD
501 - 1,0002 cores, 4 GB RAM, 10 GB SSD2 cores, 4 GB RAM, 75 GB SSD
1,001 - 3,0004 cores, 8 GB RAM, 15 GB SSD4 cores, 8 GB RAM, 150 GB SSD
3,001 - 5,000 6 cores, 12 GB RAM, 20 GB SSD6 cores, 12 GB RAM, 250 GB SSD

A Distribution Server needs more disk because it stores patches. Actual usage depends on how many patches you distribute. SSD storage is recommended.

Firewall Requirements

How to read the tables below
Each row is one connection, written as Source → Destination : Port. For each row:
  1. Destination machine: allow the port inbound. This is always required.
  2. Network firewall between the two machines (if any): allow traffic from the Source to the Destination on that port.
  3. Source machine: allow the port outbound only if that machine or its network blocks outgoing traffic. Most operating systems allow all outgoing traffic by default, so usually nothing is needed here.

You do not need a rule for the reply traffic. Firewalls allow replies on an existing connection automatically.

Example: The row Agent-based Asset → Relay Server : 5679 means open 5679 inbound on the Relay Server. Open 5679 outbound on the asset only if the asset blocks outgoing connections. Nothing needs to be opened inbound on the asset.

1. Relay Server → Central Server

The Relay Server uses HTTPS and a WebSocket to the Central Server. The WebSocket stays open, and the Central Server sends tasks back on it.

SaaS

SourceDestinationPortProtocol
Relay Server api.app.secopsolution.com443HTTPS
Relay Server socket.app.secopsolution.com443Secure WebSocket (WSS)

On-prem

SourceDesitnationPortProtocol
Relay ServerOn-Prem Central Server58443HTTPS and Secure WebSocket (WSS)
Relay ServerOn-Prem Central Server58080HTTP

2. Assets → Relay Server

Both agent-based and agentless assets connect to the Relay Server on 5679 / 5680. Agent-based assets also open a WebSocket on 5683 / 5684.

SourceDestinationPortProtocol
All assets (agent-based and agentless)Relay Server5679HTTP
All assets (agent-based and agentless)Relay Server5680HTTPS
Agent-based AssetRelay Server5683WebSocket (WS)
Agent-based AssetRelay Server5684Secure WebSocket (WSS)
The WebSocket stays open and carries traffic in both directions. You only need to allow it in the direction shown above. The Relay Server sends tasks back on the same connection.

3. Relay Server → Agentless Assets

The Relay Server starts these connections, so the port must be open inbound on the asset.

SourceDestinationPortProtocol
Relay ServerWindows Asset5985WinRM over HTTP
Relay ServerWindows Asset5986WinRM over HTTPS
Relay ServerLinux/Mac Asset22*SSH
For Windows, open only the WinRM port the asset is configured to use (5985 or 5986).

Agentless assets also connect back to the Relay Server on 5679 / 5680, as listed in section 2.

* If SSH runs on a custom port, open that port instead and enter it when you onboard the asset.

Summary

  • A Relay Server lets the Central Server manage assets in a network it cannot reach directly.
  • Use a Jump Host for connectivity only. Use a Distribution Server if you also want a local patch store.
  • The Relay Server connects out to the Central Server over HTTPS and a WebSocket on 443 (SaaS) or 58443 / 58080 (On-Prem).
  • Agent-based assets connect to the Relay Server on 5679 / 5680 (HTTP / HTTPS) and open a WebSocket on 5683 / 5684. Open these inbound on the Relay Server.
  • For agentless assets, the Relay Server connects to the asset on 5985 / 5986 (Windows) or 22 (Linux/Mac). Open these inbound on the asset. The asset also connects back to the Relay Server on 5679 / 5680.

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us