Windows Server 2012

How to configure and setup Windows 2012 VPN

How to configure and setup Windows 2012 VPN

Windows 2012 continues the iteration of Windows VPN that continues to provided remote access capabilities for network connectivity from the outside. ย There have definitely been improvements with Windows 2012 VPN especially in the Direct Access functionality. ย We want to show how you would go about setting up a simple VPN connection into your network using the Windows 2012 Remote Access Role. ย In walking through the installation of the RRAS role, using the server manager, the process is very straightforward and easy.

Role Installation

rras1

 

rras2

rras3

rras4

rras5

rras6

rras7

Service Configuration

rras8

rras9

rras10

rras11

rras12

rras13

  • After the service is configured, you will see the green “up arrow” symbol which shows the RRAS server is fully operational and is ready to finish out the configuration

rras14

  • One detail we have to attend to is IP address assignment. ย This can be done using DHCP or using a static address pool that the RRAS server manages. ย Below shows how you go about assigning a DHCP relay agent which is essentially just pointing it to your DHCP server on your network.

rras15

rras16

Assigning a static address pool

 

  • Right-click the RRAS server and click Properties

rras17

  • In our test environment, we already have a DHCP server, so we don’t want to flag DHCP to hand out addresses. ย You can then set aside a static pool of addresses you want specifically used for remote access connections

rras18

Configuring NPS Policies

Network Policy Server allows very granular control of users and computers that connect to your network and integrates with the Remote Access Role. ย We need to configure a couple of things here in the NPS console to allow our VPN connection access to our network.

  • Launch NPS by typingย nps.mscย at a run menu

Under Network Policies in our NPS console we find the “Connections to Microsoft Routing and Remote Access server” defined. ย By default, theย Access Typeย isย set to Deny Accessย so we need to change this to Grant Access.

rras23

rras20

rras21

rras22

 

  • Remote Access can be restricted to only a certain Windows User or Computer group among many other options


rras22

 

 

Network Port Considerations

One thing that will have to be considered is port traffic that will be passed to your internal or DMZ to hit the Windows Server 2012 VPN.

  • Portย 1723 will have to be passed to our Windows 2012 server.

Just to give a quick idea of what we have to do on a consumer grade router/bridge, in our test environment we are connected to a cable connection via a Netgear Router/switch. ย Most manufacturers call this functionalityย Port forwarding,ย triggering,ย or something similar. ย Take a look at the screen shot below to see how we set this up. ย Our Windows 2012 box is assigned theย 192.168.1.56 address which the Netgear router will forwardย port 1723ย traffic.

rras19

 

 

Final Thoughts

Setting up VPN in Windows 2012 is pretty straightforward and doesn’t require a lot of configuration to have a functional VPN. ย There are myriads of conditions that can be used to restrict and control access to certain users, hardware, or network connection types. ย RRAS along with NPS is a powerful solution. ย Network Access Protection can also be added in the mix to harden the network even more.

 

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

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.