13. June 2024 • 5 min. read

Deploying Windows Server from Scratch (Part 4)

NPS Server & RADIUS Authentication

WindowsNetworking

Deploying and configuring the NPS Server, Setting up Aruba Virtual Controller for Radius authentication

Part 1 Part 2 Part 3 Part 4

Hi there,

this will probably the last part in this series. Today we will deploy and configure the NPS Server, using the certificate we generated in the previous post, for the authentication of the end users.

We will also go over the configuration of an Aruba Access Point, using the radius server for the authentication.

System Information

HostnameIPFunction
TEST-DC01192.168.152.200/24Domain Controller / Active Directory / DNS / DHCP
TEST-FILE192.168.152.201/24File Services
TEST-CA192.168.152.202/24Certificate Authority
TEST-RADIUS192.168.152.203/24NPS Server, Radius Server

Network Information

Network192.168.152.0
Subnet255.255.255.0
Gateway192.168.152.254

Installing and configuring the NPS Server

Installing the Radius Server

For this, I deployed a new Windows Server, naming it “TEST-RADIUS”. Make sure that the server is in an OU which has the certificate group policy we created in part 3. I created another OU “Servers” for this and assigned the group policy.

AD: Servers OU with certificate auto-enrollment GPO assigned
AD: Servers OU with certificate auto-enrollment GPO assigned
GPO: Certificate policy linked to Servers OU
GPO: Certificate policy linked to Servers OU

As per usual, start the “Add Roles and Features” from the “Server Manager” and install the “Network Policy and Access Services”.

Add Roles: Selecting Network Policy and Access Services
Add Roles: Selecting Network Policy and Access Services

Once installed, we can start it through “Tools” -> “Network Policy Server”.

Server Manager: Opening Network Policy Server from Tools
Server Manager: Opening Network Policy Server from Tools

This will open the “Network Policy Server” window. Here, we can set up access policies for radius authentication requests.

Setting up the Radius Server

RADIUS Clients

First, we need to register the server with the Active Directory. Right-click on “NPS (local)” and select “Register server in Active Directory”. Click on “OK” to finish the authorization.

NPS: Right-click to register server in Active Directory
NPS: Right-click to register server in Active Directory
NPS: Active Directory registration confirmation
NPS: Active Directory registration confirmation
NPS: Active Directory registration complete
NPS: Active Directory registration complete

Next, we define the radius clients, that are allowed to communicate with the NPS server.

Right-click on the “RADIUS Clients” and select “New”.

NPS: Right-click RADIUS Clients to add new
NPS: Right-click RADIUS Clients to add new

Type in the IP or hostname of the client and create a shared secret. Just use the “Generate” button for that.

I will shorten the generated secret a little bit, just in case the Aruba AP doesn’t like the length.

NPS: RADIUS client IP address and shared secret
NPS: RADIUS client IP address and shared secret
NPS: RADIUS client created successfully
NPS: RADIUS client created successfully

Connection Request Policies

Alright. Next, we configure the “Connection Request Policies”. Again, Right-click and select “New”.

NPS: New Connection Request Policy
NPS: New Connection Request Policy

Give it a nice name.

NPS: Connection Request Policy name
NPS: Connection Request Policy name

Add the “NAS Port Type” condition to the policy and select Wireless 802.11.

NPS: Adding NAS Port Type condition
NPS: Adding NAS Port Type condition
NPS: Wireless 802.11 selected as NAS Port Type
NPS: Wireless 802.11 selected as NAS Port Type

Click next and finish the configuration.

Network Policies

Create a new policy under the “Network Policies”.

NPS: New Network Policy
NPS: New Network Policy

Give it a name, I will use “internal-wifi-policy”.

NPS: Network policy named internal-wifi-policy
NPS: Network policy named internal-wifi-policy

Add the following conditions.

User Groups”. I created an “WIFI” group and added the two users we created in previous posts, on the Domain Controller for this. We could also just use the “Domain Users” or the previously created “SHARE_RW” group. This is up to you.

NPS: Adding User Groups condition
NPS: Adding User Groups condition
NPS: Selecting the WIFI group
NPS: Selecting the WIFI group
NPS: WIFI group condition added to policy
NPS: WIFI group condition added to policy

Now add the “NAS Identifier”, here you can type in whatever you want. I will use “ARUBA”. This has to be identical on the Aruba Access Point, we will configure later.

NPS: Adding NAS Identifier condition
NPS: Adding NAS Identifier condition
NPS: NAS Identifier set to ARUBA
NPS: NAS Identifier set to ARUBA

In the next tab, allow the access.

NPS: Setting policy to allow access
NPS: Setting policy to allow access

Now we can set the authentication method.

Click “Add…” and select “Microsoft: Smart Card or other certificate”. Once added, click on “Edit” and select the certificate generated by the TEST-CA server.

Error Message when adding “Microsoft: Smart Card or other certificate

If you receive an error message when clicking on “Edit”, make sure that the certificate has been generated. Try the “gpupdate /force” command and if that does not work, check that your server is in an OU with the correct group policy assigned to it.

NPS: Adding authentication method
NPS: Adding authentication method
NPS: Smart Card or other certificate selected
NPS: Smart Card or other certificate selected
NPS: TEST-CA certificate selected for authentication
NPS: TEST-CA certificate selected for authentication

Remove the “MS-CHAP” and click “Next” until you finish the configuration.

NPS: Removing MS-CHAP authentication method
NPS: Removing MS-CHAP authentication method
NPS: Network policy configuration complete
NPS: Network policy configuration complete

Alright. That’s it.

Aruba Virtual Controller Configuration

Let’s configure the Aruba Access Point.

I will not show the whole process, since the Aruba AP is only an example. The configuration should be similar on other APs.

Login and navigate to “Configuration” -> “Security” and click on the + in the “Authentication Servers” section.

Aruba: Adding a new Authentication Server
Aruba: Adding a new Authentication Server
Aruba: RADIUS server IP and shared secret configuration
Aruba: RADIUS server IP and shared secret configuration
Aruba: RADIUS server saved in Authentication Servers
Aruba: RADIUS server saved in Authentication Servers

This should be enough to get a connection.

The Ending

Ok. That is it. We are at the end of the series “Deploying Windows Server Environment from Scratch”.

At this point, we should have a baseline for our small business. This will allow us to build upon our infrastructure, deploy new server and applications and having a centralized user authentication and management platform.

I might continue the series, if I can think of anything else, but that’s it, for now.

I might do this using Linux as a base. Hmm… we will see.

Till next time.

Part 1 Part 2 Part 3 Part 4

Comments

Search