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

Deploy SQL Server Alwayson Failover Clusters In Amazon EC2 With AWS Cloud

February 12, 2018 by Jason Aw Leave a Comment

Webinar Invite!

DEPLOYING YOUR BUSINESS CRITICAL SQL SERVER APPS ON AMAZON EC2

Amazon Web Services (AWS) and SIOS Technology Corp, an AWS Partner Network (APN) Technology Partner, invite you to attend this live webinar to learn how to optimize mission critical SQL Server deployments on Amazon EC2.

Learn how to take advantage of the cost benefits and flexibility of Amazon EC2 while maintaining protection with native Microsoft Windows Server Failover Clustering – all without shared storage.

WHO SHOULD ATTEND:

Solution Architects, Developer, Development Leads and other SQL Professionals

PRESENTERS:

Miles Ward, Solutions Architect, Amazon Web Services

Tony Tomarchio, Director of Field Engineering, SIOS Technology Corp

DATE / TIME:

Wednesday, June 5, 2013 – 10AM PT / 1PM ET

CLICK HERE TO REGISTER

http://bit.ly/10VLtDu

Reproduced with permission from https://clusteringformeremortals.com/2013/05/23/webinar-invite-how-to-deploy-sql-server-alwayson-failover-clusters-in-amazon-ec2-with-awscloud-amazonaws/

Filed Under: Clustering Simplified Tagged With: Amazon EC2, Microsoft Windows Server Failover Clustering, Miles Ward, SIOS, SQL Server, Tony Tomarchio, Webinar

Amazon EC2 Storage And Instance Size Considerations

February 12, 2018 by Jason Aw Leave a Comment

When you launch a new instance, you only have two options for the OS storage: Standard or Provisioned IOPS. Both are Amazon Elastic Block Store (EBS) volumes persistent across reboots. Many instances come with a bunch of extra ephemeral drives attached, which are NOT persistent. I usually delete these ephemeral drives so I am not tempted to store data on them. You will have to add additional EBS volumes for additional persistent storage.

This article seems to indicate that you can launch AMI’s based on the “EC2 Instance Store”, which is NOT persistent, but I’ve never seen that option. All of my instances have always had root devices that are EBS based; I have not seen one that is not EBS based. I’m assuming they mean some of the instances in the Amazon Market Place may use non-persistent volumes. http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/RootDeviceStorage.html

You’ll see the root device when you launch the instance, like I highlighted below. As long as EBS is the root device you are good to go and can be sure your changes will persist across reboots.

AMAZON EC2 STORAGE And INSTANCE SIZE CONSIDERATIONS

 

As far as instance size, it will depend on the needs of the application. The good thing about EC2 is that if you provision an AMI that is under powered, you can go back and increase the instance size, though it does require a reboot. If IOPS are important, you will want to make sure you choose an instance that is EBS optimized. See this page for the instance details. You’ll see the first instance type which is EBS optimized is M1.large.

Need Some Tips?

Read this guide for additional fixes for optimal storage configuration. One of the best tips for increased IOPS is to use multiple smaller EBS volumes and put them together in a RAID 0 on the Windows server. Because the EBS volumes are RAID1 on the backend, you are essentially deploying RAID 1+0 in your VM for optimal performance and availability.

Reproduced with permission from https://clusteringformeremortals.com/2013/12/12/amazon-ec2-storage-and-instance-size-considerations/

Filed Under: Clustering Simplified Tagged With: Amazon EC2 Storage, ec2

It Is Now Cheaper To Get Provisioned IOPS On AMAZON EC2 EBS

February 12, 2018 by Jason Aw Leave a Comment

In the old days if you wanted a guaranteed 4000 IOPS on Amazon EC2 EBS, you had to provision a minimum of a 400 GB volume. Considering you pay per the GB, and provisioned IOPS are not cheap, if you only needed 100 GB of fast storage you were stuck paying for 300 GB of unused storage.

New announcement from Amazon EC2 EBS

