Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » Configure VPN on Windows Server: How to allow remote VPN Access for Domain or Local Users
  • AssignBitLockerBackuprights
    How to delegate permissions for backing up TPM password Network | Monitoring
  • Create your own Network on AWS from Scratch
    VPC, Subnet, NACL, Security Group: Create your own Network on AWS from Scratch [Part 2] AWS/Azure/OpenShift
  • Norton AV
    Enable or disable Norton silent mode on Mac Anti-Virus Solution
  • macrestart
    How to Enable or Prevent Reopen Windows when logging back in after Restart or Shutdown on Mac Mac
  • Permit a Blocked File or App in Windows Security
    How to Permit a Blocked File or App in Windows Security Manually Windows
  • filezilla 1
    Connect to a FileZilla Server: How to install and configure a FileZilla Server on Windows Windows Server
  • Top 10 communication software for Mac 2021
    Top 10 communication software for Mac 2021 Reviews
  • Feature image   Hiren's boot
    Recover your data after system failure with Hiren’s boot Backup

Configure VPN on Windows Server: How to allow remote VPN Access for Domain or Local Users

Posted on 19/04/202110/09/2023 Christian By Christian 2 Comments on Configure VPN on Windows Server: How to allow remote VPN Access for Domain or Local Users
Configure VPN on Windows

Remote access is used to access your network remotely. This provides an encrypted and secure connection over an insecure network such as the Internet. A remote access connection consists of a server(s) and clients that remotely access the contents of the server (network). Then, what is a virtual private network (VPN)? A VPN is a means of connecting to a private network such as your corporate network. A VPN combines the virtues of a dial-up connection to a dial-up server with the ease and flexibility of an Internet connection. These steps to can be used to configure VPN on Windows Server 2016, 2019, and 2022. Here are some related contents: Windows 10 Always On VPN (AOVPN), Quick Steps in Setting Up AWS VPC, how to Activate (License) Cisco ASA 5505, how to create a certificate template for BitLocker Network Unlock, and how to configure AnyConnect SSL VPN Client Connections.

This guide will demonstrate how to install, configure and use Windows Server VPN. In this guide, we will be using "Only VPN" for providing remote access to your clients. In the next guide, I will be showing you how to use the rich remote access experience based on DirectAccess by enabling DirectAccess on this server. The two tunneling protocols included with Windows are:
- Point-to-Point Tunneling Protocol (PPTP): Provides data encryption using Microsoft Point-to-Point Encryption.
- Layer Two Tunneling Protocol (L2TP): Provides data encryption, authentication, and integrity using IPSec.

Step A

This step is optional and it depends if you will be using L2TP to configure VPN on Windows in your environment. In this case, you will have to install a certificate to the VPN server and VPN client or on the VPN Server only. You may want to see how to install and configure Active Directory Certificate Services. Please see the following interesting related how-to articles on how to import a certificate into the Trusted Root and Personal file certificate store, how to request a certificate signing request in Windows using Microsoft Management Console, and how to export a certificate in PFX format in Windows. You may also be interested in this guide: How to install and configure Active Directory Certificate Services.

Step B

Launch the server Manager from the Start Menu as shown below

launch server manager in Windows Start Menu

On this window, click on “Add Roles and Features”. 

Add Roles and Features

Click on Next as this window provides you with information only. You may also want to skip this step in the future by checking n the skip button.

click on next

Select Role-Based or Feature-based installation.
– Please see some role and feature-based installations I have configured previously. How to Setup a Domain Controller, how to add a second Domain Controller to your environment, how to set up and install WDS role, and how to install DHCP role on Windows Server, etc.

Select Role-Based or Feature-based installation and click on Next

Click on Next on the Server selection window. We only have one server in the pool, there no much work to do here 🙂

click on next

Select the Remote Access Role and click Next.

Select remote Access
Click on Next

Click on the Next button again

click on Next

In the step, select the DirectAccess and VPN (RAS), Click on the Add features and click on Next to procced.

select Direct access and VPN (RAS)
Add DirectAccess and VPN (RAS) to features
Click on Next

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

clcik on install

You can now close this window. A restart is not required for this installation.

click on close

Part C -Post-deployment Configuration

After the features are installed, you see the link, click on “Open the Getting Started Wizard“.

Open the Getting Started Wizard

Select Deploy VPN only as shown below.

clcick on Deploy VPN only

This will open the Routing and Remote Access Management Console. Right click on the Server name and click on “Configure and Enable Routing and Remote Access“.

