Tutorial: Connect AWS to CloudConnexa with IPsec using VPG⁠

This tutorial walks you through connecting your AWS VPC to CloudConnexa using an IPsec tunnel with a Virtual Private 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

To complete this setup, you'll configure:

  • A Customer Gateway to represent the CloudConnexa endpoint.

  • A Virtual Private Gateway attached to your VPC.

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

  • Tunnel configuration using an AWS-generated configuration file.

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

Before you begin⁠

  • Ensure you have a CloudConnexa account and Cloud ID.

  • Ensure you have access to your AWS account and VPC.

  • Ensure your VPC is created and properly configured, including routing and subnets.

🔐 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 required AWS components to establish the IPsec tunnel.

3.1 Create a Customer Gateway⁠

Create an AWS customer gateway as the IPsec endpoint for the CloudConnexa Region.

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

  2. Navigate to Customer gateways.

  3. Click Create customer gateway.

  4. Enter:

    • Name tag (optional): This creates a tag with a Name key and the value that you specify.

    • BGP ASN: Enter a Border Gateway Protocol Autonomous System Number (ASN) for your customer gateway.

    • IP address: Use the CloudConnexa Public IP Address displayed for your network connector configuration.

  5. (Optional) For Device, enter a name for the customer gateway device associated with this customer gateway.

  6. Click Create customer gateway.

3.2 Create a Virtual Private Gateway⁠

To establish an IPsec VPN connection between your VPC and CloudConnexa, create an AWS target gateway. This target gateway will be a virtual private gateway.

  1. Navigate to Virtual private gateways.

  2. Click Create virtual private gateway.

  3. (Optional) Enter a name.

  4. Keep the default ASN.

  5. Click Create.

  6. Select the VPC, then click Actions → Attach to VPC.

  7. Select your VPC and confirm.

3.3 (Optional) Enable route propagation⁠

Turn on route propagation on your AWS VPC route table if you want site-to-site connectivity between your VPC and other private networks connected to CloudConnexa.

  1. Navigate to Route tables.

  2. Select your route table associated with the subnet.

  3. On the Route propagation tab, click Edit route propagation.

  4. Select your new virtual private gateway.

  5. Save changes.

    Routes from your VPN connection are automatically added to the route table and directed to the virtual private gateway when the connection is active.

3.4 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.5 Create the VPN connection⁠

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

  2. Click Create VPN connection.

  3. Configure:

    • Target gateway type: Select Virtual private gateway, and select the new virtual private gateway.

    • Customer gateway: Select the newly created customer gateway.

    • 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.6 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.