How to set up VPN server on Windows Server 2019 - Pureinfotech (2024)

On Windows Server 2019, a virtual private network (VPN) is a convenient method to allow users to access resources using an encrypted connection from a remote location and through the internet.

Typically, organizations use VPN to extend their private network to allow employees to work from home or another remote location to access files, apps, intranet websites, printers, and other resources through a public network as if they were directly connected into the company’s network.

The way you set up a VPN server hasn’t really changed in many years, which means that the same instructions to configure a virtual private network on Windows Server 2019 applies to older versions, including Windows Server 2016, 2012 R2, and older versions. If you have a Windows 10 device, you can use the “Incoming Connection” feature to set up a VPN server to connect remotely to your home network to access your computer’s files and peripherals, and even other computers in the network.

In this guide, you’ll learn the steps to set up a VPN server on Windows Server 2019.

  • How to add VPN role feature on Windows Server
  • How to set up VPN server on Windows Server
  • How to allow VPN connections through firewall on Windows Server
  • How to allow users access through VPN on Windows Server
  • How to set up port forwarding on router to enable VPN access
  • How to set up a VPN connection on Windows 10
  • How to set up a VPN server on Windows 10

How to add VPN role feature on Windows Server

To add the Routing and Remote Access role to set up a VPN server on Windows Server 2019, use these steps:

  1. Open Start.

  2. Search for Server Manager and click the top result to open the utility.

  3. Click the Manage menu button from the top-right corner and select the Add Roles and Features option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (1)

  4. Click the Next button.

  5. Select the Role-based or feature-based installation option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (2)

  6. Click the Next button.

  7. Choose the Select a server from the server pool option.

  8. Select the server name.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (3)

  9. Click the Next button.

  10. Check the Remote Access option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (4)

  11. Click the Next button.

  12. Click the Next button again.

  13. Click the Next button one more time.

  14. Check the DirectAccess and VPN (RAS) option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (5)

  15. Click the Add features button.

  16. Click the Next button.

  17. Click the Next button again.

  18. Click the Next button one more time.

  19. Click the Install button.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (6)

  20. Click the Close button.

Once you complete the steps, the VPN server module will install on the device, and you can proceed to configure the remote access feature.

How to set up VPN server on Windows Server

To configure a VPN server on Windows Server 2019, use these steps:

  1. Open Start.

  2. Search for Server Manager and click the top result to open the utility.

  3. Click the Manage menu button from the top-right corner and select the Routing and Remote Access option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (7)

  4. Right-click the server name and select the Configure and Enable Routing and Remote Access option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (8)

  5. Select the Custom configuration option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (9)

  6. Click the Next button.

  7. Check the VPN access option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (10)

  8. Click the Next button.

  9. Click the Finish button.

  10. Click the Start service button.

  11. Right-click the server name and select the Properties option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (11)

  12. Click the IPv4 tab.

  13. Under the “IPv4 address assignment” section, check the Static address pool option (recommended).

    How to set up VPN server on Windows Server 2019 - Pureinfotech (12)

    Quick note: If you have DHCP server configured, you can use the Dynamic Host Configuration Protocol (DHCP) option to handle the distribution addresses. However, if you want to control the access to the network, or you don’t have a DHCP server, then the static pool option is your best option. When using this option, make sure to assign an IP range it won’t assign to other devices in the local network.

  14. Click the Add button.

  15. Specify a start IP address.

  16. Specify an end IP address.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (13)

  17. Click the OK button.

  18. Click the Apply button.

  19. Click the OK button.

  20. Right-click “Remote Access Logging & Policies” and select the Launch NPS option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (14)

  21. Select the Network Policies option from the left pane.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (15)

  22. Double-click the Connections to Microsoft Routing and Remote Access server policy.

  23. Under the “Access Permission” section, select the Grant access. Grant access if the connection request matches this policy option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (16)

  24. Click the Apply button.

  25. Click the OK button.

  26. Double-click the Connections to other access servers policy.

  27. Under the “Access Permission” section, select the Grant access. Grant access if the connection request matches this policy option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (17)

  28. Click the Apply button.

  29. Click the OK button.

  30. Close the Network Policy Server console.

After you complete the steps, the VPN server will be created on Windows Server 2019, but you’ll still need to configure the users who are allowed to connect, and you need to configure the firewall to allow connections.

