Back to Blog
Networking

Configuring 802.1X on Server 2019 and Ubiquiti Access Points

A comprehensive guide to setting up 802.1X authentication with Windows Server 2019 and Ubiquiti UniFi access points.

8T1ConnectionsApril 21, 2020
<h1><strong>Pre-Requisites</strong></h1><ul><li>Internal Certificate Authority (Or Publicly trusted certificate)</li><li>Unifi Deployed</li><li>Windows Active Directory Domain Deployed</li></ul><h2><strong>1 - Configuring Windows</strong></h2><p><strong>Note: You can't install NPAS role on Server Core Editions</strong></p><p>Firstly install NPAS onto 2 domain joined servers running windows server 2019.</p><p>The PowerShell script here should do this:</p><p><strong>"Install-WindowsFeature NPAS -IncludeManagementTools"</strong></p><p><img src="https://www.8t1connections.co.uk/wp-content/uploads/2020/04/image-6.jpeg" height="298" width="705"></p><p>We're also going to want to add port 1812 inbound on windows firewall (If enabled)</p><h2><strong>2 - Add AP's as RADIUS Clients</strong></h2><p>For this to work, each of the AP's will require a static IP.</p><p>To set a static IP in Unifi, go to devices and select your AP, then settings on the right and down at the bottom you will see this screen.</p><p><img src="https://www.8t1connections.co.uk/wp-content/uploads/2020/04/image-1.jpeg" height="349" width="401"></p><p>Now we've got it a static IP, we can add it as a RADIUS client on our Servers</p><p>Firstly Open Server Manager -&gt; Tools -&gt; Network Policy Server -&gt; Radius Servers and Clients</p><p>Right click on RADIUS Clients then select New Client</p><p><img src="https://www.8t1connections.co.uk/wp-content/uploads/2020/04/image-5.jpeg" height="593" width="463"></p><h2><strong>3 - Configure NPS</strong></h2><p>This is where we need to make sure our Certificate is already installed</p><p>Open Server Manager -&gt; Tools -&gt; Network Policy Server -&gt; Select NPS (Local)</p><p>Under Standard Configuration in the middle section, select RADIUS server for 802.1x Wireless or Wired Connections</p><p>Select Configure 802.1X</p><p><img src="https://www.8t1connections.co.uk/wp-content/uploads/2020/04/image-4.jpeg" height="259" width="522"></p><p>Select Secure Wireless Connections</p><p>You can change the name if you wish</p><p><img src="https://www.8t1connections.co.uk/wp-content/uploads/2020/04/image-3.jpeg" height="235" width="547"></p><p>Click Next</p><p>Make sure your AP's are in the Radius Clients List</p><p>Use the add and remove buttons to edit this list</p><p>Click Next</p><p>On Configure an Authentication Method, Drop down to "Microsoft: Secured password (EAP-MSCHAP v2)"</p><p>Click Next</p><p>Under Specify User groups you can add specific user groups for WiFi access (If you don't enter anything here, this policy will apply to all users)</p><p>Click Next</p><p>Traffic Controls settings don't need changing</p><p>Click Next</p><p>Click Finish</p><p>Now we need to modify this policy to make it work for us:</p><p>From within the NPS Page, go to Policies -&gt; Network Policies and the right click and select properties of the policy you've just created</p><p>Select the Constraints Tab then Authentication Methods</p><p>We now need to modify the EAP types, Click the Add button and select "Microsoft: Protected EAP (PEAP)"</p><p>Now select edit on this and modify the certificate to your trusted certificate</p><p>Click OK</p><p>Now remove the EAP type "Microsoft: Secured password (EAP-MSCHAP v2)</p><p>Also unselect the less secure authentication methods</p><p>That should leave you with something like this</p><p><img src="https://www.8t1connections.co.uk/wp-content/uploads/2020/04/image-2.jpeg" height="442" width="540"></p><h2><strong>4 - Unifi Configuration Time</strong></h2><p>On your Unifi Controller - go to System Settings</p><p>Then Profiles</p><p>Then Radius tab</p><p>Add a Radius profile</p><p><img src="https://www.8t1connections.co.uk/wp-content/uploads/2020/04/image-7.jpeg" height="385" width="482"></p><p>Now go to wireless networks</p><p>Create a new wireless network</p><p><strong>Once all provisioned, you should now have working 802.1X wifi network</strong></p>
802.1XNetworkingUbiquitiWindows ServerRADIUS
Share: