How do create a VPN with Amazon VPC

0
321
How do create a VPN with Amazon VPC
How do create a VPN with Amazon VPC

You might need to create a secure VPN Connection between your office and cloud using AWS VPN service. I am showing here three main component to build this connection. Three main component are:1. Customer Gateways: This represent the customer office site connection. Here you need to specify your on-premises firewall public IP and routing type dynamic routing (BGP) or static routing2. Virtial Private Gateways: This represent VPN endpoint of AWS site connection.3. VPN Connection: This is based on the avobe two component which will provide downloadable configuration file that you can use to configure office firewall.
To Create VPN first go to the VPC console by clicking VPC from AWS console. 

How do create a VPN with Amazon VPC

From the left hand side click the « Customer Gateways »

How do create a VPN with Amazon VPC

Click Create Customer Gateway button

Click Create Customer Gateway button

How do create a VPN with Amazon VPC

Provide the Name tag which you can use to identify your office site. Next choose the Routing type (Static/Dynamic) you intent to use. I have used here Static routing. Finaly provide the public IP of your office on-premises firewall.

How do create a VPN with Amazon VPC

After the creating you will see the State available

How do create a VPN with Amazon VPC

Now from the left hand side click « Virtual Private Gateways ». 

How do create a VPN with Amazon VPC

Click « Create Virtual Private Gateway » and provide a name for the VPN in Amazon site that you are going to recognize 

How do create a VPN with Amazon VPC

After the creation it will looks like the picture below

How do create a VPN with Amazon VPC

Now Right click on the Name and left click « Attach to VPC »

Now Right click on the Name and left click « Attach to VPC »

How do create a VPN with Amazon VPC

Select the appropriate VPC that you want to communucate. Here I have selected the VPC that I created in « Customer Gateways »

How do create a VPN with Amazon VPC

Click « Yes, Attach »

How do create a VPN with Amazon VPC

It will take a while for attaching the VPC

How do create a VPN with Amazon VPC

Now Click « VPN Connections » from left hand side. 

How do create a VPN with Amazon VPC

Click « Create VPN Connection ». Provide a name that you can use for recognize later in Name tag. Select Virtual Private Gateway for Amazon side that we just created. Select Customer Gateway for Office site that we just created. Coose the routing option that you are goint to use. In our case I have selected « Static ». In Statit Prefix you can specify the private network behind your on-premises firewall, for example here I have used 10.0.76.0/24. Click « Yes,Create| button.

How do create a VPN with Amazon VPC

It will take a while to create.

How do create a VPN with Amazon VPC

After the Creation it will look like the following picture.

How do create a VPN with Amazon VPC

Now you can Download the configuration that you will need to perform in your office site. Click « Download Configuration ». Select vendor, Platform and Software.

How do create a VPN with Amazon VPC

Select vendor, Platform and Software that you have in your office site.

We are done with the VPN setup in Amazon site. The downloaded Configuration File attached here