Creating a Site to Site VPN - Kahuna915/Capstone-Cloud-Integration GitHub Wiki

GUI

After a VPC has been created, you can now create a site-to-site VPN. If you have not created a VPC, please do so before continuing.

Create a Customer Gateway

A customer gateway is going to provide information to AWS about your on-prem network

  1. At the VPC console go to the navigation pane, choose Customer Gateways, and then Create Customer gateway image
    image
  2. Fill out the detail required for the customer gateway (Name, BGP ASN, IP address or Certificate ARN)
    image
  3. Verify Customer Gateway has been created
    image

Create a Transit Gateway or Virtual Private gateway

The target gateway is going to establish a VPN connection between the VPC and the on-prem network.

Creating a Virtual Private Gateway

  1. At the VPV console go to the navigation pane, chose Virtual Private gateways, and then create a VPG
    image
    image
  2. Fill out the details required (MName and ASN)
    image
  3. Verify it is created
    image
  4. Attach it to your VPC
    image
    image

Configure Routing

This step will enable instances in the VPC to reach your customer gateway

  1. Go to the public route table, select Route Propagation, and edit route propagation
    image
  2. Select the created customer gateway and click save image
  3. Verify
    image

Update Security Groups and Create the Site-to-Site VPN

You will want to update the security groups for the instances to allow for ssh, rdp, and ICMP

Creating the Site-to-Site VPN

  1. On the VPC dashboard, select Site-to-Site VPN connections and select create VPN connection
    image
    image
  2. Name the VPN, Select the Gateway (In this example we used a VPG), and Select a Customer Gateway
  • Name
    image
  • Virtual Private Gateway
    image
  • Customer Gateway
    image

If you want, you can edit the tunnel 1 and 2 options, creating a preshared key and the inside IPv4 CIDR block, as well as enabling logging.

image

  1. Create VPN Connection and Verify
    image