RelayPro

circle-info

RelayPro is available starting with AIR version 5.4 and represents the next generation of secure relay communications for Binalyze AIR.

Overview

The RelayPro relay server is a specialized, authenticated proxy server designed to provide secure connections between AIR Responders and the AIR console. It acts as an intermediary relay that validates every Responder connection and securely forwards traffic to the AIR console. RelayPro is purpose-built for AIR and is not intended for general proxy use cases.

Unlike the deprecated Relay Server, RelayPro does not require a Responder to be installed on the same machine. This separation reduces the overall attack surface and aligns with modern zero-trust and least-privilege design principles.

circle-exclamation

How it Works

All Responder connections use HTTPS for secure communication and must complete a two-step authentication flow:

  1. Initial authentication — the Responder authenticates with RelayPro using JWT credentials.

  2. Secure forwarding — RelayPro validates the token and forwards authorized requests to the AIR console only when the target address and port are allowed.

This flow ensures only authorized Responders can establish connections to the AIR console.

Security Features

  • Unique authentication — each Responder receives its own time-limited JWT tokens

  • Enhanced encryption — token encryption keys are derived uniquely per Responder

  • Zero persistence — encryption keys are not shared between Responders or stored permanently

  • Resilient design — if RelayPro restarts, existing valid tokens remain functional

  • Modern JSON logging — logs are stored locally on the RelayPro server (not retrievable remotely)

Network Ports

RelayPro uses the same network ports as Responders connecting directly to the AIR console:

  • 443 (HTTPS) — required

  • 80 (HTTP) — optional, used only for HTTP reachability tests when HTTPS is unavailable

  • 4222 (NATS) — optional, used when NATS is enabled in the AIR console

Key Differences from the Legacy Relay Server

  • Independent deployment — no Responder required on the RelayPro host

  • Enhanced security — HTTPS + JWT authentication instead of SOCKS5 without authentication

  • Manual management — installation/upgrade/uninstallation are attended by admins

  • Logging changes — local-only JSON logs; remote log fetch is not supported

  • Configuration flexibility — more adjustable configuration options

Download and Install

Download the Package

  1. In the AIR console, go to Organization SettingsRelay Server.

  2. Select New Relay.

  3. Choose New RelayPro.

  4. Download the package for your platform/architecture.

RelayPro is available as .deb and .rpm packages.

RelayPro: Create a new RelayPro from Organization Settings
RelayPro: Download the RelayPro package and review prerequisites

Prerequisites

  • Linux only (currently supported)

  • Architecture: amd64 (x86_64) or arm64 (aarch64)

  • Linux Kernel: 3.9 or later

  • systemd: 231 or later

  • Responder version: 2.79 or later

Standard, up-to-date Linux distributions typically meet these requirements.

Installation Commands

RelayPro uses environment variables during installation to register with the AIR console. Always set them first and use sudo -E to preserve the environment.

For .deb packages:

For .rpm packages:

Example:

RelayPro: Example RelayPro installation on Linux

Package Details

  • Package name: binalyze-air-relaypro

  • Service name: binalyze-air-relaypro.service (systemd)

  • Installation directory: /opt/binalyze/air/relaypro

The installation directory includes the RelayPro binary, logs, and a configuration file. Logging is enabled by default and is fully configurable.

Registration and Status

After installation and service start, RelayPro registers with the AIR console. On success, it updates /opt/binalyze/air/relaypro/config.yml with:

  • relayId

  • registeredTo

  • securityToken

circle-exclamation

You can verify status in:

  • Config file: /opt/binalyze/air/relaypro/config.yml

  • AIR console: Organization SettingsRelay Server

RelayPro: RelayPro registered and visible in the Relay Server list

Relay URL (Mandatory)

circle-exclamation
  1. Go to Organization SettingsRelay Server.

  2. Click the RelayPro Name to open its details.

  3. Enter the Relay URL and save.

The Relay URL must include the port, for example:

If you use an intermediate proxy or load balancer, set the Relay URL to the first hop your Responders connect to:

The Relay URL is the advertised URL of RelayPro and is what Responders will use to connect.

Assign Responders and Connection Route

When a RelayPro is registered and its Relay URL is set, it becomes available in Connection Route settings.

RelayPro: Edit Connection Route from the Assets list
RelayPro: Open the Connection Route selector from the Asset Info page
RelayPro: Select RelayPro as the connection route

If a Responder is switched to Direct Connection to the AIR console after previously using RelayPro:

  • The Responder will attempt direct connection first.

  • If direct connection fails, it will continue to use RelayPro while periodically re-checking direct availability.

  • Once direct connection succeeds, the Responder stops using RelayPro.

Service Management

RelayPro runs as a systemd service and operates as a non-root user air-relaypro. The user and group are created automatically during installation.

circle-exclamation

If you uninstall RelayPro, remove the air-relaypro user and group manually afterward.

Configuration

RelayPro configuration is stored in:

