Site-to-Site VPN Connection between Azure and AWS Demo
Site-to-Site VPN Connection between Azure and AWS Demo
Step 1: Configuring
Azure
- Crate
a resource group on Azure to deploy the resources on that
Resource Group Name: Azure-Aws
Region: East-US
- Create
Virtual Network
Resource Group Name: Azure-Aws
Region: East-US
VNet Name: vnet-azure
VNet IPv4 Address Space: 172.20.0.0/16
Subnet Name: subnet-01
Subnet IPv4 Address Space: 172.20.1.0/24
- Create
the VPN Gateway
VPN Gateway Name: VPN-Azure-Aws
Region: East-US
Gateway Type: VPN
SKU: default
Generation: Generation 1
Virtual Network: vnet-azure
Public IP Address: pip-vpn-Azure-Aws
Public IP Address Type: default
Assignment: Staic
Enable active-active mode: Disabled
Configure BGP: Disabled
Configuring AWS
- Create
the Virtual Private Cloud (VPC) in AWS
Name: my-awsvpc-01
IPv4 CIDR: 10.20.0.0/16
- Create
a subnet inside the VPC (Virtual Network)
Name: my-awssubnet-01
VPC Name: my-vpc-01
VPC IPv4 CIDR: 10.20.0.0/16
IPv4 CIDR: 10.20.1.0/24
- Create
a customer gateway pointing to the Public IP Address of Azure VPN Gateway
IP address: Public IP Address of
Azure VPN Gateway
Rest keep everything as default
- Create
the Virtual Private Gateway then attach to the VPC
Name: vpg-Aws-Azure
- Create
a site-to-site VPN Connection
Name: VPN-Aws-Azure
Target gateway type: Virtual private
gateway (Select your Virtual private gateway created in 7)
Customer gateway: Existing (Select
your VCustomer gateway created in 6)
Routing options: Static
Static IP prefixes: 172.20.1.0/24
Leave rest of them as default
- Download
the configuration file
Vendor: Generic
Platform: Generic
Software: Vendor Agnostic
In this configuration file you will
note that there are the Shared Keys and the Public Ip Address for each of one
of the two IPSec tunnels created by AWS.
Connecting Azure
and AWS
- Create
the Local Network Gateway in Azure
Name: Azure-Aws-tunnel-1
Resource Group Name: Azure-Aws
Region: East-US
IP address: Get the Outside IP
address from the configuration file downloaded
Address Space(s): 10.20.0.0/16
Name: lng-Azure-Aws-tunnel-2
Resource Group Name: Azure-Aws
Region: East-US
IP address: Get the Outside IP
address from the configuration file downloaded
Address Space(s): 10.20.0.0/16
- Create
the connection on the Virtual Network Gateway in Azure
Name: connection-Azure-Aws
Connection Type: Site-to-Site
Local Network Gateway: Select the
Local Network Gateway which you created in 10.
Shared Key: Get the Shared Key from
the configuration file downloaded in 9.
Wait till the Connection Status
changes to - Connected
In the same way, check in AWS Console
wheather the 1st tunnel of Virtual Private Gateway UP.
- Create
Internet Gateway and Attach it to VPC in AWS:\
Name: my-internet-gateway
- Now
let's edit the route table associated with our VPC
Add the route to Azure subnet through
the Virtual Private Gateway
Destination: 172.20.1.0/24
Target: Virtual Private Gateway that
we created.
Or
(Add route propagation enable)
also add internet gateway
Destination: 0.0.0.0/0
Target: Internet Gateway that we
created in 12.
- Create
VMs in both Azure and AWS and Test the connection.
Comments
Post a Comment