Important
The built-in VPN concentrator is available in the Enterprise edition.
Devices in a remote network - a branch office, a customer site behind NAT - are often unreachable from the Monitoring server. Instead of installing a collector there, let Monitoring open a VPN tunnel to the remote router and route into the remote subnets. The main server’s collector terminates every tunnel; each tunnel gets its own interface on the server.
| Protocol | When | Remote side, for example |
|---|---|---|
| WireGuard | The router dials in (NAT, dynamic address) | MikroTik RouterOS 7, Linux, OPNsense, pfSense |
| GRE over IPsec | A routed GRE link, fixed public IP on the router | MikroTik, Cisco IOS / IOS XE, FortiGate, strongSwan |
| IPsec (tunnel mode) | Any firewall or router | MikroTik, Cisco, Juniper SRX, FortiGate, Palo Alto, strongSwan |
WireGuard (the remote side dials in)
- VPN Tunnels → Add tunnel: name it, choose WireGuard, and enter the remote networks (comma-separated, for example
198.51.100.0/24). - Monitoring generates its key pair and shows this server’s public key and the listen port (from UDP 51900 up).
- On the remote router, create a WireGuard peer with that public key, the server’s address and port, and allow the Monitoring tunnel address.
- Paste the remote router’s public key into the tunnel and save.
The status changes from Awaiting peer key to No handshake yet to Connected, with the last handshake time.
GRE over IPsec and IPsec
- Add a tunnel of this type with the remote networks and the remote endpoint (the router’s public IP). For IPsec, Local networks are the selectors on this side (empty = this server’s own address).
- Monitoring generates a strong pre-shared key and, for GRE, the tunnel addressing.
- Remote router config gives the ready configuration for the other end (admins only, because it contains the key). Check it against the router’s firmware version and replace the
<...>placeholders it lists.
A router with a dynamic address can dial in to a plain IPsec tunnel: leave the remote endpoint empty and set the remote ID. When the Monitoring server is behind NAT, set This server’s public address - it is used as the IKE ID and in the generated configuration.
Advanced settings
IKE version 1 or 2, phase 1 and phase 2 encryption, integrity, DH group, PFS group, lifetimes, dead peer detection, local and remote ID, your own pre-shared key (Generate a new key replaces it), GRE tunnel addresses, MTU. Empty fields mean the defaults: IKEv2, AES-256 / SHA-256 / DH group 19, and ESP AES-256-GCM with PFS group 19.
Use the tunnel
Add the remote devices by their own addresses in the remote networks, as usual. Monitoring routes to them through the tunnel. Disable a tunnel to take it down temporarily; Delete removes its interface within a minute, and devices behind it become unreachable.
Each tunnel keeps a status history. The VPN tunnel state alert fires when a tunnel that was connected goes down, and again when it is back. A tunnel that never came up does not alert.
Requirements
- The collector runs with the
NET_ADMINcapability (default in the supplieddocker-compose.yml). - The firewall between the two ends allows, inbound on this server: the tunnel’s WireGuard UDP port, or IKE (UDP 500 and 4500) and ESP (IP protocol 50) for IPsec. GRE (IP protocol 47) runs inside IPsec.
- Tunnels always end on the main server, not on a site collector.