Platform
VPN
Give staff WireGuard access to your network, and join sites over IPsec, from a VPN gateway that runs on one of your servers.
Two products on one gateway
CloudOps offers two kinds of VPN:
- Office VPN lets your staff reach internal systems from anywhere, with the free WireGuard app on Windows, macOS, Linux, iOS or Android.
- Peering VPN joins this site to another datacentre, office or cloud network over an encrypted IPsec (IKEv2) tunnel.
Both run on a VPN gateway: one of your own servers that CloudOps configures. Staff devices and remote sites connect straight to that server. CloudOps writes the configuration and reads the status; your VPN traffic does not pass through CloudOps.
In the console, the pages are under Networking: Office VPN, My devices, Peering VPN and VPN gateways.
- Staff deviceWireGuard appA laptop or phone, anywhere
- encrypted tunnel to the gateway
- Your serverVPN gatewayConfigured by CloudOps
- routed on your side
- Your networkThe networks you allowThe LAN, and peered sites you tick
Who can do what
- Owners and admins create and delete gateways, add and remove peering connections, read pre-shared keys, download peer configurations, turn the office VPN on and off, change its settings and approve devices.
- Members add and remove their own devices on My devices. They see only their own devices.
- Viewers can see gateways and tunnels but cannot change them or add devices.
Every role sees the same pages. If your role does not allow an action, CloudOps refuses it when you try.
VPN gateways
A gateway is one of your servers with the VPN software installed: strongSwan for peering, and WireGuard as well once you turn on the office VPN. A server can host one gateway. A gateway can carry several peering tunnels and one office VPN, so you need a gateway even if you only want the office VPN.
What the server needs
- A Linux server that CloudOps manages, with an SSH key, and not offline. It must run a Debian-family distribution, such as Debian or Ubuntu, with kernel 4.19 or newer. The console recommends a dedicated VM.
- No IPsec setup of its own. If the server already has IPsec configuration that CloudOps did not create, the install stops rather than edit it. The same applies to an existing WireGuard setup when you turn on the office VPN.
- Inbound ports from the internet. For peering: UDP 500, UDP 4500 and ESP (IP protocol 50). For the office VPN: one UDP port, 51820 by default. If the server is behind NAT, forward these UDP ports to it at your router.
Create a gateway
Open Networking → VPN gateways and press Create VPN gateway. The Office VPN and Peering VPN pages also offer Create a gateway when you have none. Fill in:
- Name: letters, numbers, dot, dash and underscore.
- Server: the list shows managed servers in the region selected at the top of the console.
- Public endpoint IP: the address remote sites and staff devices connect to. You can leave it blank and set it after deployment.
- Under Advanced: LAN interface (detected automatically), Masquerade remote traffic (recommended), which is on by default (see Routing below), and the Encryption policy for Phase 1 (IKE) and Phase 2 (ESP). New connections on the gateway start from this policy. Changing it later never changes tunnels that already exist.
Press Create VPN gateway. The gateway shows Pending, then Deploying. When the install is done it shows awaiting_network and a Finish setup at your edge card that says which ports to open or forward. Enter or correct the Public endpoint IP, press Save, then Verify reachability. CloudOps sends one IKE packet to UDP 500, then UDP 4500, of that address, and any IKE answer counts. On success the gateway shows Active. A gateway also becomes Active on its own once one of its peering tunnels comes up.
The Office VPN and Peering VPN pages have a section called What this installs on your server. It lists every package, service, file and firewall rule CloudOps adds, and what it removes again.
The firewall on the gateway
Whenever CloudOps pushes its firewall rules to a gateway server, it allows UDP 500, UDP 4500 and ESP, and the office VPN port while the office VPN is on. Turning the office VPN on or off, or changing its port, makes CloudOps push those rules to the gateway server. They are built from the server's host firewall policies if it has any, and otherwise from its security groups. On a server CloudOps built, inbound traffic that those rules do not allow is then dropped, apart from SSH, ICMP and the VPN ports. Allow the other services the gateway server runs in its policies or its security groups.
If the gateway is a VM, its security groups also filter traffic on the server that hosts it. Allow UDP 500, UDP 4500 and the office VPN port there. Security groups cannot express ESP by itself: allow UDP 4500, which carries ESP through NAT, or allow all protocols from the remote gateway's address.
Redeploy or delete a gateway
- Redeploy runs the setup again. Established tunnels renegotiate, so traffic across them can drop briefly. Use it only if the gateway is misconfigured or stuck.
- Delete removes strongSwan, every tunnel on the gateway and the office VPN if it is still on. Packages CloudOps installed are removed too, except any that software you installed still needs.
Office VPN
An admin sets it up under Networking → Office VPN:
- Runs on: pick the gateway. The list shows gateways in every region.
- What staff can reach: under This site, the LAN behind the gateway is ticked by default. Under Peered sites, you can tick the remote networks of this gateway's peering tunnels. They are never included unless you tick them. Only ticked networks go through the tunnel; everything else keeps using the device's own internet connection.
- Send all traffic through the VPN: a full tunnel. Every request from the device, including personal browsing, then leaves through your gateway.
- Internal DNS servers (optional): needed if staff should reach internal hostnames rather than IP addresses.
- Show advanced for the Client address pool (default
10.90.0.0/24, at least a /29, not overlapping the networks above, and fixed once the office VPN is running), the Listen port (UDP) (default 51820, from 1024 to 65535, and reachable from the internet on the gateway's public IP), the Device limit per person (default 5, up to 50) and An admin must approve each new device. - Press Enable office VPN. CloudOps installs WireGuard on the gateway and applies the settings. When CloudOps manages the gateway server's firewall (its engine is nftables, see Host firewall), it opens the listen port there. Otherwise the page says so: allow the port in the server's own firewall if it blocks it.
You can set up the office VPN before the gateway is Active. Set the gateway's public endpoint IP before staff add devices: a device's configuration file records the gateway's address and key when the device is added, and a file made before they were known holds placeholders. Remove such a device and add it again.
To change settings later, edit them and press Save changes. Disable turns the office VPN off: every device loses access at once and WireGuard is removed from the gateway. Peering tunnels are not affected.
The device list
Once the office VPN is on, the Office VPN page lists every device with its Owner, Address, Status (Pending approval, Active or Revoked), Last seen and Transfer. Press Approve on a pending device to let it connect. The bin icon revokes a device; it stops reaching the network as soon as the gateway syncs, and nobody else is disconnected. A revoked device stays in the list and keeps its address, so the address is not given to another device.
When someone is suspended in your tenant or removed from your organization, their devices are revoked automatically.
Add a device
Any member can add their own computer or phone under Networking → My devices. The page finds the gateway that runs the office VPN; if the office VPN is not on yet, it says so.
- Type a device name, such as Ana's MacBook. It can have up to 63 letters, digits, spaces and the marks
. , ' ( ) @ + - _, starting with a letter or digit, and must differ from your other devices. - Press Add device. Your browser creates the device's key pair and sends only the public key to CloudOps. If the browser cannot do that, the server creates the pair, hands it over once and does not store it; the page tells you when that happened.
- The configuration is shown once. Save it now:
- On a computer: press Download to get the
.conffile, or Copy, and import it in the WireGuard app. - On a phone: press Show QR code, then in the WireGuard app choose Add tunnel → Scan from QR code. The QR code is drawn in your browser. If the configuration is too long for a QR code, download the file instead.
- On a computer: press Download to get the
- Press Done.
After that, the private key exists only on your device; CloudOps does not keep it, and cannot show the file again. To set up the device again, remove it and add it again. If your admin requires approval, the device connects once an admin approves it. The bin icon next to a device removes it.
Peering VPN
Networking → Peering VPN lists the tunnels on every gateway in the selected region, with the Site, Status, Remote gateway, Their networks, Tunnel activity and the gateway it Runs on. Click a row to open its gateway.
Add a site
Press Add a site. It opens your first gateway; to use another one, open it from VPN gateways. On the gateway's Connections tab, press Add connection and fill in:
- Name: letters, numbers, dot, dash and underscore, unique on the gateway.
- Remote gateway address: the public IP or hostname of the remote site's firewall. A gateway can have one connection per remote gateway; to reach more networks there, add them to that connection.
- Remote networks: the CIDRs behind the remote gateway, separated by commas. They must not overlap your local networks or another connection's remote networks on the same gateway.
- Local networks: the networks on your side that the remote site can reach. Leave it empty to use the gateway's own subnet.
- Advanced settings: the algorithms for each phase (tick every algorithm the remote device supports, and the tunnel uses the strongest match), the Dead-peer detection delay (seconds) (default 30), and the Pre-shared key. Leave the key empty to have a strong one generated. A key you enter needs 16 to 128 characters from letters, digits and
. _ ~ + / = @ : -.
Press Create connection. CloudOps applies the tunnel on your gateway; the connection shows applying, then down until the remote side connects.
Configure the remote side
Each connection has these actions:
- Download peer config generates the configuration for the remote device, with your values filled in. Choose Generic parameters, strongSwan / Linux, MikroTik RouterOS, UniFi (UDM) or pfSense / OPNsense. The file contains the pre-shared key.
- Show pre-shared key shows the key to enter on the remote gateway.
- Re-apply config pushes the connection to your gateway again.
- Delete removes the tunnel from the gateway.
Reading the key and downloading a peer config are recorded in the audit log.
Routing
With Masquerade remote traffic on, which is the default, the gateway rewrites source addresses. Machines on your network need no route changes, and the far end sees traffic coming from the gateway.
With it off, connections keep the real addresses. CloudOps adds routes to the remote networks on the servers it manages on the gateway's LAN; any other machine, such as your router, needs a route to the remote networks through the gateway, which you add yourself.
A connection takes the gateway's Masquerade setting when you create it; the console has no per-connection choice. The gateway's Routes tab shows, for each connection, its networks, the tunnel inside address and how it is routed.
Status and alerts
CloudOps reads tunnel status from each gateway about every two minutes. A tunnel shows up or down, and the Tunnel column says when it was last up, or Never connected. The traffic counters reset on every rekey, so treat them as a sign of life, not as usage. The Logs tab lists tunnel events.
When a tunnel that has been up goes down, you get a critical notification, and another when it comes back. A tunnel that has never connected does not alert.
Imported gateways
A gateway marked Imported · read-only is an IPsec gateway that was already running on one of your servers. CloudOps shows its tunnels but does not change it, and refuses deploy, delete and connection changes. Networks shown (via BGP) are what the tunnel carried when CloudOps last read it, not configuration CloudOps holds. Importing a gateway is not available in the console yet.
Limits
- Gateways run on Debian-family Linux only.
- Peering uses static routes. CloudOps does not configure BGP or other dynamic routing.
- One gateway per server, and one office VPN per gateway.
- Verify reachability tests the IPsec ports only, not the office VPN port.