How to setup a VPN on Windows 2012 R2 (PPTP)

How to setup a VPN on Windows 2012 R2 (PPTP)


This tutorial will show you how to install a VPN Server on your Windows Server 2012 R2 system steb by steb.
This is a do it yourself way of setting up a free vpn server for youself.

Windows 2012 R2 Versions.


Install vpn on windows 2012 tutorial


Select the “DirectAccess and VPN (RAS)” role services.

Install vpn on windows 2012 tutorial



On the next steps just use the default settings. After that you can have a look at the Overview screen and install the role.


Install vpn on windows 2012 tutorial


After the features are installed, which can take a while to finish you see the link for the Getting Started Wizard. Click on “Open the Getting Started Wizard“.

Install vpn on windows 2012 tutorial



This opens a new wizard which will help you to configure the server. On the first screen select “Deploy VPN only“.




Install vpn on windows 2012 tutorial

This opens the Routing and Remote Access MMC

Install vpn on windows 2012 tutorial



Routing-and-Remote-Access-MMC.png


Install vpn on windows 2012 tutorial



Configure-and-Enable-Routing-and-Remote-Access.png

Install vpn on windows 2012 tutorial

 

Select “VPN Access“.

Install vpn on windows 2012 tutorial



After you have click finish you can now start the Routing and Remote Access service.

Install vpn on windows 2012 tutorial

If you have an other firewall between the internet and your Windows Server you have to open the following Firewall port sand forward them to your Windows Server:

For PPTP: 1723 TCP and Protocol 47 GRE (also known as PPTP Pass-through)
For L2TP over IPSEC: 1701 TCP and 500 UDP
For SSTP: 443 TCP

After the installation Users have to be enabled for Remote Access to connect to your VPN Server. On a standalone server this can be done in the Computer Management MMC, in a domain environment this can be done in the user properties of an Active Directory user.


Install vpn on windows 2012 tutorial



If you don’t have a DHCP Server in your environment you have to add a static IP address pool. This is often needed if you have a single server hosted at a service provider. In the properties of your VPN server you can click on the IPv4 tab and enable and configure the “Static address pool”.



Install vpn on windows 2012 tutorial


You now have to add a IP address from the same subnet as your static address pool to the network interface of your server, so users can access the server.

I hope this helps you to setup a VPN server in a small environment, lab or hosted server.




  • 27 Users Found This Useful
Was this answer helpful?

Related Articles

Securing a Windows VPS / RDP Server - Restrict incoming IP to RDP

Securing a Windows VPS /  RDP Server - Restrict incoming IP to RDP1. Open Windows Firewall with...

How to change RDP Port to a Custom Port number of Your Choice

How to change RDP Port to a Custom Port numberFollow these steps and you will be able to login...

How to connect to my VPS with VNC

How to connect to my VPS with VNCVNC is the equivalent of plugging in your monitor to a server....

Forex VPS Hosting Canada

Foxex VPS Hosted on any version of Windows VPS (Virtual Private Server) hosting allows the Forex...

How to change your Administrator Password Windows Server 2012

How to change a users Password in Windows Server 20121. Go to Computer Management.Click Start...