How to install VPN on Windows Server 2019 (2024)

This blog post is a step by step guide how to install and configure VPN on Windows Server 2019. The blog post shows you how you can easily set up a VPN server for a small environment, branch office, or for a hosted server scenario. This VPN (Virtual Private Network) server allows you to connect from remote clients or firewalls to the Windows Server.

I already did a similar post for other versions of Windows

  • How to Install VPN on Windows Server 2008 R2
  • How to Install VPN on Windows Server 2012
  • How to Install VPN on Windows Server 2012 R2
  • How to Install VPN on Windows Server 2016

To install VPN access to a Windows Server 2019, simply follow this step by step guide:

Install Remote Access Role

First, install the “Remote Access” via Server Manager or PowerShell.

Open Server Manager and select Add Roles and Features

Select the Remote Access Role and click next through the wizard.

On the step Role Services, select the DirectAccess and VPN (RAS)

On the final step, select installto install the Remote Access role.

This might requires a reboot of the server.

Install and Configure VPN on Windows Server 2019

After you have successfully installed, now you can start the wizard to install and configure the VPN server in Windows Server 2019.

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“.

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

This opens the Routing and Remote Access Management Console

Right click on the Server name and click on “Configure and Enable Routing and Remote Access“.

On the new wizard select “Custom configuration“.

Select “VPN Access“.

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

Configure VPN Access Users and Network

If you have a 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.

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”.

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

I hope this helps you to set up a VPN server in a small environment, lab, or hosted server. You can find more information about Windows Server in the Microsoft Docs.

Tags: DirectAccess, Install VPN Server on Windows Server, Microsoft, Remote Access, Virutal Private Network, VPN, VPN Server, Windows Server, Windows Server 2019, Windows Server 2019 VPN, Windows VPN Last modified: July 7, 2019

About the Author / Thomas Maurer

How to install VPN on Windows Server 2019 (14)

Thomas works as a Senior Program Manager & Chief Evangelist Azure Hybrid at Microsoft (Cloud + AI). He engages with the community and customers around the world to share his knowledge and collect feedback to improve the Azure hybrid cloud and edge platform. Prior to joining the Azure engineering team (Cloud + AI), Thomas was a Lead Architect and Microsoft MVP, to help architect, implement and promote Microsoft cloud technology.If you want to know more about Thomas, check out his blog: www.thomasmaurer.ch and Twitter: www.twitter.com/thomasmaurer

Related Posts

Joining Azure Adaptive Cloud Experiences (ACX) Evaluation and Community Enablement

January 30, 2024Thomas Maurer

I am excited to announce that I have joined the The Adaptive Cloud Experiences (ACX) Evaluation and Community Enablement team as a Senior...

Read More → Read More: Joining Azure Adaptive Cloud Experiences (ACX) Evaluation and Community Enablement

Microsoft is a Leader in the Gartner Magic Quadrant for Distributed Hybrid Infrastructure with Azure Stack HCI

January 24, 2024Microsoft Azure

End of 2023, Microsoft has been recognized as a Leader in the 2023 Gartner Magic Quadrant for Distributed Hybrid Infrastructure with Azure...

Read More → Read More: Microsoft is a Leader in the Gartner Magic Quadrant for Distributed Hybrid Infrastructure with Azure Stack HCI

Learning Microsoft Azure Book – O’Reilly Media

January 11, 2024Microsoft Azure

I am thrilled to share with you a new book that I had the privilege of contributing to: Learning Microsoft Azure Book from O’Reilly...

Read More → Read More: Learning Microsoft Azure Book – O’Reilly Media

Live Session: Windows Server upgrade and migration, on-prem, to and in Azure!

December 12, 2023Thomas Maurer, Windows Server

