VPN Access Gateway Selection by Geolocation of User

Overview

If you have a global workforce that needs to access the cloud with the best user experience, building a cloud network with GeoVPN access capability is the right solution for you.

The geolocation VPN feature combines the Aviatrix scale out VPN solution with latency-based routing to dynamically route VPN users to the nearest VPN access gateway based on the latency between the user and the gateways.

Note

GeoVPN service is currently only available for AWS cloud.

VPN Access Details

An example deployment in AWS is shown below. In this configuration, there are two VPN access gateways: one in us-west-2 and another in eu-central-1. Each VPN access gateway is fronted by a load balancer in AWS.

imageArchitecture

Let’s look at the difference between a standard VPN access service and VPN access service with the Geolocation feature enabled:

Standard VPN Service (without geolocation feature enabled)

Without the Geolocation feature enabled, when a user connects to the VPN service, they will connect to one of the two regions’ VPN gateway. Each gateway is independently administered, meaning users need a separate configuration profile for each region they will access.

In this configuration, an EU-based user would be given a configuration profile for the eu-central-1 load balancer. And, a US-based user will be provided with a us-west-2 configuration profile. If either user relocates or travels to the opposite region, they will need a separate configuration profile in that region and they will need to manually switch the active configuration profile.

imageWithoutGeoVPN

Geolocation VPN Service

With the Geolocation feature enabled, when a user connects to the VPN service, they are directed to a Route 53 that uses a latency-based routing policy to choose between the available regions.

In this configuration, both the EU-based user and the US-based user would be given the same configuration profile. This configuration profile will select the closest region automatically using a latency-based routing policy defined on the DNS record.

imageWithGeoVPN

Configuration Workflow

  1. Create a VPN gateway in each region.

    Important

    Enable ELB on each gateway that will be associated with the GeoVPN feature.

    Tip

    You must create at least one gateway to enable GeoVPN. You can add more gateways to the pool at any time.

  2. Once you have at least one VPN gateway created with ELB enabled, you are ready to proceed to the enable GeoVPN feature. Click on OpenVPN in the navigation menu and select Advanced.

  3. Click the GeoVPN tab.

  4. Select the Cloud Type and click on the Disabled status to Enable the GeoVPN feature.

    imageEnable

  5. Populate the fields:

imageEnablePopulate
  1. Click OK.

    imageComplete

    Note

    If enabling GeoVPN fails, make sure the Domain Name you enter is a registered name under AWS Route 53 in a public hosted zone. In addition, this Domain name must be hosted in the account that you have access privilege. If the domain name is hosted by another account, you will not be able to add DNS record.

  2. For each additional region, repeat these steps:

  • Click + Add New.

  • Select the ELB DNS Name.

  • Click OK.

    imageAddAdditionalELB

Tip

Add encrypted peering to connect regions.

Add Users

Once you have GeoVPN enabled, you can add users. Follow these steps to add users:

  • Click OpenVPN on the left sidebar.

  • Click VPN Users.

  • Click + Add New.

  • In the VPC ID / DNS Name dropdown menu, select the GeoVPN VPN service name created in the previous steps.

  • Enter the User Name and optionally the User Email.

  • Click OK.

    imageAddVPNUser

Managing the GeoVPN Configuration

Once you have GeoVPN feature enabled, you can centrally manage all the VPN gateways’ configuration under the GeoVPN service. Follow these steps to configure them:

  • Click OpenVPN on the left sidebar.
  • Click Edit Config.
  • In the VPC ID/VNet Name dropdown menu, select the GeoVPN service name created in the previous steps.
  • Update the VPN configuration regarding to your requirements.

Advanced Settings : Managing VPN Configuration for Individual DHCP Setup

GeoVPN can use DHCP Setting for DNS name resolution from the cloud private network where the VPN gateway is deployed. This reduces latency as DNS service is likely to be closer to the source of the VPN user location. Follow these steps to configure DHCP configuration for individual VPN gateway:

  1. Click**OpenVPN** on the left sidebar.
  2. Click Edit Config.
  3. In the VPC ID/VNet Name dropdown menu, select the specific VPC ID and LB/Gateway Name instead of GeoVPN service name.
  4. Update the supported VPN configuration as below regarding to your requirement in each VPN gateway.
  • Additional CIDRs

  • Nameservers

  • Search Domains

    Note

    The attributes “Additional CIDRs, Nameservers, and Search Domains” are able to be edited for individual LB//Gateway Name only if the split tunnel mode is selected under the GeoVPN service.

  1. Check this document for more info.

OpenVPN is a registered trademark of OpenVPN Inc.