Quantix Relay and Direct WireGuard
A VPN service runs on a connector inside your site. Each service is reached by remote clients in one of two ways, which you choose under How clients reach this network when you create it:
- Direct WireGuard — clients connect to a public address of your site, and your router forwards one UDP port to the connector.
- Quantix Relay — the connector dials out to a relay service that you run on a host with a public address. Clients connect to the relay, and nothing is opened on your site's router. The relay only forwards encrypted WireGuard traffic; it never holds your keys and cannot read the traffic.
Which one to use
| Use | When |
|---|---|
| Direct WireGuard | Your site has a public IP address (static, or a dynamic one with a dynamic-DNS name) and you can forward a UDP port on its router or firewall. Nothing else to deploy. |
| Quantix Relay | You cannot open ports at the site — no public address, carrier-grade NAT, or a firewall you do not control — and you can run a small service on a host that has a public DNS name. |
Quantix Relay is offered in the dialog only when it is set up on your QvDC appliance. Until then the option is shown disabled with Not set up on this QvDC appliance, and Direct WireGuard is selected.
Direct WireGuard
Before you start
- A connector that reaches the virtual network (see Create a connector).
- Access to your site's router or firewall, to add a port forward.
Find your public address
The public endpoint is the address clients dial from outside your site: a public IP address or a DNS name, a colon, and a UDP port, for example vpn.example.com:51820 or 203.0.113.7:51820.
- Public IP address — your router's status page shows its WAN (internet) address. If it starts with
100.64to100.127, or is a private address, your provider is using carrier-grade NAT and a port forward cannot work; use Quantix Relay instead. - Dynamic address — if your provider changes the address from time to time, turn on your router's dynamic DNS feature (or another dynamic-DNS service) and use that name. A name keeps working after the address changes; profiles that contain a bare IP address stop working.
- Port — any free UDP port on your router, for example
51820. It does not have to match the connector's own port; the router translates one to the other.
Do not use a private address (for example one in the RFC 1918 ranges that start with 10, 172.16 to 172.31, or 192.168) as the public endpoint unless every client is on the same network: clients elsewhere cannot reach it, and their tunnel stays silent. The dialog warns you when you type one.
Create the VPN service
In Networking → Services → VPN Services, click New VPN Service, choose the connector under Deploy on, select Direct WireGuard and type the Public endpoint. As soon as the endpoint is valid, the dialog previews the rule: Forward UDP <port> on your router/firewall to <connector address>.
The connector's own WireGuard port is assigned when you create the service (in the range 51820–52019), so the exact rule appears right after you click Create VPN Service. The same rule is shown at the top of the service's page and with every client profile.
Add the port forward
On your router or firewall, create a port forward (also called a NAT, virtual server or DNAT rule) exactly as shown:
| Field | Value |
|---|---|
| Protocol | UDP |
| External port | the port of your public endpoint |
| Internal address | the connector's address from the rule |
| Internal port | the connector's port from the rule |
If a firewall sits between the router and the connector, allow that UDP port to the connector too.
Check that clients can reach it
- Add a client to the service and import its profile into the WireGuard app (see Add a client).
- Connect from outside your site, for example from a phone on mobile data. A test from inside the site does not prove the port forward works.
- In the WireGuard app, Latest handshake must show a time. In QvDC the client's status turns UP.
Troubleshooting a handshake that never completes
The WireGuard app shows Active even when no handshake happens: data sent grows and data received stays at zero. QvDC shows what the connector saw on the client's row of the VPN service's page, which reads DOWN with Last handshake: never and one of two messages:
- Nothing from this client has reached the connector: the client's packets do not arrive. Work through the checks below.
- The client's handshake attempts reach the connector, but the connector's replies do not get back to the client: inbound works, so the port forward and the profile are fine. Check NAT on your router, and that every firewall lets the connector's UDP replies out.
If the row says Not a client problem or reads UNKNOWN, check the connector instead (see Client status).
| Check | What to do |
|---|---|
| The public endpoint is wrong or out of date | Compare it with your router's current WAN address. For a dynamic address, use a dynamic-DNS name and re-issue the profiles. |
| The port forward is missing or points elsewhere | Compare it field by field with the rule on the service's page — protocol UDP, both ports, and the connector's address. |
The router's WAN address is in 100.64 to 100.127, or private | Your provider uses carrier-grade NAT; inbound traffic cannot reach you. Use Quantix Relay. |
| The client is inside your site | Many routers do not loop traffic for their own public address back inside. Test from outside, or give inside clients a profile with the internal address. |
| A firewall on the path drops UDP | Allow the UDP port on every firewall between the internet and the connector. |
| The connector is not ONLINE | Open Networking → Connectors and fix the connector first. |
Quantix Relay
How it works
The connector opens an outbound connection to the relay over UDP port 443. Each client gets its own public UDP port on the relay, from a range you choose. The client sends its encrypted WireGuard traffic to that port, and the relay passes it to the connector over the connector's outbound connection. QvDC signs a short-lived permission for each connector session; the relay checks it with QvDC's public key and never needs access to QvDC itself.
Before you start
- The Quantix Relay software. Request it from Quantix support through the customer portal: the
limiquantix-relayprogram with its systemd service, or its container image definition. - A relay host — a Linux machine or VM with a public IP address and a DNS name, for example
relay.example.com. It does not need any route to your site or to QvDC. - A TLS certificate for that DNS name. A publicly trusted certificate is simplest; a certificate from your own certificate authority also works (see Private certificate authority).
- Firewall on the relay host: inbound UDP 443 and inbound UDP on the reservation range (20000–40000 by default).
- Connectors need outbound UDP 443 to the relay. Managed VM connectors can use the relay; Host connectors cannot.
- Correct time on QvDC, the connectors and the relay host: the permissions QvDC signs are valid for only 90 seconds.
- SSH access to the QvDC appliance as
root(SSH is on after installation; see The appliance console).
Point QvDC at the relay
The relay settings live in the relay: section of the QvDC configuration file, /etc/quantix-vdc/config.yaml. The file is kept across restarts and appliance updates.
Sign in to the appliance:
ssh root@<qvdc-address>.Edit
/etc/quantix-vdc/config.yaml(for example withvi) and set therelay:section:yamlrelay: mode: "preferred" endpoint: "relay.example.com:443" public_host: "relay.example.com" server_name: "" ca_file: "" signing_key_file: "/var/lib/quantix-vdc/relay-signing.key" port_min: 20000 port_max: 40000 inner_mtu: 1080 token_ttl: "90s" session_ttl: "5m"On the appliance console, open Manage Services and restart Control Plane.
On its first start with relay enabled, QvDC creates its relay signing key, /var/lib/quantix-vdc/relay-signing.key, and the matching public key next to it, /var/lib/quantix-vdc/relay-signing.key.pub. You copy only the .pub file to the relay in the next step. Never copy the private key to the relay; it leaves the appliance only inside QvDC's own configuration backups.
| Setting | Default | What it does |
|---|---|---|
mode | disabled | disabled, preferred or required (see Relay modes). |
endpoint | — | host:port the connectors dial, usually relay.example.com:443. Required unless mode is disabled. |
public_host | host of endpoint | The host written into client profiles. Use a DNS name: a profile that contains a bare IP address cannot be moved later. |
server_name | host of endpoint | The name on the relay's TLS certificate, when it differs from the endpoint host. |
ca_file | empty | A PEM file of extra certificate authorities connectors should trust for the relay. Leave empty for a publicly trusted certificate. |
signing_key_file | /var/lib/quantix-vdc/relay-signing.key | QvDC's private signing key; created when missing. |
port_min, port_max | 20000, 40000 | The relay's public UDP reservation range, within 1024–65535. Must match the relay's own setting. |
inner_mtu | 1080 | MTU written into relayed client profiles, 576–1200. |
token_ttl | 90s | How long each signed permission is valid, at most 2m. |
session_ttl | 5m | Longest relay session before a connector re-authorises, at most 10m. |
Deploy the relay service
On the relay host:
Install the Quantix Relay software from Quantix support.
Put the TLS certificate (full chain) and its private key in
/etc/quantix-relay/tls/. The service reads the key through thequantix-relay-tlsgroup: create that group, make thetlsdirectoryroot:quantix-relay-tlswith mode0750, and make the key owned byroot:quantix-relay-tlswith mode0640. Never make it world-readable.Copy QvDC's
relay-signing.key.pubto/etc/quantix-relay/qvdc-relay-signing.pub.Create
/etc/quantix-relay/config.yaml:yamllisten: "0.0.0.0:443" udp_bind_host: "0.0.0.0" port_min: 20000 port_max: 40000 tls_cert_file: "/etc/quantix-relay/tls/fullchain.pem" tls_key_file: "/etc/quantix-relay/tls/privkey.pem" issuer_public_key_files: - "/etc/quantix-relay/qvdc-relay-signing.pub" max_sessions: 4096 packets_per_second: 5000 packet_burst: 10000port_minandport_maxmust match QvDC.issuer_public_key_filestakes up to eight public keys, so you can add a new QvDC key before retiring the old one.max_sessions,packets_per_secondandpacket_burstare safety limits; raise them only from measured load.Check the configuration, then start the service:
shlimiquantix-relay check-config --config /etc/quantix-relay/config.yaml systemctl enable --now quantix-relayFor the container image, run it with host networking (a large UDP port range cannot be mapped through a container proxy) and mount the configuration, the
tlsdirectory and the.pubfile read-only at the same paths. The container runs as user and group65532, not through thequantix-relay-tlsgroup: make the TLS key readable by group65532instead (for exampleroot:65532, mode0640).
Check that it carries traffic
- In QvDC, open Admin Panel → System → Remote access relay (see Remote access relay). Mode shows Preferred. After the connectors' next check-in, Connectors with a relay session counts them and the verdict is Carrying traffic.
- Create a VPN service with Quantix Relay, add a client and open its profile. It names Quantix Relay, your relay's DNS name, and
MTU = 1080. - Connect from outside your site and check that Latest handshake shows a time in the WireGuard app.
Relay modes
| Mode | Effect |
|---|---|
disabled | No relay. Quantix Relay cannot be chosen for a VPN service. Services created before the per-service choice existed use the connector's own address; services created with Quantix Relay get no client profile until relay is set up again. |
preferred | Relay VPN services can be created. Services created before the per-service choice existed use the relay when their connector has a relay session, and the connector's own address otherwise. |
required | As preferred, but those older services, when they run on a connector, get no profile at all until the relay carries traffic, instead of falling back. |
A service created with Quantix Relay always uses the relay: while its connector has no relay session, its client profiles are refused with a reason rather than replaced by an address that cannot work. Start with preferred, and move to required only once every connector shows a relay session. In required, an invalid relay configuration stops Control Plane from starting.
Private certificate authority
Connectors trust the relay's certificate only if a public certificate authority issued it. For a certificate from your own authority, copy its CA certificate (PEM) to the appliance, for example /etc/quantix-vdc/relay-ca.pem, set ca_file: "/etc/quantix-vdc/relay-ca.pem" and restart Control Plane. QvDC passes it to every connector; it adds to, and does not replace, the trust they already have.
Troubleshooting
| Symptom | What to do |
|---|---|
| Creating a VPN service fails with this appliance has no Quantix Relay configured (relay.mode is "disabled") (older versions: …choose Direct exposure or configure relay.mode on the control plane) | Relay is not set up on this QvDC. Choose Direct WireGuard, or follow Point QvDC at the relay and Deploy the relay service. |
| Creating a VPN service fails with the Quantix Relay configuration on this appliance is invalid | QvDC rejected a value in the relay: section; the message names it. Remote access relay shows the same finding. Fix the value, then restart Control Plane. |
| A client profile is refused with Quantix Relay is not ready | The connector has no relay session yet. The message gives the reason; check Remote access relay and the connector's state. |
Remote access relay lists Connector … reports a relay error that mentions the certificate or UnknownIssuer | The connector does not trust the relay's certificate. Give the relay a publicly trusted certificate, or set ca_file (see Private certificate authority). |
| Reserved ports exist but nothing connects | The relay host's firewall blocks UDP 443 or the reservation range, or port_min/port_max differ between QvDC and the relay. |
| Sessions are refused after a few minutes | Check that QvDC, the connectors and the relay host have the correct time. |