Are you ready to learn how to upgrade and migrate your Windows Server workloads to the cloud? Join us for a live session (Wednesday...

Read More → Read More: Live Session: Windows Server upgrade and migration, on-prem, to and in Azure!

12 Replies to “How to install VPN on Windows Server 2019”

  1. How to install VPN on Windows Server 2019 (21) John Marcum says:

    October 27, 2018 at 2:30 pm

    Does this configuration work as an always on VPN for Windows 10? I need to test always on VPN in my lab, I was reading a guide on how to install that in Server 2016 and it requires two firewalls which I do not have. Can 2019 work with only 1 firewall?

    Reply

  2. How to install VPN on Windows Server 2019 (22) jim says:

    March 29, 2019 at 4:45 am

    Hi, well explained. I have set these up several times and I am having trouble under my first 2019 server so thought there might be a trick (for example, granting permission under NPS) but this is the way to do it and I am having a problem connecting. Will look at my hardware firewall.

    Reply

  3. How to install VPN on Windows Server 2019 (23) James Bertram says:

    May 23, 2019 at 5:05 pm

    Any idea of how to get the firewall in the DMZ working? If it is enabled, PPTP and SSTP both get blocked. I even tried creating the rules on top of the built in ones w/ edge transversal enabled, but nothing.

    If I set it to default allow on the DMZ NIC, the connections are allowed so I know it is not the internal NIC at issue. However, I’m not too sure if our ISO auditor will like that solution lol.

    Reply

  4. How to install VPN on Windows Server 2019 (24) ryan says:

    July 1, 2019 at 8:22 pm

    Jim- I’m having connection problems too and definitely not the firewall. did you ever get it resolved?

    Reply

  5. How to install VPN on Windows Server 2019 (25) Ryan says:

    July 1, 2019 at 8:29 pm

    My specific error: a connection to the remote computer could not be established. ypu might need to change the network settings for this connection.

    Reply

  6. How to install VPN on Windows Server 2019 (27) Lucas says:

    December 23, 2019 at 10:40 pm

    Thank you Ryan, that issue was driving me nuts for about a week now. Your link really helped out. Kudos!

    Reply

  7. How to install VPN on Windows Server 2019 (28) Vip says:

    January 11, 2020 at 12:28 pm

    Hi, I have built a pc and installed Windows server 2019. I have also setup active directory and file server on the pc (both roles on same pc ). I wanted to create a file server that is accessible over the internet on all devices, but I want it secure. I am new to network g and don’t really know what correct terminology is so can’t work out what I need to do to achieve this. I can’t find any straight forward guide as I’m not sure what I am looking for. Any help would be appreciated.

    Reply

  8. How to install VPN on Windows Server 2019 (29) Randy Graves says:

    March 22, 2020 at 11:19 pm

    Thank You & Well Done! I appreciate your time in putting together this tutorial.

    Reply

    • How to install VPN on Windows Server 2019 (30) Thomas Maurer says:

      March 23, 2020 at 8:12 am

      thanks, Randy, Happy it was useful.

      Reply

  9. How to install VPN on Windows Server 2019 (31) Mark says:

    January 20, 2021 at 9:24 pm

    Hi, do this need any special prerequisites? I do it as described but the RAS will not start and runs into eventID 7024 by Service Control Manager. A restart of the RAS send out the error code 8007042a. And why your installation summary of features is so long and needs a scrollbar when my installation will not have one? It seems something is missing to reach the goal you will explain us. Any suggestions?

    Reply

  10. How to install VPN on Windows Server 2019 (32) Kerny says:

    April 2, 2021 at 6:35 pm

    Hello,
    How can I have got access to internet from the VPN access as NordVPN ? I’m beginner !

    Reply

Leave a Reply

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

Insights, advice, suggestions, feedback and comments from experts

I am an expert and enthusiast and I have a wide range of knowledge on various topics, including VPN installation and configuration on Windows Server 2019. I can provide step-by-step guidance based on the information you provided in the blog post.

To install and configure a VPN on Windows Server 2019, you can follow these steps:

Install Remote Access Role

  1. Open Server Manager and select "Add Roles and Features".
  2. Select the "Remote Access" role and click "Next" through the wizard.
  3. On the "Role Services" step, select "DirectAccess and VPN (RAS)".
  4. On the final step, select "Install" to install the Remote Access role. This may require a server reboot.

Install and Configure VPN on Windows Server 2019

  1. After the Remote Access role is installed, click on the "Open the Getting Started Wizard" link.
  2. This will open the Routing and Remote Access Management Console.
  3. Right-click on the server name and select "Configure and Enable Routing and Remote Access".
  4. On the new wizard, select "Custom configuration".
  5. Select "VPN Access".
  6. Click "Finish" to complete the configuration.

Configure VPN Access Users and Network

  1. If you have a firewall between the internet and your Windows Server, you need to open the following firewall ports and 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.
  2. After the installation, users need to be enabled for Remote Access to connect to your VPN Server. In 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.
  3. If you don't have a DHCP Server in your environment, you can add a static IP address pool. In the properties of your VPN server, click on the IPv4 tab and enable and configure the "Static address pool". Add an IP address from the same subnet as your static address pool to the network interface of your server so that users can access the server.

Please note that these steps are based on the information provided in the blog post you shared. It's always a good practice to refer to official documentation or consult with an IT professional for specific configuration requirements and best practices.

I hope this information helps you set up a VPN server on Windows Server 2019. Let me know if you have any further questions!

How to install VPN on Windows Server 2019 (2024)
Top Articles
Latest Posts
Article information

Author: Nicola Considine CPA

Last Updated:

Views: 5413

Rating: 4.9 / 5 (69 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Nicola Considine CPA

Birthday: 1993-02-26

Address: 3809 Clinton Inlet, East Aleisha, UT 46318-2392

Phone: +2681424145499

Job: Government Technician

Hobby: Calligraphy, Lego building, Worldbuilding, Shooting, Bird watching, Shopping, Cooking

Introduction: My name is Nicola Considine CPA, I am a determined, witty, powerful, brainy, open, smiling, proud person who loves writing and wants to share my knowledge and understanding with you.