Windows Server 2019

Installing Configuring Troubleshooting Windows Server 2019 NPS as RADIUS

A look at Installing Configuring Troubleshooting Windows Server 2019 NPS as RADIUS to authenticate network clients and apply policy

Over the last few days, I have been playing around with a few switches and configuring some 802.1X authentication between the switches and a Microsoft RADIUS server. I wanted to throw a quick block post out there to step through getting a Microsoft Network Policy Server configured to serve as a RADIUS server for clients on the network and how to configure this in basic terms. The configuration is not difficult, but it is tedious. If you skip one small step or configuration, you can leave yourself scratching your head for hours trying to chase down issues. However, there are some troubleshooting tools to note with RADIUS that makes life easier with figuring out what is going on if authentication requests etc. Let’s take a look at Installing Configuring Troubleshooting Windows Server 2019 NPS as RADIUS to step through the installation and configuration and look at a few troubleshooting areas to note.

Installing Configuring Troubleshooting Windows Network Policy Server as RADIUS

The process to install the Network Policy Server in Windows Server 2019 is very straightforward.ย  It is simply a matter of installing the Network Policy Server role in Windows Server.ย  This is simply a next, next, finish process without even having to perform a Windows reboot.ย  The NPS component is found under theย Server Roles portion of the Add Roles and Features wizard.

Beginning-to-install-the-Network-Policy-and-Access-Server-Role-Windows-Server-2019
Beginning to install the Network Policy and Access Server Role – Windows Server 2019

Add the additional features that are required to install the role.

Add-additional-features-needed-to-the-Network-Policy-Server-role-in-Windows-Server-2019
Add additional features needed to the Network Policy Server role in Windows Server 2019

The role is now selected.

The-Network-Policy-Server-role-is-added-after-additional-features-are-selected
The Network Policy Server role is added after additional features are selected

Click Next.

Network-Policy-Server-things-to-note-during-install
Network Policy Server things to note during install

Confirm the installation of the NPS role.

Confirming-the-install-of-Network-Policy-Server
Confirming the install of Network Policy Server

The NPS Role installation finishes successfully.

Feature-installation-of-Network-Policy-Server-completes-successfully
Feature installation of Network Policy Server completes successfully

Now that the role has been added successfully, we can start configuring the NPS role to serve as a RADIUS server for network devices.

Configuring and Troubleshooting Windows Server 2019 RADIUS server

One of the first things you want to do when getting the RADIUS server configured is to setup the Connection Request Policies and theย Network Policies.ย  What is the difference between the two?

Connection Requestย Policies –ย Connection request policies are sets of conditions and settings that allow designating which RADIUS servers perform the authentication and authorization of connection requests recevied from RADIUS clients. They can also determine which RADIUS servers perform the accounting functions.

  • The time of day and day of the week
  • The realm name in the connection request
  • The type of connection being requested
  • The IP address of the RADIUS client

Network policies are sets of conditions, constraints, and settings that allow designating who is authorized to connect to the network and the circumstances under which they can or can’t connect. These can be viewed as an ordered set of rules. Each network policy has a Policy State setting that allows enabling or disabling the policy. These are processed from the top down.

An-overview-of-connection-and-network-policies
An overview of connection and network policies

Let’s look at the properties of the default connection policyย Use Windows authentication for all users to see what settings are contained.ย  Note under the overview, the policy is set to enabled.ย  It is perfectly ok to use the default connection policy and edit it to customize the properties as needed.

Default-NPS-connection-policy-overview
Default NPS connection policy overview

The only conditions defined in theย Conditions tab isย Day and time restrictions that define when connections can be made.

NPS-default-connection-policy-conditions
NPS default connection policy conditions

Note under theย Settings tab we see theย Authentication configuration that allows configuring which requests are processed locally or sent on to another RADIUS server.

Default-connection-policy-authentication-settings
Default connection policy authentication settings

I am just going to use the default connection policy.ย  However, under theย Network Policies container, I have created a new policy calledย TestPolicy and moved this to the top of the order for processing above the default network policies already there.

Creating-a-new-network-policy-for-defining-who-is-able-to-connect
Creating a new network policy for defining who is able to connect

Under theย TestPolicy network policy, we note it is set to enabled and the Access permission given is toย Grant access.

Overview-of-new-network-policy-in-Windows-Server-2019-NPS
Overview of new network policy in Windows Server 2019 NPS

