AWS Redundant Tunnels - Virtual Private Gateway
  • 30 Jan 2024
  • 4 Minutes to read
  • Contributors

    AWS Redundant Tunnels - Virtual Private Gateway


      Article Summary

      Introduction

      This guide will walk you through the steps to set up redundant VPN tunnels between your Harmony SASE network and your AWS Virtual Private Gateway environment. This ensures higher availability for your network connections.

      Note: This setup specifically aids in achieving redundancy by utilizing two independent gateways.


      Breakdown of topics:

      1. Pre-requisites

      2. Configuration Steps

      3. Verifying the Setup

      4. Troubleshooting

      5. Support Contacts

      Pre-requisites

      To successfully follow this guide, you should have:

      An active Harmony SASE account and network.
      The Harmony SASE app is installed on your devices.
      An active AWS account with the necessary permissions.

      Configuration Steps

      Create Harmony SASE  Gateways

      1. Your Harmony SASE Network will need to have at least two different gateways in the same network, as listed below.
      Important notes
      • These gateways can be deployed in two separate Regions for comprehensive ISP redundancy 
      • The network can be scaled up, and adding another region should not affect the connection

      Create a Virtual Private Gateway

      Note
      • You can skip this step if you already have a Virtual Private Gateway in your AWS region already
      1. On the left pane, under Virtual Private Network (VPN) click on Virtual Private Gateways and then Create a Virtual Private Gateway.
      2. Create a Virtual Private Gateway with Default Settings
      3. Select the newly created Virtual Private Gateway, on top click on "Actions" and "Attach to VPC"
      4. A pop-up will appear, select the relevant VPC from the list


      Create two Customer Gateways

      1. On the left pane, under Virtual Private Network (VPN) click on Customer Gateway and then Create Customer Gateway.
      2. Routing is Dynamic, under IP Address, enter the first Harmony SASE Gateway IP
        You can keep the BGP AS Number for the Harmony SASE gateway at 65000.

      3. Repeat the above steps, this time, under IP address use the Second Harmony SASE Gateway IP

      Create two Site-to-Site VPN connections

      1.  In your AWS VPC under VIRTUAL PRIVATE NETWORK(VPN) Click Site-to-Site VPN Connections, then Create VPN Connection. 
      2. Under Target Gateway Type select Virtual Private Gatewayfor Virtual Private Gateway select the firstVirtual Private Gateway created.
        For Customer Gateway, select Existing, and under Customer Gateway ID pick the first Customer Gateway created.
        Routing is Dynamic (BGP).
        The rest of the options should remain unchanged.
      3. Click Download Configuration.
      4. Be sure to choose Generic under Vendor, and Ikev2 for Ike Version.
        VPN_Connections___VPC_Management_Console.png
      5. Download and rename the file Tunnel1.txt
      6. Repeat steps 1-5, this time, select the other Customer Gateway.
      7. Rename the second file you downloaded Tunnel2.txt

      Creating the High Availability Harmony SASE Tunnel

      1. In Your Harmony SASE Admin console, Navigate to your network.
      2. Click "..." next to one of the gateways and select Add Tunnel.
      3. Choose IPSEC Site-2-Site Tunnel, then Continue.
      4. Select Redundant Tunnels, and afterward click Continue.
      5. Select a logical name for your tunnel, 
        • For example, if your Transit gateway is located in the US-East region of AWS, you could name the tunnel "USEast". If this is your Staging environment, call it "Staging".
      6. Copy the values for the first tunnel from Tunnel1.txt:
        • Shared Secret: Pre-Shared Key
        • Harmony SASE gateway Internal IP: Inside IP Addresses of Customer Gateway.
        • Remote Public IP & Remote ID: Outside IP Addresses of Virtual Private Gateway.
        • Remote Gateway internal IP: Inside IP Addresses of Virtual Private Gateway. The IP on AWS side has a subnet (/30) that should be discarded when pasting.
        • Remote Gateway ASN: BGP Configuration Options of Virtual Private Gateway ASN from file.
        • On Harmony SASE your Tunnel page should look like this:
      7. Repeat step 5 for the second Tunnel, this time using the values from Tunnel2.txt.
      8. Under Shared Settings, you'll want to make sure to select Any(0.0.0.0/0) for both sides. ASN number should remain the same for the Harmony SASE side.
      9. Under Advanced Settings match the following:
      10.  Click Add Tunnel.

      Creating Static Routes

      1. Navigate to VPC -> Select the corresponding VPC that is attached to the Virtual Private Gateway-> Select the Main Route Table for the VPC.
      2.  Edit the main Route Table for the VPC and add the subnet mask of your Harmony SASE network as the destination with the Virtual Private Gateway as the target (Route for reverse traffic).
        • Please note that this might not the Main Route Table for the VPC; In that case, you will need to locate each subnet that's associated with the VPC and add the reverse route for the Perimeter81 internal subnet range.
      3. Navigate back to your Harmony SASE network and add the route to the corresponding subnet in AWS.
        You'll want to select "..." next to your network and then Routes Table.
      4. Once that has been completed, be sure to select "Apply Configuration" and let the route changes propagate on the Harmony SASE network.
        Route Shared
        Please ensure that the route added matches the route transmitted by BGP. Any discrepancies, such as incorrect subnetting or supernetting, are strictly prohibited.

      Verifying the Setup

      Once set up, your redundant tunnels should be active. To confirm, go to your Harmony SASE dashboard, find the tunnels you started, and ensure their status shows "Up". Connect to your network with the Harmony SASE agent and try accessing resources in your AWS environment.

      Troubleshooting

      If you encounter issues during or after the setup, try reviewing your settings to ensure everything matches the instructions. In particular, check the IP addresses and other details you entered during setup. If issues persist, please consult our dedicated support.

      Support Contacts

      If you have any difficulties or questions, don't hesitate to contact Harmony SASE's support team. We offer 24/7 chat support on our website at Perimeter81.com, or you can email us at support@perimeter81.com. We're here to assist you and ensure your VPN tunnel setup is a success.


      Was this article helpful?