Users will be glad to know that Amazon EC2 EBS has made it easier to get fast storage in smaller increments. Now if you want 4000 IOPS, you can get that in EBS volumes as small as 133 GB up to 1 TB in size. Read the following press release here for more information.

Reproduced with permission from https://clusteringformeremortals.com/2013/11/08/it-is-now-cheaper-to-get-provisioned-iops-on-amazon-ec2-ebs/

Filed Under: Clustering Simplified Tagged With: amazon, Amazon EC2 EBS, IOPS

Setting up GUI access For Amazon EC2 RHEL 7

February 12, 2018 by Jason Aw Leave a Comment

When using AWS, you may need to be able to remotely access the desktop of the Linux VM instances. You can achieve this using XRDP VNC connection. Following the steps below you can install XDRP and Gnome GUI.

There are three sections involved in the whole setup. Follow all the three sections explained below to successfully configure the GUI.

Installing GUI Components

1. Update the server using the following command.

1
sudo yum –y update

2. Install the gnome GUI components using the following command.

1
sudo yum groupinstall –y “Server with GUI”

3. Issue the following commands to start the GUI during boot.

1
2
sudo systemctl set–default graphical.target
sudo systemctl default

Now we have all the essential GUI components installed on the server. In the next section, we will install the xrdp components to enable remote desktop connections.

Recommended: Learn Linux in 5 Days and Level Up Your Career Udemy Course

Setting Up XRDP

1. Add the xrdp repository to your instance using the following command.

1
sudo rpm –Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

2. Install xrdp and tiger VNC server.

1
sudo yum install –y xrdp tigervnc–server

3. Setup SELINUX security using the following commands.

1
2
chcon —type=bin_t /usr/sbin/xrdp
chcon —type=bin_t /usr/sbin/xrdp–sesman

4. Start and enable the xrdp service.

1
2
sudo systemctl start xrdp
sudo systemctl enable xrdp

5. Enable RDP port on the instance using the following firewall commands.

READ  How to Migrate WordPress Site to Digital Ocean Cloud Server
1
2
sudo firewall–cmd —permanent —add–port=3389/tcp
sudo firewall–cmd —reload

6. Set a password for ec2-user . This password will be used to connect to the RDP session.

1
sudo passwd ec2–user

7. Set password for root as you will be prompted for cloud user password for network proxy and color. Login as root and set the password.

1
2
sudo su
passwd

Now we have the xdrp components and all instance level settings in the right place. Now let’s test out the RDP connection from an RDP client. In this tutorial, i am using windows RDP client.

Connecting The Instance Using RDP

Note: Make sure you have opened RDP port in your instance security group.

1. Open RDP client and type in the public IP of your instance and click connect.

2. If you get a warning message about remote identity, just click yes.

3. Now you will get a xrdp authentication window, enter the credentials and click ok.

Note: The username is “ec2-user” and the password is the password you set for ec2-user in step 6.

4. You will be prompted to enter the password again. Provide the password and proceed to the steps to configure the initial desktop.

5. If it prompts for “cloud user password” provide the root user password you set in step 7.

6. That it, you will get a GUI session as shown below. If you face any errors do let me know in the comment session.

amazon ec2 rhel 7 gui

If you have problems connecting via RDP, the connection is lost after 1-2 seconds, the solution is to install the epel repo. Follow these steps to install – https://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/ and run # yum update after that.

Filed Under: Clustering Simplified

  • « Previous Page
  • 1
  • …
  • 100
  • 101
  • 102
  • 103
  • 104
  • …
  • 114
  • Next Page »

Recent Posts

  • 3 Common Configuration Mistakes That Cause Clusters to Break
  • Guide: Deploying a Multi-Zone and Multi-Region SQL Server FCI in Azure
  • High Availability for On-Premises Data Centers
  • How APM Tools and High Availability Clusters Improve Network Resilience
  • Selecting the Right Storage for SQL Server High Availability in the Cloud

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 © 2026 · Enterprise Pro Theme on Genesis Framework · WordPress · Log in