As noted above, the network policy definesย who is allowed to connect.ย  Below, I have added a Windows group under theย Conditions tab to allow connection.

Windows-Server-2019-NPS-Server-Conditions-tab-for-new-network-policy
Windows Server 2019 NPS Server Conditions tab for new network policy

Under theย Constraints tab, here is where you can define many important aspects of the network policy such as theย Authentication Methods.ย  I have addedย Microsoft: Protected EAP (PEAP)ย andย Microsoft: Secured password (EAP-MSCHAP v2) as authentication protocols

PEAP authentication is a jointly developed authentication protocol by Cisco, Microsoft and RSA Security that encapsulates EAP within an encrypted and authenticated TLS encryption tunnel.ย  this requires a certificate for providing the TLS tunnel.

Under-the-constraints-tab-add-PEAP-authentication
Under the constraints tab add PEAP authentication

Using PowerShell in Windows Server 2019, you can easily provision a self-signed certificate for use with the PEAP authentication protocol.

New-SelfSignedCertificate -dnsnae "<your server FQDN>" -KeyLength 2048 -CertStoreLocation cert:LocalMachineMy -NotAfter (Get-Date).AddYears(20)

Creating-a-new-self-signed-certificate-for-use-with-PEAP-authenticationCreating a new self-signed certificate for use with PEAP authentication

Now, if we go back and edit the properties of the PEAP authentication protocol in our network policy, you will see an acceptable certificate for use with the PEAP protocol.ย  The certificate that was just created will be used by default.

Configuring-the-certificate-created-for-use-with-PEAP-authentication
Configuring the certificate created for use with PEAP authentication

RADIUS can be time consuming and difficult to troubleshoot by trying the authentication request from a real client.ย  Thankfully, there are great RADIUS simulators that make this process much easier.ย  One that I really like to use is the NTRadPing utility which you can download here.ย  This makes simulating the traffic extremely easy.ย  One thing that needs to be done to allow testing with NTRadPing is to add the PAP authentication protocol which is unencrypted.ย  Once you place the RADIUS server into production, you want to remove this.ย  However, for testing, this is fine.

Add-PAP-temporarily-to-test-the-RADIUS-server-using-NTRADPING
Add PAP temporarily to test the RADIUS server using NTRadPing

Add your workstation IP as a RADIUS client under theย RADIUS Clients and Servers node.ย  This consists of enabling the client, giving it a friendly name, entering the FQDN or IP address, and choosing a testย shared secret passphrase.

Adding-a-test-workstation-as-a-RADIUS-client-to-use-NTRADPING-to-test-RADIUS
Adding a test workstation as a RADIUS client to use NTRadPing to test RADIUS

After downloading and launching NTRadPing, there are several areas of the app to make note of.ย  We need to enter the address of the RADIUS server to be tested, the port, the Shared secret key which on the screen is cleartext.ย  Then enter the user-name and password.ย  On theย Request type choose theย Authentication Request in the drop down box.ย  Then simply click theย Send button.ย  In theย RADIUS Server reply box, you should see theย response: Access-Accept if you are using a user that fits both the connection and network policies configured.

Configure-NTRADPING-to-test-authentication-request-over-to-the-RADIUS-server
Configure NTRADPING to test authentication request over to the RADIUS server
Configure-RADIUS-accounting-for-logging-requests-authentication-etc
Configure RADIUS accounting for logging requests authentication etc
Configure-local-logging-in-the-accounting-properties-of-the-RADIUS-server
Configure local logging in the accounting properties of the RADIUS server

As you can see below, after enabling the RADIUS server logging under theย Accounting configuration, you will start to see log files created under the default location ofย c:WindowsSystem32LogFiles.

Log-files-generated-for-RADIUS-server-accounting
Log files generated for RADIUS server accounting

Thoughts

If you are in need of utilizing a RADIUS server in your environment,ย Installing Configuring Troubleshooting Windows Server 2019 NPS as RADIUS server is very straightforward.ย  The Network Policy Server role allows having a powerful RADIUS solution that allows providing authentication requests to network clients, switches, and other devices that support RADIUS server integration.ย  Using great little tools such as NTRadPing and the built-in logging allow for easy troubleshooting of the configuration.ย  Stay tuned for future posts where we will take this integration even further and show the process of authenticating and apply network policies to users based on RADIUS server authentication.

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.

Related Articles

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.