{"id":4725,"date":"2025-03-25T20:20:40","date_gmt":"2025-03-25T20:20:40","guid":{"rendered":"http:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/?p=4725"},"modified":"2025-03-25T20:20:40","modified_gmt":"2025-03-25T20:20:40","slug":"setting-up-radius-on-unifi","status":"publish","type":"post","link":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/2025\/03\/25\/setting-up-radius-on-unifi\/","title":{"rendered":"Setting Up Radius on Unifi"},"content":{"rendered":"<p><strong>Guide to Setting Up a RADIUS Authentication Server for Unifi Wireless Network<\/strong><\/p>\n<h3>Overview<\/h3>\n<p>This guide will walk you through setting up a RADIUS authentication server on your Windows Active Directory domain to allow staff to log in to your Unifi wireless network using their AD credentials. Additionally, we will configure certificate-based authentication for staff laptops to enable automatic WiFi logins. We will also configure VLAN assignments so that students using RADIUS authentication are assigned a different VLAN than staff.<\/p>\n<hr \/>\n<h2><strong>Step 1: Install and Configure Network Policy Server (NPS) on Windows Server<\/strong><\/h2>\n<ol>\n<li><strong>Install NPS<\/strong>\n<ul>\n<li>Open <strong>Server Manager<\/strong> on your Windows Server.<\/li>\n<li>Click <strong>Manage &gt; Add Roles and Features<\/strong>.<\/li>\n<li>Select <strong>Network Policy and Access Services<\/strong> and then <strong>Network Policy Server (NPS)<\/strong>.<\/li>\n<li>Complete the installation.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Register NPS with Active Directory<\/strong>\n<ul>\n<li>Open <strong>NPS<\/strong> via <strong>Server Manager &gt; Tools &gt; Network Policy Server<\/strong>.<\/li>\n<li>Right-click <strong>NPS (Local)<\/strong> and select <strong>Register Server in Active Directory<\/strong>.<\/li>\n<li>Confirm the registration.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add a RADIUS Client (Unifi Controller)<\/strong>\n<ul>\n<li>Expand <strong>RADIUS Clients and Servers<\/strong> in NPS.<\/li>\n<li>Right-click <strong>RADIUS Clients<\/strong>, select <strong>New<\/strong>.<\/li>\n<li>Set a <strong>Friendly Name<\/strong> (e.g., &#8220;Unifi Controller&#8221;).<\/li>\n<li>Enter the <strong>IP address<\/strong> of your Unifi AP Range. (e.g, 10.66.4.1\/22)<\/li>\n<li>Set a <strong>Shared Secret<\/strong> (you\u2019ll need this later in Unifi settings).<\/li>\n<li>Click <strong>OK<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr \/>\n<h2><strong>Step 2: Configure Network Policy for Staff and Student Authentication with VLAN Assignments<\/strong><\/h2>\n<ol>\n<li><strong>Create a New Network Policy for Staff<\/strong>\n<ul>\n<li>Expand <strong>Policies<\/strong>, right-click <strong>Network Policies<\/strong>, and select <strong>New<\/strong>.<\/li>\n<li>Name the policy (e.g., &#8220;Staff WiFi Authentication&#8221;).<\/li>\n<li>Click <strong>Next<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Specify Conditions<\/strong>\n<ul>\n<li>Click <strong>Add<\/strong> and select <strong>User Groups<\/strong>.<\/li>\n<li>Choose <strong>Domain Users<\/strong> or a specific AD security group (e.g., &#8220;Employees&#8221;).<\/li>\n<li>Click <strong>Next<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Configure Authentication Methods<\/strong>\n<ul>\n<li>Select <strong>Microsoft: Protected EAP (PEAP)<\/strong>.<\/li>\n<li>Click <strong>Edit<\/strong> and select a valid certificate (see Step 3 for issuing a certificate).<\/li>\n<li>Ensure <strong>EAP-MSCHAPv2<\/strong> is checked.<\/li>\n<li>Check Wireless &#8211; IEEE 802.11 in the NAS Port Type<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>Click <strong>Next<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ol>\n<li><strong>Configure VLAN Assignment for Staff<\/strong>\n<ul>\n<li>Under <strong>Settings &gt; Standard RADIUS Attributes<\/strong>, add:\n<ul>\n<li><strong>Tunnel-Medium-Type<\/strong>: Set to <strong>802 (Wireless)<\/strong>.<\/li>\n<li><strong>Tunnel-Pvt-Group-ID<\/strong>: Enter the VLAN ID for staff (e.g., &#8220;50&#8221;).<\/li>\n<li><strong>Tunnel-Tupe<\/strong>: Set to Virtual LANs (VLAN)<\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Next<\/strong> and <strong>Finish<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create a New Network Policy for Students<\/strong>\n<ul>\n<li>Follow the same above but changing the AD group and VLAN.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr \/>\n<h2><strong>Step 3: Set Up a Certificate Authority for Device Authentication<\/strong><\/h2>\n<ol>\n<li><strong>Install Certificate Services on Windows Server<\/strong>\n<ul>\n<li>Open <strong>Server Manager &gt; Add Roles and Features<\/strong>.<\/li>\n<li>Select <strong>Active Directory Certificate Services<\/strong>.<\/li>\n<li>Install <strong>Certificate Authority (CA)<\/strong> and <strong>Network Device Enrollment Service (NDES)<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create a Server Certificate for NPS<\/strong>\n<ul>\n<li>Open <strong>Certification Authority<\/strong>.<\/li>\n<li>Right-click <strong>Certificate Templates<\/strong>, select <strong>Manage<\/strong>.<\/li>\n<li>Duplicate the <strong>RAS and IAS Server<\/strong> template.<\/li>\n<li>Name it &#8220;NPS Certificate&#8221;, enable <strong>Server Authentication<\/strong>.<\/li>\n<li>Issue the certificate for the NPS server.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Enroll Certificates for Staff Laptops<\/strong>\n<ul>\n<li>Open <strong>Group Policy Management<\/strong>.<\/li>\n<li>Create a new <strong>GPO<\/strong> (e.g., &#8220;WiFi Cert Deployment&#8221;).<\/li>\n<li>Navigate to <strong>Computer Configuration &gt; Policies &gt; Windows Settings &gt; Public Key Policies &gt; Automatic Certificate Request Settings<\/strong>.<\/li>\n<li>Add <strong>Computer Certificate Enrollment Policy<\/strong> and apply it to staff laptops.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr \/>\n<h2><strong>Step 4: Configure Unifi Controller for RADIUS Authentication<\/strong><\/h2>\n<ol>\n<li><strong>Access Unifi Network Controller<\/strong>\n<ul>\n<li>Open the <strong>Unifi Controller<\/strong>.<\/li>\n<li>Navigate to <strong>Settings &gt; Profiles &gt; RADIUS<\/strong>.<\/li>\n<li>Click <strong>Create New RADIUS Profile<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong><a href=\"http:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-content\/uploads\/sites\/2\/2025\/03\/Radius-Server.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-4729 size-thumbnail\" src=\"http:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-content\/uploads\/sites\/2\/2025\/03\/Radius-Server-150x150.png\" alt=\"\" width=\"150\" height=\"150\" \/><\/a>Add RADIUS Server Details<\/strong>\n<ul>\n<li>Set <strong>Authentication Server<\/strong> to your NPS server\u2019s IP.\n<ul>\n<li>Set <strong>Port 1812 <\/strong>and enter the <strong>Shared Secret<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>Set <strong>Authentication Server<\/strong> to your NPS server\u2019s IP.\n<ul>\n<li>Set <strong>Port 1813 <\/strong>and enter the <strong>Shared Secret<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>Set <strong>Accounting Server<\/strong> to your NPS server\u2019s IP.\n<ul>\n<li>Set <strong>Port 1645 <\/strong>and enter the <strong>Shared Secret<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>Set <strong>Accounting Server<\/strong> to your NPS server\u2019s IP.\n<ul>\n<li>Set <strong>Port 1646 <\/strong>and enter the <strong>Shared Secret<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Assign RADIUS Authentication to WiFi<\/strong>\n<ul>\n<li>Go to <strong>Settings &gt; WiFi<\/strong>.<\/li>\n<li>Create a new WiFi network.<\/li>\n<li>Set <strong>Security<\/strong> to <strong>WPA2-Enterprise<\/strong>.<\/li>\n<li>Choose the <strong>RADIUS Profile<\/strong> created earlier.<\/li>\n<li>Save and apply settings.<\/li>\n<li>The clients will now connect with their AD Username and Password to the VLAN specified in the NPS Policy.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr \/>\n<h2><strong>Step 5: Test and Deploy<\/strong><\/h2>\n<ol>\n<li><strong>Test AD Authentication<\/strong>\n<ul>\n<li>Connect a device to the WiFi.<\/li>\n<li>Enter an AD username and password. (try staff or student)<\/li>\n<li>Check NPS logs for authentication success and correct VLAN assignment.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Test Certificate Authentication<\/strong>\n<ul>\n<li>Ensure a staff laptop with a certificate automatically connects.<\/li>\n<li>Verify in the <strong>Unifi Controller<\/strong> that authentication was seamless.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Monitor and Troubleshoot<\/strong>\n<ul>\n<li>Check <strong>Event Viewer &gt; NPS Logs<\/strong> for errors.<\/li>\n<li>Verify <strong>RADIUS settings<\/strong> in Unifi.<\/li>\n<li>Ensure <strong>Group Policy is applied<\/strong> correctly.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr \/>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>You have successfully configured a RADIUS authentication server with Active Directory integration and certificate-based authentication for staff laptops. Additionally, VLAN assignments allow staff and students to be placed on separate networks automatically based on their authentication group.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Guide to Setting Up a RADIUS Authentication Server for Unifi Wireless Network Overview This guide will walk you through setting up a RADIUS authentication server on your Windows Active Directory domain to allow staff to log in to your Unifi wireless network using their AD credentials. Additionally, we will configure certificate-based authentication for staff laptops &hellip; <a href=\"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/2025\/03\/25\/setting-up-radius-on-unifi\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Setting Up Radius on Unifi<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-4725","post","type-post","status-publish","format-standard","hentry","category-tech-staff"],"_links":{"self":[{"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/posts\/4725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/comments?post=4725"}],"version-history":[{"count":4,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/posts\/4725\/revisions"}],"predecessor-version":[{"id":4730,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/posts\/4725\/revisions\/4730"}],"wp:attachment":[{"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/media?parent=4725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/categories?post=4725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.nationaltrail.k12.oh.us\/ittech\/wp-json\/wp\/v2\/tags?post=4725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}