Open In App

Site-to-Site VPN Connection in Azure

Last Updated : 03 Apr, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

The site to Site connection is used to connect one site(let’s say On-cloud) to another site(let’s say On-premise). This feature is used mostly when you do some computation in a Cloud Server and some in the On-Premise server but treat both as one. In such cases, we can establish a connection between them securely using this feature.

Steps to Set up the On-Cloud Site-to-Site Connection

Step 1: Create a Resource Group. Search for Resource Group then Click on Create Resource Group and give a subscription, resource group, and region.

create resource group

 

Step 2: Create Virtual Network. Search Virtual Network, and click on create a new virtual network.

Give the Resource Group Name and Virtual Network Group a name. Give region name (“Remember to give the same region as that of resource group). Keep all other things default and Click on review and create In this, I have given the virtual network IP as 10.0.0.0/16

configure virtual network

 

Create a subnet under it. Go to the virtual network created just now->click on subnet->click on “+Gateway”->give IP (I have given 10.0.255.0/24).

create subnet

 

Step 3: Create a Local Network Gateway. Search Local Network Gateway and Click on create. Give the subscription name and Region (same as that of your resource group). Give Endpoint (here we choose IP address as Endpoint).

create local network gateway

 

Step 4:- Create Virtual Network Gateway. Search Virtual Network Gateway and give it a name, specify the subscription name, and region. Now choose Gateway type as VPN and VPN type as Route-based.

Choose the Virtual Network created already in the same resource group or create a new one. In public IP address choose to Create new and then Give the IP address a name. Now Choose Availability zone as Zone-redundant. (Keep all other things as it is). Now Click on Review + Create

create virtual network gateway

 

create virtual network gateway

 

Step 5: Click on the created Virtual Network Gateway. Go to connections and Click on “+Add”.

created gateway

 

Step 6: Give it a name. Choose the connection type as Site-to-Site. Now, choose the Local Network Gateway. In the shared key give the key of your on-premise site and Click on ok and it’s Done On-cloud site configuration.

adding connection

 


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads