{"id":4601,"date":"2023-01-31T11:59:28","date_gmt":"2023-01-31T19:59:28","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=4601"},"modified":"2023-01-31T11:59:31","modified_gmt":"2023-01-31T19:59:31","slug":"how-to-configure-site-to-site-vpn-gateway-connection-between-azure-and-on-premises-network","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=4601","title":{"rendered":"How To Configure Site-to-Site VPN Gateway Connection Between Azure and On-premises Network"},"content":{"rendered":"\n<p>When you are in hybrid cloud setup with azure, using site-to-site VPN gateway you can have better continuity for your workloads. in this post, I am going to demonstrate how to set up site-to-site VPN Gateway.<\/p>\n\n\n\n<p><strong>Requirements&nbsp;<\/strong><\/p>\n\n\n\n<p>Before start make sure you have following in place.&nbsp;<\/p>\n\n\n\n<p>1) <strong>VPN device<\/strong>&nbsp;\u2013 you need to have VPN device in on-premises to create the VPN connection with azure. the supported list of devices can found on&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/vpn-gateway\/vpn-gateway-about-vpn-devices\">here<\/a>. Also, you need to have the relevant knowledge to configure it on your device. I am not going to cover it in details here as settings are different based on the vendor.&nbsp;<\/p>\n\n\n\n<p>2) <strong>Static Public IP address<\/strong>&nbsp;\u2013 your VPN device should have external public IP address and it shouldn\u2019t be NAT.&nbsp;<\/p>\n\n\n\n<p>3) <strong>Valid Azure Subscription<\/strong>&nbsp;\u2013 Of because you need active Azure subscription. It can be paid or free trial.&nbsp;<\/p>\n\n\n\n<p><strong>Create Virtual Network&nbsp;<\/strong><\/p>\n\n\n\n<p>If you already have virtual network setup in your azure subscription, you will not need to do this step but make sure the settings are correct.&nbsp;<\/p>\n\n\n\n<p>1) Log in to the azure portal.<\/p>\n\n\n\n<p>2) Go to&nbsp;<strong>New &gt; Networking &gt; Virtual Network&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn1.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn1.png\" alt=\"vpn1\" class=\"wp-image-2231\"\/><\/a><\/figure>\n\n\n\n<p>3) Then click on&nbsp;<strong>create&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn2.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn2.png\" alt=\"vpn2\" class=\"wp-image-2232\"\/><\/a><\/figure>\n\n\n\n<p>4) In next page, it will open up the wizard with the VNet information. In their fill the information to match with your configuration.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn3.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn3.png\" alt=\"vpn3\" class=\"wp-image-2233\"\/><\/a><\/figure>\n\n\n\n<p><strong>Name<\/strong>&nbsp;\u2013 Name for the VNet<\/p>\n\n\n\n<p><strong>Address Space&nbsp;<\/strong>\u2013 IP range for the VNet. If you have multiple Address ranges, it can add later.&nbsp;<\/p>\n\n\n\n<p><strong>Subnet name<\/strong>&nbsp;\u2013 Name for the subnet you like to add&nbsp;<\/p>\n\n\n\n<p><strong>Subnet Address range&nbsp;<\/strong>\u2013 Subnet IP range (it must be within the Address Space listed before)<\/p>\n\n\n\n<p><strong>Resource Group<\/strong>&nbsp;\u2013 Can create new group or select existing group<\/p>\n\n\n\n<p><strong>Location&nbsp;<\/strong>\u2013 location of the VNet<\/p>\n\n\n\n<p>After that click on&nbsp;<strong>create<\/strong>&nbsp;continue.<\/p>\n\n\n\n<p>5) Once VNet created, can modify the address ranges and subnets.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn4.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn4.png\" alt=\"vpn4\" class=\"wp-image-2234\"\/><\/a><\/figure>\n\n\n\n<p><strong>Create Gateway Subnet&nbsp;<\/strong><\/p>\n\n\n\n<p>Next step is to create gateway subnet for the VNet. It is recommended to use \/28 or \/27 for gateway subnet. This need to be done before connecting VNet to the gateway.&nbsp;<\/p>\n\n\n\n<p>1) Log in to the Azure Portal<\/p>\n\n\n\n<p>2) Then go to&nbsp;<strong>More Services &gt; Virtual Networks&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn5.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn5.png\" alt=\"vpn5\" class=\"wp-image-2235\"\/><\/a><\/figure>\n\n\n\n<p>3) Then click on the<strong>&nbsp;VNet<\/strong>, created on previous step and click on&nbsp;<strong>subnets<\/strong>. Then click on&nbsp;<strong>gateway subnet&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn6.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn6.png\" alt=\"vpn6\" class=\"wp-image-2236\"\/><\/a><\/figure>\n\n\n\n<p>4) In the next window define the subnet for the gateway and click&nbsp;<strong>OK<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn7.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn7.png\" alt=\"vpn7\" class=\"wp-image-2237\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn8.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn8.png\" alt=\"vpn8\" class=\"wp-image-2238\"\/><\/a><\/figure>\n\n\n\n<p><strong>Create Virtual Network Gateway<\/strong><\/p>\n\n\n\n<p>Next step is to create virtual network gateway.&nbsp;<\/p>\n\n\n\n<p>1) Log in to azure portal&nbsp;<\/p>\n\n\n\n<p>2) Go to&nbsp;<strong>New &gt; Networking &gt; Virtual Network Gateway&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn9.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn9.png\" alt=\"vpn9\" class=\"wp-image-2239\"\/><\/a><\/figure>\n\n\n\n<p>3) In next window fill the relevant information and click on&nbsp;<strong>Create<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn10.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn10.png\" alt=\"vpn10\" class=\"wp-image-2240\"\/><\/a><\/figure>\n\n\n\n<p><strong>Name<\/strong>&nbsp;\u2013 Name for the virtual network gateway<\/p>\n\n\n\n<p><strong>Gateway Type<\/strong>&nbsp;\u2013 For our VPN it will be VPN&nbsp;<\/p>\n\n\n\n<p><strong>VPN Type<\/strong>&nbsp;\u2013 Type of the VPN and regular VPN will be route-based<\/p>\n\n\n\n<p><strong>SKU&nbsp;<\/strong>\u2013 SKU for the VPN type<\/p>\n\n\n\n<p><strong>Virtual Network&nbsp;<\/strong>\u2013 in here select the VNet you have created following previous step<\/p>\n\n\n\n<p><strong>Public IP Address<\/strong>&nbsp;\u2013 VPN need to have public IP address. Select public IP from here or if you don\u2019t have, once you click on the option it will allow you to add new one.&nbsp;<\/p>\n\n\n\n<p><strong>Location<\/strong>&nbsp;\u2013 make sure you select the correct region to match with VNet region.&nbsp;<\/p>\n\n\n\n<p>4) It can take up to 45 minutes to complete the task. Once it\u2019s done can see the public IP address details. You need this to configure the VPN device in yours on premises device.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn11.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn11.png\" alt=\"vpn11\" class=\"wp-image-2241\"\/><\/a><\/figure>\n\n\n\n<p><strong>Create Local Network Gateway<\/strong><\/p>\n\n\n\n<p>The next step is to create local gateway which represent your local network. To create it,<\/p>\n\n\n\n<p>1) Log in to azure portal<\/p>\n\n\n\n<p>2) Go to&nbsp;<strong>New &gt; Networking &gt; Local network gateway<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn12.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn12.png\" alt=\"vpn12\" class=\"wp-image-2242\"\/><\/a><\/figure>\n\n\n\n<p>3) Then it will open new wizard and fill the relevant information. After that click on&nbsp;<strong>create<\/strong>&nbsp;to proceed<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn13.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn13.png\" alt=\"vpn13\" class=\"wp-image-2243\"\/><\/a><\/figure>\n\n\n\n<p><strong>Name<\/strong>&nbsp;\u2013 Name for the local gateway&nbsp;<\/p>\n\n\n\n<p><strong>IP Address<\/strong>&nbsp;\u2013 Public IP address to represent your VPN device. It should not behind NAT.&nbsp;<\/p>\n\n\n\n<p><strong>Address Space<\/strong>&nbsp;\u2013 This is yours on premises address ranges. You can add multiple ranges.<\/p>\n\n\n\n<p><strong>Resource Group<\/strong>&nbsp;\u2013 you can create new resource group or use the same one you were using.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn14.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn14.png\" alt=\"vpn14\" class=\"wp-image-2244\"\/><\/a><\/figure>\n\n\n\n<p><strong>Create Site-to-Site VPN<\/strong><\/p>\n\n\n\n<p>Then next step is to create Site-to-Site VPN connection between your VPN device and the virtual network gateway. To create it,<\/p>\n\n\n\n<p>1) Log in to azure portal<\/p>\n\n\n\n<p>2) Go to&nbsp;<strong>More Services &gt; Virtual network gateways&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn15.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn15.png\" alt=\"vpn15\" class=\"wp-image-2245\"\/><\/a><\/figure>\n\n\n\n<p>3) Then click on the<strong>&nbsp;virtual network gateway<\/strong>&nbsp;you created and, under the&nbsp;<strong>settings<\/strong>&nbsp;tab, click on&nbsp;<strong>connection<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn16.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn16.png\" alt=\"vpn16\" class=\"wp-image-2246\"\/><\/a><\/figure>\n\n\n\n<p>4) Then click on&nbsp;<strong>add<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn17.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn17.png\" alt=\"vpn17\" class=\"wp-image-2247\"\/><\/a><\/figure>\n\n\n\n<p>5) In the wizard fill the relevant information and click&nbsp;<strong>ok<\/strong>.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn18.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn18.png\" alt=\"vpn18\" class=\"wp-image-2248\"\/><\/a><\/figure>\n\n\n\n<p><strong>Name<\/strong>&nbsp;\u2013 Name of the connection&nbsp;<\/p>\n\n\n\n<p><strong>Connection Type<\/strong>&nbsp;\u2013 Type of the VPN. Most of the time its site-to-site<\/p>\n\n\n\n<p><strong>Virtual Network Gateway<\/strong>&nbsp;\u2013 you need to select the relevant virtual network gateway<\/p>\n\n\n\n<p><strong>Local Network Gateway<\/strong>&nbsp;\u2013 in here need to select the relevant local network gateway for your connection<\/p>\n\n\n\n<p><strong>Shared Key<\/strong>&nbsp;\u2013 This is the pre-shared key you going to use for the VPN configuration<\/p>\n\n\n\n<p>6) Once its created it\u2019s all about configuring the VPN in your VPN device.&nbsp;<\/p>\n\n\n\n<p>7) Once connected you can see the status in same page by clicking on&nbsp;<strong>connection<\/strong>.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn19.png\"><img decoding=\"async\" src=\"https:\/\/www.rebeladmin.com\/wp-content\/uploads\/2016\/12\/vpn19.png\" alt=\"vpn19\" class=\"wp-image-2249\"\/><\/a><\/figure>\n\n\n\n<p>Hope this was helpful.<\/p>\n\n\n\n<p>Ref: <a href=\"https:\/\/www.rebeladmin.com\/2016\/12\/step-step-guide-configure-site-site-vpn-gateway-connection-azure-premises-network\/#:~:text=Step-by-Step%20guide%20to%20configure%20site-to-site%20VPN%20Gateway%20connection,the%20subnet%20for%20the%20gateway%20and%20click%20OK\">Step-by-Step guide to configure site-to-site VPN Gateway connection between Azure and on-premises network &#8211; Technical Blog | REBELADMIN<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you are in hybrid cloud setup with azure, using site-to-site VPN gateway you can have better continuity for your workloads. in this post, I am going to demonstrate how to set up site-to-site VPN Gateway. Requirements&nbsp; Before start make sure you have following in place.&nbsp; 1) VPN device&nbsp;\u2013 you need to have VPN device <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=4601\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1249,10,9],"tags":[1485,1484],"class_list":["post-4601","post","type-post","status-publish","format-standard","hentry","category-azure-microsoft","category-microsoft","category-networks","tag-configure-site-to-site-vpn-between-azure-and-on-premises-network","tag-configure-site-to-site-vpn-gateway-connection-between-azure-and-on-premises-network"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/4601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4601"}],"version-history":[{"count":1,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/4601\/revisions"}],"predecessor-version":[{"id":4602,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/4601\/revisions\/4602"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}