SIOS SANless clusters

SIOS SANless clusters High-availability Machine Learning monitoring

  • Home
  • Products
    • SIOS DataKeeper for Windows
    • SIOS Protection Suite for Linux
  • News and Events
  • Clustering Simplified
  • Success Stories
  • Contact Us
  • English
  • 中文 (中国)
  • 中文 (台灣)
  • 한국어
  • Bahasa Indonesia
  • ไทย

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud

February 13, 2018 by Jason Aw Leave a Comment

 How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

Not long ago I set out to build a multisite SQL Server cluster where one my nodes resides in my local data center and the other node resides in Microsoft’s Infrastructure as a Service (IaaS) offering, the Windows Azure Cloud. The Azure Cloud has an offering where you can deploy VMs and pay for just the resources you utilize, much like Amazon’s EC2. My goal was to create a proof of concept where I would use the Azure Cloud as an inexpensive disaster recovery site. My configuration is shown in Figure 1.

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

1. An example of the simple DR configuration I used in my POC

My on premise VMs are used as follows:

  • VM1-internal – Routing and Remote Access Server for NAT and VPN connectivity to the Azure Cloud
  • VM2-internal – The primary node in my cluster
  • VM3-internal – My domain controller

For this POC I only deployed on server in the Azure cloud, Azure-DR. Azure-DR is the secondary node in my cluster. If this were an actual production site, I certainly would also want to deploy another domain controller in the Azure cloud to ensure that my Active Directory was available in the DR site. Your actual DR configuration will vary greatly depending upon your needs. I will use the server name depicted in my illustration as I describe the configuration steps below.

The Scope Of This Post

For the purpose of this post, I am going to focus on what you need to do to get to the point where you have configured your virtual network in Azure and you create a site to site VPN connection to your primary data center. My next article will discuss the steps required to actually create a multisite cluster for disaster recovery. As with most cloud related services, the interfaces and options tend to change rapidly; the screen shots and directions you see below are relevant as of January 2nd, 2014. Your experience may vary, but these directions should get you pretty darn close. If you encounter difference, please send me a comment and what you did to make it work so other users can benefit from your experience.

Create Your Local Network

I’m not going to walk you through this step-by-step, but essentially you should have a Windows Server 2012 R2 DC configured (VM3-internal) and two additional Windows Server 2012 R2 servers in the domain (VM1-internal and VM2-internal). Each server should use the DC server as their primary DNS server and on VM2-internal and VM3-internal the gateway should be configured to point to VM1-internal, which will eventual be configure with Routing and Remote Access (RRAS). The RRAS (VM1-internal) should be dual homed, with one NIC connected to the internal network and one NIC connected directly to the Public network. Generally this will be the biggest obstacle in deploying this in your lab, as you must have a spare public IP address that you can use for your RRAS server. This configuration will not work if your RRAS server sits behind a NAT’s firewall. It must be directly connected to the internet. The RRAS Server should be configured with just the IP address, subnet mask and DNS server, no gateway should be defined. DO NOT enable Routing and Remote Access, this will be done automatically via a script at a later step.

Create A Virtual Network

Log in to the Windows Azure Management Portal and create a new Virtual Network following the steps illustrated below.

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

When You Click The Check Box You Should Now See The New Virtual Network You Just Created.How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

CREATE THE GATEWAY

You will need to create the Gateway as soon as the virtual network is created. From the Dashboard of the newly created virtual network, you will be able to produce a Gateway as shown below. Be sure to choose Dynamic Routing because Static Routing with RRAS is not supported in the Azure VPN connection as of April 25th 2013.

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server
It could take 30 minutes or longer before your gateway is finished being created, be patient…

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

Once the gateway is finished creating, you will see your Gateway IP Address and the amount of Data In and Data Out as shown below.

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

Configure Your Local RRAS Server

