Tutorial: Connect AWS VPC to CloudConnexa with IPsec using Transit Gateway⁠

This tutorial walks you through setting up an IPsec tunnel between your AWS environment and CloudConnexa using a Transit Gateway.

You'll complete steps in both the AWS Console and the Cloud Connexa Administration Portal. To make this easier to follow, each step is labeled with an icon:

  • ☁️ AWS Console steps — performed in AWS

  • 🔐 CloudConnexa steps — performed in CloudConnexa

Use this configuration when you need connectivity across multiple VPCs, shared services, or internet-bound traffic through CloudConnexa.

To complete this setup, you'll configure:

  • A Transit Gateway to act as a central routing hub.

  • A Transit Gateway attachment to connect your VPC.

  • A site-to-site VPN connection between AWS and CloudConnexa.

  • Routing tables for:

    • Your VPC subnets.

    • The Transit Gateway.

  • (Optional) A NAT Gateway for internet-bound traffic from private subnets.

  • Tunnel configuration using an AWS-generated configuration file.

Once configured, users and networks connected to CloudConnexa can securely access resources in your AWS environment.

Overview⁠

In this setup, AWS Transit Gateway acts as a central routing hub that connects:

Compared to a virtual private gateway, a Transit Gateway supports broader and more flexible connectivity.

Before you begin⁠

  • Ensure you have a CloudConnexa account and Cloud ID.

  • Ensure your AWS VPC and subnets are configured.

  • Ensure you have permissions to create AWS networking resources.

🔐 Step 1: Create a Network (CloudConnexa)⁠

  1. Sign in to your WPC's Administration portal by entering your Cloud ID in a web browser (for example, company_name.openvpn.com).

  2. Navigate to Networks → Networks.

  3. Click Add Network.

  4. Select at least one Network Scenario. Refer to these tutorials for details:

  5. Click Continue.

  6. For the Network Configuration, enter a name and description (optional).

  7. Select IPsec as the Connector Tunneling Protocol.

  8. For the Connector, enter a name and description (optional).

  9. Click Next.

🔐 Step 2: Select AWS as the platform (CloudConnexa)⁠

In the Network Configuration Wizard, you'll begin configuring your AWS VPC.

2.1 Select the AWS platform⁠

  1. In Platform to Connect, select AWS. Refer to CloudConnexa Connectors and About Network Connectors.

    Instructions will appear on how to configure IPsec connectivity with CloudConnexa.

  2. Review the step-by-step guide.

  3. Click Next.

2.2 Review AWS configuration details⁠

CloudConnexa displays the values required for AWS configuration.

  1. Note the following values from AWS Configuration Details:

    • CloudConnexa Public IP Address

    • Target Gateway

    • Virtual Private Gateway / Transit Gateway

    • Customer Gateway

    • Routing Options

    • Static IP Prefixes

  2. You will use these values when configuring AWS resources.

☁️ Step 3: Configure AWS resources (AWS Console)⁠

Set up the AWS components required for Transit Gateway-based VPN connectivity.

3.1 Create a Transit Gateway⁠

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. Navigate to Transit Gateways.

  3. Click Create transit gateway.

  4. Configure settings as needed.

  5. Click Create transit gateway.

3.2 Create a site-to-site VPN connection⁠

  1. Navigate to Site-to-Site VPN connections.

  2. Click Create VPN connection.

  3. Configure:

    • Target gateway type: Select Transit gateway, and select the new transit gateway.

    • Customer gateway: Select New, and enter CloudConnexa values.

    • Routing options: Select Static.

  4. For Static IP Prefixes, copy and paste the Static IP Prefixes displayed on the CloudConnexa Administration Portal's Connector Configuration page, as shown in AWS Configuration Details.

  5. Click Create VPN connection.

3.3 Attach your VPC to the Transit Gateway⁠

  1. Navigate to Transit Gateway attachments.

  2. Click Create transit gateway attachment.

  3. Select the new transit gateway for the Transit gateway ID.

  4. Configure your transit gateway attachment as needed for your VPC and subnets.

  5. Click Create transit gateway attachment.

