Cloud connectors
A cloud connector links a Stingray host to your private network at a cloud provider. People connected to your Stingray VPN can then reach private addresses in the cloud, without public IP addresses on your instances and without a second VPN.
A connector is a site-to-site tunnel set up for one provider. It uses every tunnel the provider gives you, watches each of them, and moves traffic to a healthy one when another goes down.
| Provider | Status |
|---|---|
| Amazon Web Services | Available. Uses both tunnels of an AWS Site-to-Site VPN connection. |
| Microsoft Azure | Coming soon. Until then, use an IPsec tunnel on the Site-to-site page. |
| Google Cloud | Coming soon. Until then, use an IPsec tunnel on the Site-to-site page. |
How it works
AWS gives every Site-to-Site VPN connection two tunnels, each ending in a different availability zone. AWS takes one of them down from time to time for maintenance. A single tunnel would mean an outage each time.
A connector sets up both tunnels on the Stingray host and sends your traffic through one of them. Every few seconds the host checks that AWS answers through each tunnel. When the tunnel in use stops answering, the host moves traffic to the other one by itself. It stays there when the first tunnel returns, so traffic is not interrupted a second time.
Before you start
- A Stingray host with a public IP address, running IPsec service 0.3.0 or newer. Host updates shows the version and lets you update it.
- At least one VPN server on that host. Its subnet is what AWS routes back to you.
- An AWS VPC with a virtual private gateway attached to it.
- Networks that do not overlap. The VPC network must differ from your VPN subnets and from every other tunnel on the host.
- In AWS, the right to create a customer gateway and a VPN connection. In Stingray, a role that is allowed to change hosts and VPN servers.
Step 1: choose what to connect
In the dashboard, open Stingray, then Cloud connectors, and choose add connector.

- Give the connector a name.
- Choose the Stingray host.
- Tick the VPN servers whose users may reach the VPC.
- Under Cloud networks, enter the networks of your VPC, for example
10.20.0.0/16.
If other networks behind the host should reach the VPC too, for example an office connected over another tunnel, enter them under Other networks behind this host.
Leave the page open. Step 2 on the same page now shows the values to use in AWS.
Step 2: create the VPN connection in AWS
In the AWS console, under VPC:
| Where in AWS | What to enter |
|---|---|
| Customer gateways, Create customer gateway: IP address | The address the dashboard shows as "Customer gateway: IP address" |
| Site-to-Site VPN connections, Create VPN connection: Target gateway | Your virtual private gateway |
| Customer gateway | The one you just created |
| Routing options | Static |
| Static IP prefixes | The prefixes the dashboard shows, one for each VPN server or network you chose |
| Preshared keys and inside addresses | Leave both for AWS to generate |
| Route tables of the VPC: Route propagation | Turn it on for the virtual private gateway |
| Security groups of your instances | Allow the traffic you need from the VPN subnets |
Optional: under the tunnel options of each tunnel you can allow only what Stingray uses. The AWS defaults also work.
| Tunnel option | Value |
|---|---|
| IKE version | ikev2 |
| Phase 1 and phase 2 encryption | AES256-GCM-16 |
| Phase 1 and phase 2 integrity | SHA2-384 |
| Phase 1 and phase 2 DH group | 20 |
Step 3: bring the result back
- In AWS, select the VPN connection and choose Download configuration. Pick vendor Generic and IKE version ikev2.
- In the dashboard, choose that file in step 3 of the page. The file is read in your browser. Only the two tunnel addresses, the inside addresses and the keys are taken from it.
- Check the two tunnels the page lists, then choose Create connector.
You can also type the values instead of choosing the file.
The configuration file contains the keys of both tunnels. Delete it, or store it as you would store a password, once the connector is created.
What you should see
- The connector starts as provisioning and turns online within a few minutes, once AWS has brought both tunnels up.
- The connector page shows both tunnels. One of them is marked In use: that is the one carrying your traffic.
- From a device connected to one of the VPN servers you ticked, a private address in the VPC answers.


If the server group uses split tunnelling, add the VPC network to the networks that go through the VPN. Otherwise the device does not send that traffic into the VPN at all. See Split tunnelling.
When a tunnel goes down
The connector shows degraded and one tunnel as offline. Traffic moves to the other tunnel by itself.
| What happened | How long traffic stops |
|---|---|
| AWS takes a tunnel down, for example for maintenance | A few seconds |
| The path to one tunnel breaks and AWS is not aware of it | About a minute |
In the second case the Stingray host moves its side within about 10 seconds. AWS chooses on its own which tunnel it answers over, and it keeps using the broken one until its own dead peer detection gives up. With static routing this cannot be shortened from the Stingray side.
A connector that stays degraded still carries traffic, on one tunnel. Check the tunnel status of the VPN connection in AWS.
Changing or removing a connector
- Edit changes the name, the networks or a preshared key. A change to the networks or a key interrupts traffic for a few seconds. Make the matching change in AWS too: the static IP prefixes or the key.
- Delete removes both tunnels from the host. The VPN connection in AWS stays, and AWS keeps charging for it, until you delete it there.
Costs on the AWS side
AWS charges for each hour a Site-to-Site VPN connection exists, plus its usual data transfer charges. Both tunnels are included in that price. See the AWS pricing page for your region.
Good to know
- Routing is static. BGP is not supported.
- A connector lives on one Stingray host. While that host is down, the connector is down.
- Addressing is IPv4.
- Throughput depends on the size of the host. AWS limits each tunnel to 1.25 Gbit/s.
If it does not come up
| What you see | What to check |
|---|---|
| The host is not offered in step 1 | Its IPsec service is older than 0.3.0. Update it under Host updates. |
| A warning that the file is for another customer gateway | The customer gateway in AWS was created with a different address than the host's. Create it again with the address the dashboard shows. |
| A message about an overlap when creating | The VPC network overlaps a VPN subnet or another tunnel on the host. Networks must be distinct. |
| Stays offline | In AWS, check that the tunnel options allow the settings from step 2, and that the keys were not changed after you downloaded the file. |
| Failed | The host did not take the change. Check that it is online and that it does not already route one of the cloud networks elsewhere, then save the connector again. |
| Online, but the VPC does not answer | Route propagation on the VPC route table, the security groups of the instances, and split tunnelling on the server group. |
| Degraded for a long time | The tunnel status of the VPN connection in AWS. |
If the connector still does not come up, contact us with the name of the connector and the time you tried.