Configure and Enable Routing and Remote Access

On this Window, click on Next

click on Next

Select Custom configuration and click on Next

Select Custom configuration and click on Next

Select “VPN Access“ as shown below and click on Next to proceed

Select “VPN Access“ as shown below and click on Next to proceed

Click on Finish. Click on start the service that is prompted. This will ensure the “Routing and Remote Access” Service is started.

Click on Finish
Click on start the service that is prompted.

Right click on your server name and click on Properties.

Right click on your server name and click on Properties.

This will open the Properties Windows as shown below. On the general tab, I am okay with the settings.

click on ok

– Click on the Security tab and ensure that you only have EAP and MS-CHAP v2 selected

Authentication Methods
ensure that you only have EAP and MS-CHAP v2 selected

On the IPv4 tab, select Static address pool. if you have a DHCP server, select “Dynamic Host Configuration Protocol (DHCP).
– I will statically define the pool range as shown below. You will see later that the IP address from this pool will be assigned to my VPN client.

ApplyClcik
Select Static Pool Address amd Enable Broadcast name resolution

Select the Logging tab and check the Log additional Routing and Remote Access information box.

Select the Logging tab and check the Log additional Routing and Remote Access information box.

Part D

To Allow Remote VPN Access for a Domain User: The process of configuring a user’s property settings to allow remote VPN access is slightly different when the account is a domain user account, as opposed to a local user account. Local user property settings are adjusted through the computer management utility in Windows operating systems while domain user property settings are adjusted through the active directory users and computers utility in Windows server software. In order to grant a domain user remote VPN access, you have to have access to your network’s domain controller computer.

- Active Directory Users and Computers" to open the Active Directory Users and Computers window.
- Double-click on the domain user account you would like to grant remote VPN access to. The Properties box for the selected domain user will open up.
- Go to the Dial-in tab. In the Remote Access Permissions (Dial-in or VPN) section, click the "Allow access" radio button. Click "Apply" to save your new settings. Click "OK" to close the Properties box.
Go to the Dial-in tab. In the Remote Access Permissions (Dial-in or VPN) section, click the "Allow access" radio button. Click "Apply" to save your new settings. Click "OK" to close the Properties box.
If you wish to create local accounts to access your VPN, please follow the steps discussed here. Alternatively, you can launch there this via the server manager as well.
- Click on Start, type "run" and type "compmgmt.msc" to access computer management. 
- Right click on Users and click New User. Give the user a name and password.
Click on Start, type "run" and type "compmgmt.msc" to access computer management. 
Right click on Users and click New User. Give the user a name and password.
You can proceed to Part F and part E is optionally and start testing by connecting to the VPN server.

Part E – Create firewall rules (Optional step)

Since I will be demonstrating the L2PT setup, let me create the following rules. Open the Windows Firewall with Advanced Security applet via Windows Administrative tool or via Server Manager as shown below.

Open the Windows Firewall with Advanced Security

Right click on Inbound Rules and click New Rule. You could also create a new rule under “Actions” as shown below.

create a new rule under "Actions"

Select Port and click Next under Rule Type

Select Port and click Next under Rule Type

Since I will be demonstrating the L2PT setup, let me create the following rules (You do not need to create them). Select UDP and type port 500,1701 and 4500 then click Next.

Screenshot-2021-04-18-at-23.12.19

Click Allow the connection and then click Next

Screenshot-2021-04-18-at-23.12.52

Apply the rule to all profiles and click on Next

Screenshot-2021-04-18-at-23.13.15

Enter your desired rule name and description if you wish and click on Finish.

Screenshot-2021-04-18-at-23.13.48

As you can see, we have our firewall rule ready for L2TP VPN Server.

Screenshot-2021-04-18-at-23.14.54

Part F – Creating VPN Client Connection (Profile)

Whether it’s for work or personal use, you can connect to a virtual private network (VPN) on your Windows 10 PC. A VPN connection can help provide a more secure connection and access to your company’s network and the internet. I recommend setting up a shared connection.

Screenshot-2021-04-18-at-23.28.06-1

Set up (create) a new VPN connection: Before you can connect to a VPN, you must have a VPN profile on your PC. You can either create a VPN profile on your own or set up a work account to get a VPN profile from your company.

Screenshot-2021-04-18-at-23.28.25

Select connect to a workplace as shown below.

Screenshot-2021-04-18-at-23.29.04

Select use my internet connection (VPN)

Screenshot-2021-04-18-at-23.29.49

