AWS virtual private gateway¶
Connect a Vipilink network to an Amazon VPC with one IPsec tunnel between a Vipilink gateway and an AWS virtual private gateway. Routing is static, and one Vipilink gateway is enough.
If you need automatic failover, use AWS virtual private gateway with redundant tunnels instead. It uses two Vipilink gateways and BGP.
Before you start
- A Vipilink network with at least one active gateway.
- An Amazon VPC, and permission to create VPN resources in it.
- The Vipilink network subnet and the VPC CIDR must not overlap.
Example used on this page¶
| Item | Example value |
|---|---|
| Vipilink network | Remote Access, subnet 10.13.0.0/16 |
| Vipilink gateway | Frankfurt |
| AWS Region | US East (N. Virginia) |
| Amazon VPC | app-vpc, CIDR 10.50.0.0/16 |
Replace these with your own values. AWS resources created for the Vipilink connection get names that start with vipilink-, so you can tell them apart from your own resources.
All the AWS pages used below are in the VPC console, in the left menu under Virtual private network (VPN).
Step 1: Create a virtual private gateway¶
The virtual private gateway is the VPN endpoint on the AWS side.
- In the AWS console, open VPC and go to Virtual private network (VPN) → Virtual private gateways.
-
Click Create virtual private gateway.
-
Enter a Name tag, for example
vipilink-vgw, and keep Amazon default ASN. - Click Create virtual private gateway.
Attach the new gateway to your VPC:
-
Select the gateway, then click Actions → Attach to VPC.
-
Choose your VPC under Available VPCs and click Attach to VPC.
Step 2: Create a customer gateway¶
The customer gateway tells AWS where your Vipilink gateway is.
-
In the Vipilink console, go to Networks → Networks, open your network and copy the public IP shown on the gateway card.
-
In the AWS console, go to Virtual private network (VPN) → Customer gateways and click Create customer gateway.
-
Fill in the form:
Field Value Name tag vipilink-gw-frankfurtBGP ASN Keep the default. It is not used with static routing. IP address The Vipilink gateway public IP you copied -
Click Create customer gateway.
Step 3: Create the Site-to-Site VPN connection¶
-
Go to Virtual private network (VPN) → Site-to-Site VPN connections and click Create VPN connection.
-
Fill in the form:
Field Value Name tag vipilink-vpn-frankfurtTarget gateway type Virtual private gateway Virtual private gateway vipilink-vgwCustomer gateway Existing, then choose vipilink-gw-frankfurtRouting options Static Static IP prefixes Your Vipilink network subnet, for example 10.13.0.0/16Leave the other fields at their defaults.
-
Expand Tunnel 1 options and choose Edit tunnel 1 options.
-
Set DPD timeout (seconds) to
60. Leave the other tunnel options at their defaults. -
Click Create VPN connection. Wait until the State changes to Available. This can take a few minutes.
Step 4: Download the configuration file¶
Vipilink reads this file and fills in the tunnel settings for you.
-
Select the VPN connection (1) and click Download configuration (2).
-
Choose these options and click Download:
Field Value Vendor Generic Platform Generic Software Vendor Agnostic IKE version ikev2
Keep the file private
The configuration file contains the tunnel pre-shared keys. Store it somewhere safe and delete it when you are done.
Step 5: Route VPC traffic to Vipilink¶
Tell the VPC to send traffic for the Vipilink network through the virtual private gateway.
- Go to Virtual private cloud → Route tables (1) and select the route table used by your VPC subnets (2).
-
Open the Routes tab (3) and click Edit routes (4).
-
Click Add route:
- Destination: your Vipilink network subnet, for example
10.13.0.0/16 - Target: Virtual Private Gateway, then choose
vipilink-vgw
- Destination: your Vipilink network subnet, for example
- Click Save changes.
Step 6: Add the tunnel in Vipilink¶
-
In the Vipilink console, open your network. On the gateway card, click the ... menu and choose Add Tunnel.
-
Choose IPsec Site-to-Site Tunnel (1) and click Continue. Then choose Single-Tunnel (2) and click Continue.
-
Click Upload and select the configuration file from Step 4. Vipilink fills in Pre-Shared Key, Remote Public IP and Remote ID.
- Enter a Tunnel Name, for example
AWSStatic. Use letters and numbers only. -
Keep Vipilink Side Subnets and Remote Side Subnets set to Any.
-
Keep the Advanced Settings defaults. AWS accepts them:
Setting Value IKE Version V2 IKE Lifetime 8h Tunnel Lifetime 1h Dead Peer Detection Delay / Timeout 10s / 30s Encryption (Phase 1 and 2) aes256 Integrity (Phase 1 and 2) sha256 Diffie-Hellman Groups (Phase 1 and 2) 14 -
Click Add Tunnel.
Step 7: Route Vipilink traffic to the VPC¶
Tell Vipilink which subnets are behind the tunnel.
-
On the network card, click the ... menu and choose Route Table.
-
Click Add Routes, choose your tunnel, enter the VPC CIDR (for example
10.50.0.0/16) and click Add Routes. -
The route appears in the table with the type Manual.
Step 8: Check the connection¶
-
In the Vipilink console, the tunnel card shows Up.
-
In the AWS console, select the VPN connection and open Tunnel details. Tunnel 1 shows Up.
Tunnel 2 shows Down
This is expected. AWS creates two tunnels for every VPN connection, and a single-tunnel setup uses one of them. AWS also shows a banner saying the connection is not using both tunnels. If you need redundancy, use AWS virtual private gateway with redundant tunnels.
-
Connect a device to the network with the Vipilink agent and reach a resource in the VPC, for example with
pingor SSH to a private IP.
Troubleshooting¶
| Problem | What to check |
|---|---|
| Tunnel stays Down | The customer gateway IP matches the Vipilink gateway public IP. The file you uploaded belongs to this VPN connection. |
| Tunnel is Up but nothing responds | Routes exist on both sides (Step 5 and Step 7). Security groups and network ACLs in AWS allow traffic from the Vipilink network subnet. Vipilink firewall rules allow the traffic. |
























