Note: If your device/service supports SHA256 and DH group 14, it is recommended to use these settings instead.
Please note, the choice between Transit Gateway or a simple Virtual Gateway depends on your AWS architecture. If you are not sure, we encourage you to visit AWS's official documentation.
Creating the Transit Gateway
- Go to the VPC section in the AWS Console
AWS Console services menu showing VPC and networking options with search functionality
- Under the left panel, select Transit Gateways
AWS VPC Console navigation menu with Transit gateways option highlighted for site-to-site connectivity
- Click on Create transit gateway at the top
AWS Transit Gateways dashboard showing empty state with create gateway button and network setup guide
- Fill in the following details:
AWS Transit Gateway creation form with name, ASN, DNS, and route configuration settings
- Name tag - Insert the name of the Transit Gateway
- You can keep the default parameters for the rest of attributes
- Click on Create transit gateway
Creating the Transit Gateway attachments
- On the left pane, select Transit Gateway Attachments
AWS VPC navigation menu with Transit gateway attachments option highlighted for network connectivity
- Click on Create transit gateway attachment at the top
AWS Transit Gateway Attachments dashboard showing empty state with create attachment button
- Fill in the following information and select Create transit gateway attachment
AWS Transit Gateway attachment creation form with name tag, gateway ID, VPC selection, and DNS support options
- Name tag: Insert the name of the Transit Gateway Attachment
- Transit gateway ID: Pick the newly created Transit gateway
- Attachment Type: VPC
- VPC ID: Select the relevant VPC
- You can keep the other attributes in their default values
Note: Please repeat the above procedure for each of the VPCs that you would like to gain access to.
Creating the Transit Gateway VPN attachment
- Click on Create transit gateway attachment at the top
AWS Transit Gateway Attachments page showing empty state with create attachment button and Network Manager registration prompt
- Fill in the following details
AWS Transit Gateway attachment form with name tag, gateway ID, VPC selection, DNS, security, and IPv6 support options
- Transit Gateway ID: Choose your newly created Transit Gateway
- Attachment type: VPN
- Customer Gateway ID: New
- IP Address: the IP address of your NordLayer server with a dedicated IP
- BGP ASN: Leave default values
- Routing Options: Static
- For the other attributes, leave them in their default values
- Click on Create transit gateway attachment
Note: This may take several minutes
Configuring the routing on AWS platform
- Go to the VPC section in the AWS Console. Under Transit Gateways, select Transit Gateway Route Tables
AWS VPC navigation menu with Transit gateway route tables option highlighted for routing configuration
Choose the relevant Transit Gateway Route Table record
On the bottom, choose Propagations
AWS Transit Gateway route table interface showing propagations tab for routing configuration managementVerify that all of the Transit Gateway Attachments are included. If you have 2 VPCs, this is how it should look like:
AWS Transit Gateway route table showing enabled VPN and VPC propagations for network routing
In case one of the Transit Gateway Attachments is missing, click on Create propagation and add the missing record(s).
On the bottom, select Associations
Verify that all of the Transit Gateway Attachments are included (same as step 4)
At the bottom, near the Propagations tab, select Routes
AWS Transit Gateway route table tabs showing Details, Associations, Propagations, Prefix lists, Routes, and Tags navigationClick on Create static route and fill in the following details:
AWS Transit Gateway static route creation form with CIDR, route type, and attachment configuration
- CIDR: Insert the NordLayer subnet, which is 10.6.0.0/20
- Choose attachment: Choose the VPN attachment
- On the left side, under Virtual Private Cloud, click on Route Tables
AWS VPC dashboard navigation menu with Route tables option highlighted for network routing configuration
Select the Route Table for one of the attached VPCs
On the bottom, click on Routes
Click on Edit Routes, in a newly opened window select Add route and fill in the following details:
AWS VPC route table editor showing destination CIDR blocks with internet and virtual private gateway targets
- Destination: Your NordLayer network subnet - 10.6.0.0/20
- Target: Choose Transit Gateway and pick the relevant Transit Gateway
- Click on Save changes
Repeat the steps 10-12 for other attached VPCs.
Collecting the tunnel configuration from the AWS Console
- Return to Site-to-Site VPN Connections and select Download Configuration
AWS VPC console showing two available site-to-site VPN connections with virtual private gateways
- Fill in the following details and click on "Download".
AWS VPN configuration download form with Strongswan vendor and ikev2 settings selected
Obtain IPSEC Tunnel #1 details
- Open the configuration file which you have just downloaded and scroll until conn Tunnelid as shown in the screenshot below:
Strongswan VPN tunnel configuration file showing IKEv2 settings and encryption parameters
- Make a note of these details as they will be needed for the VPN server configuration:
- IKE version: IKEv2 (recommended)
- Remote IP (right): Your AWS Remote IP
- Encryption settings IKE Encryption and DH Group
- Local IP (-ll): Local Tunnel IP
- Remote IP (-lr): Remote Tunnel IP
- Mark (-m): specified in the config
- Pre-shared key (PSK): Your Pre-Shared Key / Secret
Obtain IPSEC Tunnel #2 details
- Within the same configuration file, scroll down to locate the section labeled conn Tunnel2.
- Take note of the following details as they will be required for configuring Site-to-Site connection:
- IKE version: IKEv2 (recommended)
- Remote IP (right): Your AWS Remote IP
- Encryption settings IKE Encryption and DH Group
- Local IP (-ll): Local Tunnel IP
- Remote IP (-lr): Remote Tunnel IP
- Mark (-m): specified in the config
- Pre-shared key (PSK): Your Pre-Shared Key / Secret
Ending note:
Once you have obtained all necessary details from the AWS config – IPSEC Tunnel #1 and IPSEC Tunnel #2 – please create a setup in Sites tab of the NordLayer Control Panel.
Note: In case you are experiencing different results, make sure that you have you carefully gone through all the steps. Having said that, in case the issue persists please feel free to contact our 24/7 customer support team.