Normally, you should not edit this file manually. Common reasons to update it include:

  • Changing HTTPS proxy listener address/port

  • Adjusting log file locations or rotation settings

  • Changing CA certificate file or private file locations

  • Manually configuring console addresses for migration

Core Configuration Fields

Field
Type
Required
Description

consoleAddress

string

Yes

Address of the AIR console

registeredTo

string

Yes

Console address this RelayPro is registered to

organizationId

integer

Yes

Organization ID provided during installation

Optional or Temporary Configuration Fields

Field
Type
Required
Description

relayProId

string

Yes

Unique RelayPro instance ID (generated if missing)

relayId

integer

Yes

Relay ID provided by the AIR console during registration

securityToken

string

Yes

Token used to authenticate RelayPro requests

consoleCACert

string

Yes

CA certificate in x509 PEM format

proxyEnabled

bool

Yes

Use system proxy to connect and forward traffic

debugLogging

bool

Yes

Enable debug logging

deploymentToken

string

No

Token used during registration (cleared after)

serverName

string

No

Server name for auto-generated TLS certificates

privateFolder

string

No

Path to private data folder

passwordFile

string

No

Password file for testing-only authentication

clientAuthToken

object

No

JWT token duration settings

httpsProxy

object

No

HTTPS proxy listener configuration

migration

object

No

Console migration information

logger

object

No

Logger configuration

Example Configuration

Logger Configuration (Environment Variable)

RelayPro merges logger configuration from the config file and the environment variable. The environment variable has higher priority.

Reload vs Restart

Changes requiring service restart:

  • privateFolder

  • serverName

  • httpsProxy

  • logger

Changes applied on reload:

  • consoleAddress

  • registeredTo

  • relayProId

  • securityToken

  • relayId

  • debugLogging

  • proxyEnabled

  • consoleCACert

  • clientAuthToken

  • migration

HTTPS Proxy Listener

RelayPro includes a built-in HTTPS proxy server. It is enabled by default and listens on 0.0.0.0:9443.

Example configuration:

Set the Relay URL in the AIR console to match the advertised address and port:

If you use an intermediate proxy or load balancer, set the Relay URL to that external endpoint:

HTTPS and HTTP Listener Environment Variables

  • RELAYPRO_HTTPS_LISTEN — configure the HTTPS listener

  • RELAYPRO_HTTP_LISTEN — enable an HTTP listener (disabled by default)

circle-exclamation

Password File (Testing Only)

Password-based authentication is intended for testing. After testing, remove the password file from config/env and reload.

Example password file:

Example test request:

You can set a password file via RELAYPRO_PASSWORD_FILE without editing the config file.

CA Bundle File

RelayPro generates a CA bundle at startup if one does not exist. This bundle is used to:

  • Generate TLS certificates for clients

  • Derive encryption keys for JWT token protection

If the CA bundle changes, Responders will re-authenticate and update their certificates, which invalidates existing JWT token encryption. Back up the CA bundle and keep it safe.

Multiple RelayPro instances can share the same CA bundle for clustering scenarios.

You can specify the CA bundle path via:

RelayPro supports PEM-encoded certificates with RSA private keys (PKCS#1 only).

Environment Variables

Recommended location for environment variables:

RelayPro supports standard proxy variables for RelayPro → AIR console connections:

  • HTTPS_PROXY

  • HTTP_PROXY

  • NO_PROXY

Lowercase variants are also supported. RelayPro uses the CONNECT method when communicating via a proxy.

Upgrade

RelayPro has an independent release cycle (separate from Responder versioning). Upgrade only when notified by AIR release notes.

To upgrade:

  1. Download the latest RelayPro package for your platform.

  2. Install it using the same package manager.

During an upgrade:

  • A temporary RelayPro process starts

  • The old process drains existing connections

  • The new process takes over

  • The temporary process stops after connections close

If anything goes wrong during the update, interrupt it and restart the update process. If the issue persists, stop the RelayPro service and retry the update.

Check status and logs during the upgrade:

Enable debug logging during upgrade and disable it afterward. No system reboot is required.

Uninstall

Before uninstalling, remove the RelayPro from the AIR console:

Organization SettingsRelay Server → Remove RelayPro

Then uninstall:

Cleanup remaining files and users:

Migration from Legacy Relay Server

When migrating, plan a staged rollout:

  1. Identify target Responders.

  2. Verify compatibility — Responders should run v2.74.1 or later for RelayPro compatibility.

  3. Install RelayPro.

  4. Configure RelayPro.

  5. In the AIR console, go to Organization SettingsRelay Server, and set the Relay URL.

  6. Assign one or more Responders to RelayPro.

  7. Verify connectivity (may take several minutes).

  8. Optional: install a new Responder via New AssetChoose a Connection Route to validate.

  9. Migrate remaining Responders.

  10. Keep the legacy Relay Server available for rollback if needed.

  11. If issues occur, contact Support and revert if required.

RelayPro is a distinct product and can be installed on the same machine as the legacy Relay Server.

Last updated

Was this helpful?