3.4 Create a NAT Gateway (for internet-bound traffic)⁠

  1. Navigate to NAT gateways.

  2. Click Create NAT gateway.

  3. Configure the NAT gateway for your VPC and associate it with an Elastic IP.

  4. Click Create NAT gateway.

3.5 Configure VPC route tables⁠

Configure the private subnet route table

This route table is used by resources that don't have direct internet access.

  1. Navigate to Route tables.

  2. Select the route table associated with your private subnet.

  3. Click Edit routes.

  4. Add the following routes:

    • Destination:0.0.0.0/0 → Target: NAT Gateway

    • Destination: 100.96.0.0/11 → WPC Subnet Target: Transit Gateway

    • Destination: 100.80.0.0/12 → Domain Routing Subnet Target: Transit Gateway

  5. Click Save changes.

Configure the public subnet route table

This route table is used by resources that can access the internet directly.

  1. Navigate to Route tables.

  2. Select the route table associated with your public subnet.

  3. Click Edit routes.

  4. Ensure the following routes are present:

    • Destination: 100.96.0.0/11 → WPC Subnet Target: Transit Gateway

    • Destination: 100.80.0.0/12 → Domain Routing Subnet Target: Transit Gateway

  5. Click Save changes.

3.6 Configure Transit Gateway route table⁠

  1. Navigate to Transit gateway route tables.

  2. Click on the route table for your new transit gateway.

  3. Click the Routes tab.

  4. Create the following static routes:

    • 0.0.0.0/0 (default route, points to the VPC resource)

    • 100.96.0.0/11 (WPC subnet, points to the VPN resource)

    • 100.80.0.0/12 (Domain routing subnet, points to the VPN resource)

3.7 Allow CloudConnexa traffic in your Security Groups⁠

For CloudConnexa users and networks to reach resources in your VPC, the Security Groups attached to those resources (for example, EC2 instances and RDS databases) need an inbound rule that allows traffic from CloudConnexa. Without this rule, the tunnel shows Connected, but the resources don’t respond.

For each Security Group attached to a resource you want to reach over the tunnel:

  1. Open the Amazon EC2 console and navigate to Security Groups.

  2. Select the Security Group, then select the Inbound rules tab.

  3. Select Edit inbound rules.

  4. Select Add rule and configure:

    • Type: The protocol and port your resource uses (for example, SSH or HTTPS), or All traffic.

    • Source: Custom, then enter your WPC subnet (default: 100.96.0.0/11).

  5. If you use Domain Routing, add a second rule with your Domain Routing subnet (default: 100.80.0.0/12) as the source.

  6. Select Save rules.

3.8 Download the AWS configuration file⁠

  1. Navigate to Site-to-Site VPN connections.

  2. Select your new VPN connection.

  3. Click Download configuration.

  4. Select Generic for the customer gateway device.

  5. Download the file.

🔐 Step 4: Configure the Network Connector (CloudConnexa)⁠

In this step, configure the IPsec tunnels on the CloudConnexa side using the AWS configuration.

CloudConnexa supports two tunnels for high availability. You can configure them manually or upload the AWS configuration file.

4.1 Configure CloudConnexa tunnel⁠

Return to the CloudConnexa network wizard configuration to set up the CloudConnexa tunnel. Choose to upload a file or a manual configuration:

4.2 Verify connectivity⁠

  1. Click Test Connection 1.

    CloudConnexa attempts to establish a connection to your AWS network.

  2. Check the connection status:

    • Connected — The tunnel is successfully established.

    • Offline — The connection failed or hasn't been established yet.

  3. Click Test Connection 2 (if configured).

  4. Check the connection status:

    • Connected — The tunnel is successfully established.

    • Offline — The connection failed or hasn't been established yet.

  5. CloudConnexa attempts to establish a connection to your AWS network.

🔐 Step 5: Complete the Setup (CloudConnexa)⁠

  1. Click Finish to complete the Network configuration.

  2. Confirm that:

    • The Network is created.

    • The Connectors shows a Connected status.