At this point you are ready to configure your on-premise RRAS Server (VM1-internal) to create a site-to-site VPN to the Gateway that you just created. Microsoft has made this very easy, so don’t worry if networking and configuring VPNs are not your specialty. You will just need click on “Download VPN Device Script” and run it on your RRAS server. Microsoft also supports a bunch of Juniper and Cisco VPN routers as well, so if you want to move to a hardware based VPN device in the future you can always come back and download the configuration script specific to your device.

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

Choose Microsoft Corporation as the Vendor, RRAS as the Platform and Windows Server 2012 as the Operating System and click the checkbox to download the Powershell script. In my case, this same script worked just fine when run on Windows Server 2012 R2.

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

As of the date of this writing, it seems as if Microsoft has made the script creation process even more intelligent than it was just last month. The script that was created for me was pre-populated with all the information.  I did not have to edit anything at all.

At this point, all you need to do is copy the script file on to your RRAS Server (VM1-internal) and save it as a .ps1 and run the PowerShell script. This script will install Routing and Remote Access and configure the Site-to-Site VPN to connect to the Windows Azure Virtual Network you just created. Once you have finished with the RRAS installation go back to the Azure Portal and click Connect to complete the VPN site-to-site connection.

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

When connected, the Azure Portal should look something like the following.

How To Create A Site-To-Site VPN Tunnel To The Windows Azure Cloud Using A Window Server 2012 R2 Routing And Remote Access (RRAS) Server

Enable NAT on the RRAS Server

The final step I had to take to have a usable network was to enable NAT on my RRAS Server. None of my servers could reach the internet without NAT. The basic steps for enabling NAT on RRAS are as follows:

  • Open the Routing and Remote Access MMC
  • Expand IPv4, right-click General, and then click New Routing Protocol.
  • In Routing protocols, click NAT, and then click OK.
  • Right-click NAT, and then click New Interface.
  • Select the interface that connects to your private intranet, and then click OK.
  • Select Private interface connected to private network, and then click OK.
  • Right-click NAT, and then click New Interface again.
  • Select the interface that connects to the public Internet, and then click OK.
  • Select both Public interface connected to the Internet and Enable NAT on this interface, and then click OK.

Now What?

The fun can now begin. In my next post I will walk you through the process of provisioning a Windows VM in Azure and joining it to your on-premise domain.

Reproduced with permission from https://clusteringformeremortals.com/2014/01/03/how-to-create-a-site-to-site-vpn-tunnel-to-the-windows-azure-cloud-using-a-window-server-2012-r2-routing-and-remote-access-rras-server/

Filed Under: Clustering Simplified Tagged With: Azure Cloud, Microsoft, Routing And Remote Access Server, RRAS, VM

Recent Posts

  • The Best Rolling Upgrade Strategy to Enhance Business Continuity
  • How to Patch Without the Pause: Near-Zero Downtime with HA
  • SIOS LifeKeeper Demo: How Rolling Updates and Failover Protect PostgreSQL in AWS
  • How to Assess if My Network Card Needs Replacement
  • SIOS Technology to Demonstrate High Availability Clustering Software for Mission-Critical Applications at Red Hat Summit, Milestone Technology Day and XPerience Day, and SQLBits 2025

Most Popular Posts

Maximise replication performance for Linux Clustering with Fusion-io
Failover Clustering with VMware High Availability
create A 2-Node MySQL Cluster Without Shared Storage
create A 2-Node MySQL Cluster Without Shared Storage
SAP for High Availability Solutions For Linux
Bandwidth To Support Real-Time Replication
The Availability Equation – High Availability Solutions.jpg
Choosing Platforms To Replicate Data - Host-Based Or Storage-Based?
Guide To Connect To An iSCSI Target Using Open-iSCSI Initiator Software
Best Practices to Eliminate SPoF In Cluster Architecture
Step-By-Step How To Configure A Linux Failover Cluster In Microsoft Azure IaaS Without Shared Storage azure sanless
Take Action Before SQL Server 20082008 R2 Support Expires
How To Cluster MaxDB On Windows In The Cloud

Join Our Mailing List

Copyright © 2025 · Enterprise Pro Theme on Genesis Framework · WordPress · Log in