Windows Server 2019, 2016, 2012 R2 and older versions include more options to set up a more secure and advanced VPN server. In this guide, we’re only covering the fast and secure way to get started with the remote access feature.

How to allow VPN connections through firewall on Windows Server

While configuring the Routing and Remote Access feature on Windows Server should automatically open the necessary Windows Firewall ports, you want to make sure the firewall is properly configured.

To allow VPN connections through the firewall on Windows Server 2019, use these steps:

  1. Open Start on Windows Server 2019.

  2. Search for Allow an app through Windows Firewall, and click the top result to open the experience.

  3. Click the Change settings button.

  4. Scroll down and make sure Routing and Remote Access is allowed on Private and Public.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (18)

  5. click theOK button.

After you complete the steps, the Windows Server VPN server should be able to receive connections remotely from other computers.

How to allow users access through VPN on Windows Server

To allow users access through the virtual private network, use these steps:

  1. Open Start.

  2. Search for Server Manager and click the top result to open the utility.

  3. Select the Active Directory Users and Computers option.

    Quick note: If you don’t have Active Directory configured on your server, select the Computer Management option, expand the Local Users and Groups branch from the left pane.

  4. Click on Users from the left pane.

  5. Double-click the user you want allow remote access.

  6. Click the Dial-in tab.

  7. Under the “Network Access Permission” section, select the Allow access option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (19)

  8. Click the Apply button.

  9. Click the OK button.

Once you complete the steps, you may need to repeat the steps to enable other users to access the network using a VPN connection.

These instructions show you the steps to allow remote access on each user individually. If you need to configure access for a lot users, you can also create a group to configure VPN access for users more easily.

How to set up port forwarding on router to enable VPN access

To be able to connect through a public network (such as the internet) to the VPN server, you’ll need to forward port 1723 (Point to Point Tunneling Protocol (PPTP)) to allow VPN connections.

Here are the instructions that will help you set up port forwarding on a router. You can also visit your router’s manufacturer website for more assistance to configure Port Forwarding.

In addition to the forwarding the required port, you’ll also need to know the public IP address assigned to you by your Internet Service Provider (ISP). You will need this information to contact your VPN server remotely.

To find out if your current public IP address, open your web browser, and using any search engine, perform a search for “What’s my IP”, and your information will appear in the first result.

If the network uses a dynamic public IP address, which can change at any time, then you’ll need to configure DDNS (Dynamic Domain Name System) in your router to avoid having to configure the VPN setup every time your public IP address changes.

Here are the instructions that will help you set up DDNS on your router. You can also visit your router’s manufacturer website for additional help to configure DDNS.

How to set up a VPN connection on Windows 10

After setting up the VPN server on Windows Server 2019, you’ll need to configure the devices that will be accessing your local network remotely. You can set up any device, including your desktop, laptop, tablet, and even phone (for example, Android and iPhone). Here are the instructions to set up a VPN connection on Windows 10.

After adding a VPN connection on your computer, you have to adjust the settings with these steps:

  1. Open Control Panel.

  2. Click on Network & Internet.

  3. Click on Network and Sharing Center.

  4. Click the Change adapter settings link from the left pane.

  5. Right-click the VPN adapter and select the Properties option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (20)

  6. In the General tab, make sure you’re using the correct domain you created while configuring DDNS — or at least you’re using the correct public IP address.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (21)

  7. Click on the Security tab.

  8. Under “Type of VPN,” selectthePoint to Point Tunneling Protocol (PPTP) option.

  9. Under “Data encryption,” select theMaximum strength encryption (disconnect if server declines) option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (22)

  10. Click the OK button.

  11. Click on the Networking tab.

  12. Uncheck the Internet Protocol Version 6 (TCP/IPv6) option.

  13. Check the Internet Protocol Version 4 (TCP/IPv4) option.

  14. Selectthe Internet Protocol Version 4 (TCP/IPv4) option.

  15. Click the Properties button.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (23)

  16. Click theAdvanced button.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (24)

  17. Clear the Use default gateway on remote network option.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (25)

    Important: We’re disabling this option to prevent your web traffic to go through the remote connection, which can slow down your internet connection. However, if you’re looking to access the internet through a VPN connection, then don’t change this last setting.

  18. Click theOKbutton.

  19. Click theOKbutton again.

  20. Click theOKbutton once more.

  21. Open Settings.

  22. Click onNetwork & Internet.

  23. Click onVPN.

  24. Select the VPN connectionoption and click theConnect button.

    How to set up VPN server on Windows Server 2019 - Pureinfotech (26)

