Connecting to a Windows Server 2022 network

Overview

This is a how-to guide to show the steps involved in networking a Windows-based office network to OpenVPN Cloud. The diagram below illustrates an office LAN with an assigned subnet of 192.168.10.0/24 connecting Windows computers together. These computers get access to the Internet via a router. The Windows Server has two ethernet interfaces: one for access to the LAN subnet and another for access to the Internet via the router.

The Windows Server will be used to route traffic to OpenVPN Cloud. In order to connect this office network to OpenVPN Cloud, Windows Server needs to create a tunnel (which results in creating a new virtual interface) to one of the OpenVPN Cloud Regions and then route packets between the three interfaces: office LAN, Internet, and OpenVPN Cloud. For the Server to establish a tunnel to the VPN Region, Connector software needs to be installed on it. For the Server to route between all three LAN interfaces, routing needs to be enabled on it.

The key steps that need to be undertaken are:

  1. Configure a Network with the office network subnet of 192.168.10.0/24 to OpenVPN Cloud using the Administration portal. This enables routing from the VPN to that subnet and creates a Connector for the office network
  2. Install the Connector on Windows Server and connect to OpenVPN Cloud
  3. Add Remote Access Role and Features to Windows Server
  4. Configure LAN routing on Windows Server
  5. Take the needed actions to ensure proper routing. See, Connecting Networks to OpenVPN Cloud Using Connectors

Implementation

In order to make the office network reachable from OpenVPN Cloud, follow these steps:

Add the office subnet as a Network using OpenVPN Cloud Administration portal Windows 2022

  1. Navigate to Networks and click on the Create Network button on the upper left-hand corner to add a new Network
  2. Give the Network and Connector a name, add the office subnet (in this example, 192.168.10.0/24) as the subnet for the Network, select a VPN Region for the Connector that is geographically closest to the office location, and click on the Create button to complete configuration
  3. Click on the Deploy button next to the Connector to show the various download options
  4. Click on Deploy Connector option
  5. Select the Windows option in the Connector Type drop down menu
  6. Click on the Download button in order to to download an archive with the Connector software inside

Install the Connectoron Windows Server 2022

  1. Transfer the archive with Connector software to the Windows Server computer and extract its files
  2. Execute the .msi installer extracted from an archive earlier
  3. Click on the Next button to start the OpenVPN Connect Setup Wizard
  4. Accept the terms in the License Agreement by clicking on the checkbox and click on the Next button
  5. Click on the Install button to begin the installation
  6. Installation progress will be shown, click on the Finish button to exit the Setup Wizard
  7. OpenVPN Connect application will automatically start, you will also see the OpenVPN Connect icon in the system tray
  8. Connect to OpenVPN Cloud VPN Region by clicking on the profile that is already imported after passing the Onboarding Tour and review and agree to the data collection and use policy

Add the Remote Access Role and Features to Windows Server 2022

  1. On the Windows Server computer, open Server Manager, click Manage and select Add Roles and Features
  2. When Add Roles and Features Wizard opens click on the Next button
  3. Select Role-based or feature-based for the type of installation and click on the Next button
  4. Select the server to install the role. Then click on the Next button
  5. On Server roles screen, check the box beside Remote Access. Then click on the Next button
  6. When Features screen opens click on the Next button
  7. Then read the information about Remote Access role and click on the Next button
  8. On Role Services screen, check the box beside Routing which will start the Add Roles and Features Wizard, just click on the Add Features button
  9. Note that Direct Access and VPN (RAS) role service is also checked along with the Routing role service The two role services are installed together. Click on the Next button
  10. On Web Server Role (IIS) screen, click on the Next button
  11. On Role Services screen, click on the Next button
  12. Finally, at the Confirmation screen, click on the Install button
  13. When Remote Access role installation is completed, click on the Close button

Configure LAN routing on Windows Server 2022

  1. From Server Manager, click Tools, and select Routing and Remote Access
  2. From the Routing and Remote Access window, right-click the server, and select Configure and Enable Routing and Remote Access.
  3. On the first page of the setup wizard, click on the Next button
  4. Select Custom configuration and click on the Next button
  5. Select LAN routing and click on the Next button
  6. On the summary page, click on the Finish button
  7. Finally, to start the service, click on the Start service button and wait for the service to start. The dot on the server will turn the color green from the color red
  8. Now, expand the server and expand IPv4 entry to click on the General node. The computer is now acting as a router between the interfaces shown.

Note: You must take the necessary actions to ensure proper routing. For further information, refer to: Connecting Networks to OpenVPN Cloud Using Connectors