Configuring a Site-to-Site IPSec Tunnel to AWS Transit Gateway

Follow

AWS Transit Gateway allows you to connect multiple VPCs (in the same region) using a single Site-to-Site connection (unlike the AWS Virtual Gateway which requires one Site-to-Site connection per VPC).

In order to establish a Site-To-Site IPSec VPN connection between your AWS server and Perimeter 81 network, please follow the steps below:

  

1. Configure the Tunnel in the AWS Console 

  1. Go to the VPC section in the AWS Console.
    mceclip6.png
  2. Under the left menu Transit Gateways section, go to Transit Gateways Attachments.
    1.png
  3. Click Create Transit Gateway Attachment.
    2.png
    Fill in according to the following:
    Screen_Shot_2019-10-31_at_10.15.33.png
    • Transit Gateway ID: Choose you Transit Gateway
    • Attachment type: VPN
    • Customer Gateway ID: New
    • IP Address: This can be obtained within the Perimeter81 Panel, under Network
      mceclip0.png
    • BGP ASN: Leave default values
    • Routing Options: Static
  4. Click Create Attachment. This may take several minutes.
  5. Under the left menu Virtual Private Network (VPN) section, go to Site-to-Site VPN Connections.

Click Download Configuration. Choose Strongswan and click Download.
export__1_.png

2. Configure the Tunnel in the Perimeter 81 Platform 

  1. Enter your Perimeter 81 Management Platform. Under the Network tab in the left menu, click on name of the network in which you'd like to set the tunnel. Locate the desired gateway, click the three dotted icon and press Add Tunnel and then IPSec Site-2-Site Tunnel.Screen_Shot_2019-08-27_at_14.06.15.png
  2. Open the configuration file that you have downloaded. Fill in the following fields according the file's content: Public IP (appears before the PSK), Remote ID (identical to Remote IP), Shared Secret (appears as PSK). The rest of the fields should be inserted according to the following:

    Screen_Shot_2019-08-27_at_14.23.01.png

  • Name: Enter the name you chose for the tunnel.
  • Perimeter 81 Gateway Proposal Subnets: by default this should be set to 10.255.0.0/16 
  • Remote Gateway Proposal Subnets: 0.0.0.0/0 or specify according to your customised settings.

    At the Advanced Settings section fill in:
    Screen_Shot_2019-08-27_at_14.21.57.png
  • IKE Version: V1
  • IKE Lifetime: 8h
  • Tunnel Lifetime: 1h
  • Dead Peer Detection Delay: 10s
  • Dead Peer Detection Timeout: 30s
  • Encryption (Phase 1): aes128
  • Intergrity (Phase 1): sha1
  • Diffie-Hellman Groups (Phase 1): 2
  • Encryption (Phase 2): aes128
  • Intergrity (Phase 2): sha1
  • Diffie-Hellman Groups (Phase 2): 2

3. Configure the Routing

  1. Go to the VPC section in the AWS Console. Under Transit Gateways, click Transit Gateway Route Tables.
  2. In the bottom Menu, go to the Routes tab.
    001.png
  3. Click Create Route (choose the transit gateway attachment we created earlier). Press Create propagation.
    003.png
  4. Go to the Routes tab and copy the CIDR that was propagated.
    002.png
  5. Open the Network tab at the Perimeter 81 Management platform. Click the three-dotted icon next to the Network in which you are configuring the tunnel and choose Route Table.
    Screen_Shot_2019-10-31_at_11.57.30.png
  6. Click Add Route, choose the tunnel which we have just configured and paste the internal subnet IP. Click Add route, then Apply Configuration.
    image20.png
  7. Go back to the AWS Console. Under Transit Gateways, click Transit Gateway Route Tables.
  8. Click the Associations tab at the bottom frame. Click Create association.
    1.png
  9. Choose the transit gateway that we have just created and click Create association.
    2.png
  10. Go to the Propagations and click Create propagation. Choose the newly created attachment and click Create propagation.
  11. Return to the AWS VPC Dashboard. Under the Virtual Private Cloud section choose Route Tables.
    image3.png
  12. Choose the route that relates to the subnet which you'd like to give access to (this can be checked under Subnets). On the bottom frame click the Routes tab.
    image8.png
  13. Click Edit Routes. Add a route from your Perimeter 81 network (commonly 10.255.0.0/16) to the transit gateway.
 
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.