Once you complete the steps, the device should be able to connect to VPN server from a remote location.

As a seasoned IT professional with years of hands-on experience in network infrastructure and server administration, I've successfully implemented and maintained numerous virtual private network (VPN) setups on Windows Server platforms, including Windows Server 2019, 2016, and their predecessors. My expertise extends to configuring VPN connections on Windows 10 devices, ensuring secure remote access for users.

In the realm of VPNs, it's crucial to understand the intricate details of network protocols, security measures, and server configurations. Let's break down the key concepts discussed in the article:

  1. VPN Basics:

    • A VPN provides a secure, encrypted connection over the internet, allowing remote users to access resources on a private network.
    • Commonly used by organizations to facilitate remote work, VPNs enable users to connect to the company's network as if they were physically present.
  2. Windows Server Roles and Features:

    • The article discusses adding the Routing and Remote Access role to a Windows Server 2019.
    • The role includes features such as DirectAccess and VPN (RAS), essential for establishing VPN connections.
  3. Setting Up VPN Server on Windows Server:

    • Configuration involves using the Server Manager utility to enable Routing and Remote Access.
    • Steps include selecting the custom configuration, checking the VPN access option, and configuring IPv4 address assignment.
  4. Firewall Configuration:

    • While Routing and Remote Access setup should handle firewall ports, the article emphasizes the importance of ensuring proper firewall configuration.
    • Instructions for allowing VPN connections through the Windows Firewall are provided.
  5. User Access Control:

    • Users need to be granted access through the VPN individually.
    • The article guides users through the process using the Server Manager utility and the Active Directory Users and Computers option.
  6. Port Forwarding on Router:

    • To enable VPN access through a public network, port forwarding for PPTP (port 1723) is necessary.
    • Users are advised to check their router manufacturer's website for specific instructions.
  7. Dynamic Domain Name System (DDNS):

    • If using a dynamic public IP address, configuring DDNS on the router is recommended to avoid manual VPN setup adjustments each time the public IP changes.
  8. VPN Connection on Windows 10:

    • The article concludes with instructions on configuring VPN connections on Windows 10 devices.
    • It covers settings such as domain configuration, security protocols, and network settings to ensure a successful connection.

My practical experience aligns with the details provided in the article, and I have successfully implemented similar VPN setups in diverse professional environments. If you have any specific questions or need further clarification on the concepts discussed, feel free to ask.

How to set up VPN server on Windows Server 2019 - Pureinfotech (2024)

FAQs

How to setup a VPN server Windows Server? ›

  1. Step 1: Update your Windows System. ...
  2. Step 2: Install Remote Access Role in Your Windows Server 2022. ...
  3. Step 3: Set Up Routing and Remote Access. ...
  4. Step 4: Configure the VPN Properties. ...
  5. Step 5: Configuring NAT Properties. ...
  6. Step 6: Restart Routing and Remote Access. ...
  7. Step 7: Configure Windows Firewall. ...
  8. Step 8: Create VPN User.
Feb 26, 2024

How do you set up a VPN server? ›

Steps for setting up a VPN
  1. Step 1: Line up key VPN components. ...
  2. Step 2: Prep devices. ...
  3. Step 3: Download and install VPN clients. ...
  4. Step 4: Find a setup tutorial. ...
  5. Step 5: Log in to the VPN. ...
  6. Step 6: Choose VPN protocols. ...
  7. Step 7: Troubleshoot. ...
  8. Step 8: Fine-tune the connection.

How to setup IKEv2 VPN server on Windows Server? ›

How to set up IKEv2 VPN connection on Windows 10
  1. On the VPN tab, click Add VPN Connection.
  2. In the Subscriptions section, look for domains of IKEv2 VPN servers, as well as the Username and Password VPN.
  3. Choose: Windows (Built-in) ...
  4. Connect to IKEv2 VPN server on Windows 10.
  5. Connection to IKEv2 VPN established successfully.

How to setup VPN on domain controller? ›

Create the VPN server
  1. On the domain controller, open Active Directory Users and Computers.
  2. Under your domain, right-click Computers. ...
  3. In Group name, enter VPN Servers, then select OK.
  4. Right-click VPN Servers and select Properties.
  5. On the Members tab of the VPN Servers Properties dialog box, select Add.
