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.

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.

I enjoy technology and developing websites. Since 2012 I'm running a few of my own websites, and share useful content on gadgets, PC administration and website promotion.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.