Artica Wiki

Tunnel agent for the RDS Proxy

Reach RDP and VNC targets through an outbound connection opened by an agent on the server: principle, benefits, requirements and limits.

A tunnel agent is a small program installed on a server that the bastion cannot reach.
It opens an outbound encrypted connection to the Artica appliance and keeps it open.
RDP and VNC sessions to that server then travel inside this connection.
The remote site opens no inbound port.

The problem it solves

Without an agent, the RDS Proxy opens a TCP connection to each target, on port 3389 for RDP or 5900 for VNC.
The target must therefore be reachable from the appliance.
That means an inbound port on the target, a route to its network and no NAT in the way.

This is often impossible or unwanted.
A plant network, an OT zone, a customer site behind a firewall you do not manage or a DMZ with strict rules will not accept an inbound flow from the bastion.

With a tunnel agent the direction is reversed.
The agent opens an outbound connection to the appliance.
When a user opens a session, the RDS Proxy sends it through that connection instead of opening its own.

Architecture of the tunnel agent

The agent opens the connection from the remote site.
The bastion reaches the target through it, without any inbound port on the remote site.

How it works

  1. The administrator creates an agent in the console and receives a single-use enrollment code.
  2. On the target server, the enrollment command creates the private key of the agent.
    The key never leaves the server.
    The appliance signs a certificate for it with a private certification authority dedicated to tunnel agents.
  3. The agent connects to the appliance on TCP port 4443 by default, with TLS 1.3.
    Both sides present a certificate.
    The appliance checks the agent identity, the agent checks the appliance.
  4. In the console, the administrator enters the agent identifier in the Tunnel agent field of an RDP or VNC target.
  5. When a user opens a session to that target, the RDS Proxy sends it through the agent.
    The agent connects to its local address, 127.0.0.1:3389 by default, and relays the traffic.
  6. If the agent is not connected, the session is refused.
    It never falls back to a direct connection.

A target behind an agent remains a normal target.
It goes through the same policies, the same second factor, the same video recording and the same access events.

Benefits

Requirements

Component Version Notes
RDS Proxy authenticator (authhook) 1.9.0 or later Sends sessions through the agent.
The Tunnel agents tab and the Tunnel agent field only appear with this version.
Tunnel receiver (artica-rdptunnel-server) 0.3.0 Delivered with the RDS Proxy package.
Runs as the systemd unit artica-rdptunnel.service.
Windows agent 0.3.0 Windows service and MSI package.
64-bit Windows only.
Linux agent 0.2.0 or later Program for amd64 and arm64.
No package yet: you start it yourself.
Network TCP 4443 by default From the target server to the appliance, outbound.
Artica opens the port in its own firewall automatically.

What can go through an agent

Target type Through an agent
RDP Yes
VNC Yes
SSH No.
The console and the API refuse the field for SSH targets.
Web (WebView) No.
Web targets are reached from the bastion itself.
Active Directory group No.
An agent publishes one server only.

Limits

Documentation pages

Page Content
Install and enroll an agent MSI package, enrollment command, Windows service, Linux, executable without installer
Manage agents in the console Agent list and states, new agent, revocation, settings, downloads, attaching a target
Troubleshooting Agent offline, enrollment refused, Windows events, logs, SIEM events