vpn windows

How to Install VPN Server on Windows Server 2012 R2

In this article we will take a look on how to install VPN server on Windows Server 2012 R2. VPN (virtual private network) technology is used to create a direct connection between computers that placed in different subnets. For example, you can use VPN when it is necessary to set up a small computer network of companies whose employees are working remotely. It also can be useful in a situation when you want to play computer game with your friend who lives in another city.

VPN uses internet transport protocols TCP, UDP and has several types of implementations PPTP, L2TP, OpenVPN. In this article we will consider a VPN solution for Microsoft Windows based on PPTP. This protocol is not the best solution because of its low security level, but it is the simplest and fastest way to create a connection using only the built-in features of your operating system without external apps installation.

Follow this step by step guide.


Before you begin the installation of VPN, ensure that port 1723 is open for TCP PPTP in your firewall.

At first open your Server Manager and click on Add Roles and Features.

server manager add roles features

Now select Role-based or feature-based installation option and click on Next.

role based feature installation

 Now select desired server you’d like to install Routing and Remote Access on.

READ ALSO  Configure Data Deduplication on Windows Server 2012 R2

select destination server

From the Roles lists select Remote Access and click on Next

server role remote access

Click Next, no additional features required at this point.

features net framework

 Just click on Next.

remote access

In next tab you need to select DirectAccess and VPN (RAS).

direct access vpn

Click Add Features in the popup window.

add roles vpn

On confirmation page click Install to begin.

confirm installation selections

After installation process is finished, click on Open the Getting Started Wizard.

feature installation

In this tab press Deploy VPN only.

deploy vpn only

Right click on your server and choose Configure and Enable Routing and Remote Access.

configure routing remote access

Click on Next.

routing remote access setup

On the new wizard select Remote Access (dial-up or VPN).

dial up vpn

On the next page select VPN.

vpn gateway

Here select network adapter that connects your server to the Internet.


Here you can choose the method of distribution for IP addresses via DHCP or manually. Select the second way.

range addresses

In this tab press New.

address range assigment

In popup window specify range of IP addresses, press OK, return to previous tab and click on Next.

new ipv4 address range

In this tab you can choose the method of authentification. Select Routing and Remote Access.

use routing

Press Finish. Now configuration is finished.

completing routing


That`s all. Your server is ready for client connections. Note that if your network is large enough, it is better to use DirectAccess technology.

READ ALSO  Windows Server 2012 Mailbox Role Process Execution Failed Exit Code 15010

You may also like:

Join Domain and Login over a VPN Connection This is a short tutorial on how to join a computer to a domain over a VPN connection. This was very useful for us this weekend. We had to reformat a c...
Windows Server 2012 Mailbox Role Process Execution... If you are trying to install Exchange 2010 on Windows Server 2012 and are receiving the error "Mailbox Role Process Failed.... Process execution faile...
Changing expired password via RDS in Windows Serve... This article shows how remote users themselves can change their expired passwords through RDP-connection to the Remote Desktop Services (RDS) farm on ...
How to backup WSUS database The Software Update Point (SUP) role in System Center Configuration Manager is closely related and dependent on Windows Server Update Services (WSUS)....
Configure Data Deduplication on Windows Server 201... In this tutorial we will show you a fast and easy way to configure Data Deduplication via Powershell. At first we need to add role for deduplicatio...