You will be prompted to enter the domain name or IP address etc. Click on Remember my credential and
– Allow other people to use this connection.
– When you are done, click on Create.

Screenshot-2021-04-18-at-23.33.10

As you can see, our connection profile is now available. You can now connect to the VPN. This basically means, that when you have a VPN profile, you’re ready to connect to your organization’s network.
– If the Connect button displays under the VPN connection, select connect or

Screenshot-2021-04-18-at-23.34.04

Sign-in method

For the Type of sign-in info, we are using a username and password.
Note: Depending on your setup (authentication method), you could use a one-time password, certificate, or a smart card.

Screenshot-2021-04-18-at-23.34.52
Screenshot-2021-04-18-at-23.35.07

As you can see, I am now connected to my VPN server.

Screenshot-2021-04-18-at-23.35.55

Let’s verify some basic settings. You can see we now have an additional network interface for our VPN connection as shown below.

Screenshot-2021-04-18-at-23.37.16
Screenshot-2021-04-18-at-23.37.39

You will also notice my client’s has an IP address assigned from the defined IP address range, which is “192.168.xxx.101.”

Screenshot-2021-04-18-at-23.38.44

Other ways to see if you’re connected to the VPN

Select the Network icon on the far right of the taskbar, then see if the VPN connection says Connected as shown below.

Screenshot-2021-04-19-at-00.42.17

As you can see from the image below, we have connected to the server I via the domain user account I enabled remote access for.

Screenshot-2021-04-19-at-01.46.29-1

I hope you found this blog post on Configuring VPN on Windows Server helpful. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:Remote Access, RemoteConnection, VPN, Windows 10, Windows Server 2016

Post navigation

Previous Post: How to upgrade PowerShell to the latest version on macOS via Homebrew
Next Post: How to reinstall Server Manager and disable Server Manager at startup for all users and login users

Related Posts

  • screenshot 2020 02 07 at 20.59.01
    How to use the PsInfo utility from SysInternals Windows Server
  • screenshot 2020 03 13 at 20.24.17
    How to install Cygwin packages from the command line Windows Server
  • sandbox
    How to Configure Windows Sandbox Virtualization
  • image
    How to find Computer Serial Number stated change to be filled by OEM Windows Server
  • DC creation as recommended by Microsoft
    Setup a Domain Controller as Recommended by Microsoft Windows Server
  • yxxycx yx
    How to change the Default First-Site-Name in Active Directory Windows Server

More Related Articles

screenshot 2020 02 07 at 20.59.01 How to use the PsInfo utility from SysInternals Windows Server
screenshot 2020 03 13 at 20.24.17 How to install Cygwin packages from the command line Windows Server
sandbox How to Configure Windows Sandbox Virtualization
image How to find Computer Serial Number stated change to be filled by OEM Windows Server
DC creation as recommended by Microsoft Setup a Domain Controller as Recommended by Microsoft Windows Server
yxxycx yx How to change the Default First-Site-Name in Active Directory Windows Server

Comments (2) on “Configure VPN on Windows Server: How to allow remote VPN Access for Domain or Local Users”

  1. Avatar photo Tchuyev says:
    04/08/2021 at 1:17 PM

    Can you use OpenVPN (or other) as an alternative Windows client to connect on to a Windows Server VPN Server? Thanks

    Log in to Reply
    1. chris Christian says:
      04/08/2021 at 6:50 PM

      Unfortunately, I haven’t used this VPN client. Perhaps you should visit this page for more information: https://openvpn.net/client-connect-vpn-for-windows/

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a
 
  • AssignBitLockerBackuprights
    How to delegate permissions for backing up TPM password Network | Monitoring
  • Create your own Network on AWS from Scratch
    VPC, Subnet, NACL, Security Group: Create your own Network on AWS from Scratch [Part 2] AWS/Azure/OpenShift
  • Norton AV
    Enable or disable Norton silent mode on Mac Anti-Virus Solution
  • macrestart
    How to Enable or Prevent Reopen Windows when logging back in after Restart or Shutdown on Mac Mac
  • Permit a Blocked File or App in Windows Security
    How to Permit a Blocked File or App in Windows Security Manually Windows
  • filezilla 1
    Connect to a FileZilla Server: How to install and configure a FileZilla Server on Windows Windows Server
  • Top 10 communication software for Mac 2021
    Top 10 communication software for Mac 2021 Reviews
  • Feature image   Hiren's boot
    Recover your data after system failure with Hiren’s boot Backup

Subscribe to Blog via Email

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

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.