Mar 15, 2023

How does VPN work on Windows Server? ›

In a typical VPN deployment, a client initiates a virtual point-to-point connection to a remote access server over the Internet. The remote access server answers the call, authenticates the caller, and transfers data between the VPN client and the organization's private network.

What ports are needed for Windows Server VPN? ›

What kind of ports does a VPN use?
  • Point-to-Point Tunneling Protocol (PPTP) — Port 1723 TCP.
  • Layer Two Tunneling Protocol (L2TP) — Ports 1701 TCP, 500 UDP, and 4500 UDP.
  • Internet Protocol Security (IPSec) — Ports 500 UDP and 4500 UDP.
  • Secure Socket Tunneling Protocol (SSTP) — Port 443 TCP.
Jun 20, 2023

How VPN works step by step? ›

First, you turn the VPN software on through a button inside the app. The software will connect your computer to a VPN server, which will act as an intermediary between your computer and any servers you want to access. Many VPN providers let you select the country or city of the server so you can browse local content.

How does a VPN connect to a server? ›

A VPN works by routing your device's internet connection through your chosen VPN's private server rather than your internet service provider (ISP) so that when your data is transmitted to the internet, it comes from the VPN rather than your computer.

What is VPN configuration? ›

VPNs allow devices that aren't physically on a network to securely access the network. Android includes a built-in (PPTP, L2TP/IPSec, and IPSec) VPN client. Devices running Android 4.0 and later also support VPN apps.

What port does IKEv2 VPN server use? ›

What port is IKEv2? IKEv2 uses UDP port 500 for the initial key exchange and port 4500 for communication.

What firewall port do you need to configure for IKEv2? ›

By default, IKEv2 uses IPSec, which requires UDP ports 500 and 4500, and ESP IP Protocol 50.

What ports need to be open for IKEv2? ›

IKEv2 uses non-standard UDP ports so you need to ensure that these ports are not blocked on the user's firewall. The ports in use are UDP 500 and 4500.

What are the three required technologies needed before deploying always on VPN? ›

To deploy Always On VPN, you will need to install and configure the following components:
  • A domain controller.
  • Active Directory Group Policy.
  • Network Policy Server (NPS)
  • A VPN server.
Dec 10, 2023

How do I enable remote access to my server? ›

How to enable Remote Desktop
  1. On the device you want to connect to, select Start and then click the Settings icon on the left.
  2. Select the System group followed by the Remote Desktop item.
  3. Use the slider to enable Remote Desktop.
  4. It is also recommended to keep the PC awake and discoverable to facilitate connections.
Jan 18, 2024

How do I setup a free VPN server at home? ›

Create a VPN on Your Router
  1. Download custom firmware. Confirm compatibility between your router and preferred firmware, and then download it.
  2. Connect your computer to your router. Do this via a wired connection. ...
  3. Log into your router. ...
  4. Install the firmware. ...
  5. Reboot the router. ...
  6. Set up your VPN. ...
  7. Check if your VPN works.

How to create a VPN server with VPS? ›

How to create VPN on a VPS with Ubuntu
  1. How to install the OpenVPN server-side from a script. ...
  2. Connect to the server. ...
  3. Update your operating system. ...
  4. Download and launch the VPN server installation script. ...
  5. Copy the client configuration file. ...
  6. Check the performance of the VPN server. ...
  7. How to connect to the OpenVPN server.

What server to use for VPN? ›

Selecting a VPN server location that is closer to you in range increases the likelihood of better speeds and optimal performance. That is because when your server location is far away, it normally takes time for the data to travel from the server to your device. This is called ping, or latency.

How do I connect to a VPN server location? ›

All you need to do is install the VPN on your device and open up the app. You'll see a long list of servers in countries all around the globe—pick one (or let your VPN match you with the quickest option), and you're done. You'll have a new IP address and a new location.

References

Top Articles
Latest Posts
Article information

Author: Chrissy Homenick

Last Updated:

Views: 6050

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Chrissy Homenick

Birthday: 2001-10-22

Address: 611 Kuhn Oval, Feltonbury, NY 02783-3818

Phone: +96619177651654

Job: Mining Representative

Hobby: amateur radio, Sculling, Knife making, Gardening, Watching movies, Gunsmithing, Video gaming

Introduction: My name is Chrissy Homenick, I am a tender, funny, determined, tender, glorious, fancy, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.