How-To: Enable Cloud RADIUS with Entra ID Authentication in Ubiquiti UniFi

Learn how to securely log into your Ubiquiti UniFi network using Cloud RADIUS with Entra ID authentication.

Introduction - How to Protect Your Ubiquiti UniFi Network with Cloud RADIUS

Having a single Wi-Fi password for your network is a security nightmare. It’s impossible to know who has access to your network, and it’s nearly impossible to change the password regularly without causing major outages. The best way to secure your Ubiquiti UniFi network is to use WPA-Enterprise with either certificates or individual user accounts for authentication.

To protect your Ubiquiti UniFi network using certificates or Entra ID accounts, you will need a RADIUS server to handle authentication requests. EZRADIUS is a cloud-based RADIUS as a Service that integrates directly with Entra ID to provide secure authentication for your Ubiquiti UniFi network without needing to manage any RADIUS servers or infrastructure. Simply add EZRADIUS as a RADIUS server in your Ubiquiti UniFi Controller, and your users can log in using either passwordless certificates or their Entra ID username and password.

Overview of RADIUS Authentication with EZRADIUS

Video Guides - How to Set Up Cloud RADIUS in Your Ubiquiti UniFi Network

Want to follow along with step-by-step instructions? Check out our end-to-end YouTube video guides to follow along with setting up Cloud RADIUS in your Ubiquiti UniFi Network.

Prerequisites for Setting Up Cloud RADIUS for Ubiquiti UniFi

How to Create an EZRADIUS Subscription

An EZRADIUS billing subscription is required to create your cloud-based RADIUS server for your Ubiquiti UniFi network. If you do not already have an EZRADIUS subscription, follow this guide to create one.

Create an EZRADIUS Subscription

How to Set Up User Credentials for Cloud RADIUS

If you haven’t configured your authentication method yet, make sure to set that up before proceeding. This ensures that your users can authenticate properly when they connect to your Ubiquiti UniFi network.

How to Set Up Passwordless Certificate Authentication with RADIUS

Certificates are the best way to authenticate users or devices without the need for any passwords. Simply connect to the network and the certificate will handle the authentication for you. This is the most secure and user-friendly way to authenticate users in your Ubiquiti UniFi network.

While EZRADIUS supports any X.509 certificate such as ADCS and Microsoft Cloud PKI, the easiest way to create and manage certificates for your users is to use Keytos EZCA, a cloud-based PKI service that integrates directly with EZRADIUS. It only takes a few minutes to get started with EZCA and begin issuing certificates for passwordless Wi-Fi access in your Ubiquiti UniFi network.

Deploy Passwordless Certificates

How to Set Up Entra ID Users to Authenticate with RADIUS

Don’t want to manage certificates? No problem! You can authenticate your existing Entra ID users using their username and password without needing to manage any PKI infrastructure.

Note that if you have conditional access policies set up in Entra ID (such as MFA), you will need to add an exception for EZRADIUS in order for username/password authentication to work. View this page for more details on adding this exception.

Configure Conditional Access Exception

How to Set Up Local Users to Authenticate with RADIUS

Have legacy devices or non-Entra ID users? You can also create local users directly in EZRADIUS and authenticate them using their username and password. Check out this page for more information on creating local users in EZRADIUS or letting your Entra ID users self-register local RADIUS accounts if needed.

Create Local RADIUS Users

How to Set Up MAC Address Bypass for Non-Authenticating Devices

Some devices do not support secure authentication methods like EAP-TLS or EAP-TTLS. In these cases, you can use MAC Address Bypass (MAB) to allow these devices to connect to your Ubiquiti UniFi network without needing to authenticate. Note that MAC Address Bypass is not secure and should only be used for devices that do not support other authentication methods, and you should always be aware of the security risks involved. View this guide for more information on setting up MAC Address Bypass in EZRADIUS.

Set Up MAC Address Bypass

How to Set Up Your Cloud RADIUS Access Policies for Entra ID Authentication

An EZRADIUS Access Policy defines how EZRADIUS will authenticate users when they connect to your Ubiquiti UniFi network. You will need to create at least one access policy in EZRADIUS before you can connect your Ubiquiti UniFi network to EZRADIUS.

How to Create a Passwordless Certificate Access Policy

A certificate access policy allows you to accept X.509 certificates for authentication and determine which users or devices are allowed to connect to your Ubiquiti UniFi network. View this guide to learn how to create a certificate access policy in EZRADIUS if you have not already done so.

Create Certificate Access Policy

How to Create an Entra ID Username and Password Access Policy

An Entra ID username and password access policy allows you to authenticate your Entra ID users using their existing credentials. View this guide to learn how to create an Entra ID username and password access policy in EZRADIUS if you have not already done so.

Create Entra ID Password Access Policy

How to Create a Local Username and Password Access Policy

A local username and password access policy allows you to authenticate users that you have created directly in EZRADIUS. View this guide to learn how to create a local username and password access policy in EZRADIUS if you have not already done so.

Create Local User Access Policy

Step-by-Step Guide to Setting Up Cloud RADIUS for Ubiquiti UniFi

The following steps will guide you through the process of setting up Cloud RADIUS for your Ubiquiti UniFi network using EZRADIUS.

How to Add EZRADIUS as a RADIUS Server in Ubiquiti UniFi

Now that you have your EZRADIUS subscription and access policy set up, you can add EZRADIUS as a RADIUS server in your UniFi console.

How to Add a Cloud RADIUS Server to Ubiquiti UniFi

  1. Open your UniFi console from UniFi Site Manager or its local address.

  2. Click Network in the top menu.

    Ubiquiti UniFi console dashboard with Network application highlighted in the top menu
  3. In the left-hand menu, click the Settings gear icon.

    Ubiquiti UniFi Network dashboard with Settings gear icon highlighted in the left-hand menu
  4. In the Settings menu, select Networks.

    Ubiquiti UniFi Network Settings overview with Networks highlighted in the Settings menu
  5. Scroll down to the RADIUS Servers section and click Create New.

    Ubiquiti UniFi Network Settings Networks page showing RADIUS Servers list with Create New highlighted
  6. In the Add RADIUS Server panel, enter the following details:

    • Name: Enter something like EZRADIUS.
    • RADIUS Assigned VLAN Support: Check Wired Networks, Wireless Networks, or both, depending on the type of networks you want to use with EZRADIUS.
    • Leave TLS unchecked, because these steps set up Classic RADIUS authentication and not RadSec.
    Ubiquiti UniFi Add RADIUS Server panel with Name, RADIUS Assigned VLAN Support, and TLS settings highlighted

How to Get Your EZRADIUS Server IP Addresses for Ubiquiti UniFi RADIUS

You can get your EZRADIUS Server IP addresses from the EZRADIUS dashboard. These IP addresses are needed to configure your network controller to communicate with the EZRADIUS service.

  1. Navigate to the EZRADIUS Policies page from the left-hand menu.
  2. At the top of the Policies page, you will find the EZRADIUS Server IP addresses. Copy one of the IP addresses from the region closest to your network controller (you’ll add the others later). How to Setup Cloud RADIUS Profile in a network controller

How to Add EZRADIUS Server IP Addresses to Ubiquiti UniFi

Now that you have your first RADIUS server IP address, you can add it to your UniFi console.

  1. Back in the Add RADIUS Server panel, enter the RADIUS server IP address you copied earlier in the IP Address field.

  2. Leave the Port as the default of 1812.

    Ubiquiti UniFi Add RADIUS Server panel with IP Address and Port 1812 highlighted

How to Get Your EZRADIUS Shared Secret for Ubiquiti UniFi RADIUS

When you added your public IP address to your EZRADIUS policy, a shared secret was automatically generated for you. This shared secret is used to authenticate your network controller (RADIUS client) to the EZRADIUS server.

  1. In the EZRADIUS portal, navigate to the EZRADIUS Policies page from the left-hand menu.

  2. Scroll down to your RADIUS policy and find the Classic RADIUS Allowed IP Addresses section.

  3. For your public IP address, click on the eye icon to reveal the shared secret.

    How to View RADIUS Shared Secret in EZRADIUS

How to Add the EZRADIUS Shared Secret to Ubiquiti UniFi

Now that you have your EZRADIUS shared secret, you can add it to your UniFi console.

  1. Back in the Add RADIUS Server panel, set the Shared Secret to the shared secret that corresponds to your IP address from EZRADIUS.

  2. Click Add next to the Shared Secret field to add this server to the list. The server is not saved until you click Add at the bottom of the panel in a later step.

    Ubiquiti UniFi Add RADIUS Server panel with Shared Secret field and Add link highlighted
  3. Repeat these steps to add one IP address from each EZRADIUS region to keep your RADIUS authentication highly available.

How to Configure RADIUS Accounting in Ubiquiti UniFi

Accounting logs contain information about user sessions and can be useful for auditing and troubleshooting. You can optionally enable RADIUS Accounting in your UniFi console to send accounting logs to EZRADIUS. From there EZRADIUS can forward the logs to your SIEM and make them available in Audit Logs.

  1. Check the Accounting Servers box to send RADIUS Accounting logs to EZRADIUS.

  2. In IP Address, enter the same IP address you used for the RADIUS server.

  3. Leave the Port as the default of 1813 for accounting.

  4. Use the same Shared Secret as the RADIUS server.

  5. Click Add next to the Shared Secret field to add the accounting server to the list. Repeat for each RADIUS server IP address you added.

    Ubiquiti UniFi Add RADIUS Server panel with Accounting Servers checked and accounting IP Address, Port 1813, and Shared Secret highlighted

How to Save Your RADIUS Configuration in Ubiquiti UniFi

Now that you’ve added the RADIUS servers and accounting servers (if desired), you can save your RADIUS configuration.

  1. Leave Interim Update Interval unchecked.

  2. Click Add at the bottom of the panel to save your RADIUS server.

    Ubiquiti UniFi Add RADIUS Server panel listing RADIUS and accounting servers with Add button highlighted

How to Add a Cloud RadSec Server to Ubiquiti UniFi

  1. Open your UniFi console from UniFi Site Manager or its local address.

  2. Click Network in the top menu.

    Ubiquiti UniFi console dashboard with Network application highlighted in the top menu
  3. In the left-hand menu, click the Settings gear icon.

    Ubiquiti UniFi Network dashboard with Settings gear icon highlighted in the left-hand menu
  4. In the Settings menu, select Networks.

    Ubiquiti UniFi Network Settings overview with Networks highlighted in the Settings menu
  5. Scroll down to the RADIUS Servers section and click Create New.

    Ubiquiti UniFi Network Settings Networks page showing RADIUS Servers list with Create New highlighted
  6. In the Add RADIUS Server panel, enter the following details for your RadSec server:

    • Name: Enter something like EZRADIUS RadSec.
    • RADIUS Assigned VLAN Support: Check Wired Networks, Wireless Networks, or both, depending on the type of networks you want to use with EZRADIUS.
    Ubiquiti UniFi Add RADIUS Server panel for a RadSec server with Name and RADIUS Assigned VLAN Support highlighted
  7. Keep the Add RADIUS Server panel open. You’ll finish it in the next steps.

How to Create a RadSec Certificate and Private Key for Ubiquiti UniFi

A RadSec Client Certificate is required to authenticate your network controller (RADIUS client) to the EZRADIUS server over a secure TLS connection. You can create a RadSec Client Certificate using EZCA or a 3rd Party Certificate Authority.

How to Create a RadSec Client Certificate Using EZCA

EZRADIUS is integrated with EZCA to make it easy to generate a new RadSec Certificate directly in your browser.

  1. First, make sure you’ve added your EZCA Certificate Authority to your EZRADIUS policy under RadSec (RADIUS TLS) Client Configuration > Trusted Certificate Authorities and saved the policy.

  2. In the EZRADIUS dashboard, from the left-hand menu click on Create RadSec Certificate. (If you don’t see this option, make sure you have added an EZCA Certificate Authority to your policy as mentioned in the previous step.)

  3. Under the Issuing CA dropdown, select the EZCA Certificate Authority you previously added to your EZRADIUS policy. If you just have one, it will be selected by default.

  4. Optionally add Tags for your certificate to help identify it later.

  5. Keep the Subject Name as CN=radsec.

  6. Enter at least one IP address of your network controller in the IP Address field and click Add. This field isn’t used for RadSec authentication so even if you have a dynamic IP, you can still proceed with your current IP.

    How to Create RadSec Certificate for cloud RADIUS in EZRADIUS
  7. In the Certificate Location dropdown, select Generate Locally.

  8. Click on Request Certificate. It will take a few seconds to generate the certificate.

    How to Create cloud radius RadSec Certificate for cloud RADIUS in EZRADIUS
  9. Click on Download Full Certificate.

    How to Download RadSec Certificate in EZRADIUS
  10. This will download 2 files. The .key file is the private key and the .pem file is the certificate.

    How to Download RadSec Certificate in EZRADIUS
How to Create a RadSec Client Certificate Using a 3rd Party Certificate Authority

Refer to your PKI documentation for creating a new RadSec Client Certificate. You will need both the certificate (.pem) and the private key (.key) files.

Any 3rd Party Certificate Authority that can generate a certificate with the appropriate fields can be used to create a RadSec Client Certificate.

  1. First, make sure you’ve added your 3rd Party Certificate Authority to your EZRADIUS policy under RadSec (RADIUS TLS) Client Configuration > Trusted Certificate Authorities and saved the policy.
  2. Refer to your PKI documentation for creating a new RadSec Client Certificate. You will need both the certificate (.pem) and the private key (.key) files.

How to Upload a RadSec Certificate to Ubiquiti UniFi

Now that you’ve created your RadSec client certificate and private key, you can upload them to your UniFi console.

  1. Back in the Add RADIUS Server panel, configure the RadSec TLS settings:

    • TLS: Check this box to use RadSec.
    • Client Certificate: Click Upload and select your RadSec client certificate file (.pem).
    • Private Key: Click Upload and select your RadSec private key file (.key).
    • Private Key Password: If your private key is password protected, enter its password.
    Ubiquiti UniFi Add RADIUS Server panel with TLS checked and Client Certificate, Private Key, and Private Key Password highlighted

How to Get the RadSec CA Certificate from EZRADIUS

The RadSec CA Certificate is used by your network controller to verify the identity of the EZRADIUS server when establishing a secure TLS connection. You can download the RadSec CA Certificate directly from the EZRADIUS dashboard.

  1. Navigate to the EZRADIUS Policies page from the left-hand menu.

  2. Click Download RadSec CA Certificate and save it to your local machine. It should be named radsec_ca.cer, or similar.

    How to Add RADIUS Server for Entra ID in Your Network

How to Upload the RadSec CA Certificate to Ubiquiti UniFi

Now that you have your EZRADIUS RadSec CA certificate, you can upload it to your UniFi console so it can verify the EZRADIUS RadSec servers.

  1. Back in the Add RADIUS Server panel, under CA Certificate, click Upload and select the RadSec CA certificate file you downloaded earlier (radsec_ca.cer).

    Ubiquiti UniFi Add RADIUS Server panel with CA Certificate Upload highlighted

How to Get Your EZRADIUS Server IPs for Ubiquiti UniFi for RadSec

You can get your EZRADIUS Server IP addresses from the EZRADIUS dashboard. These IP addresses are needed to configure your network controller to communicate with the EZRADIUS service.

  1. Navigate to the EZRADIUS Policies page from the left-hand menu.
  2. At the top of the Policies page, you will find the EZRADIUS Server IP addresses. Copy one of the IP addresses from the region closest to your network controller (you’ll add the others later). How to Setup Cloud RADIUS Profile in a network controller

How to Add EZRADIUS RADIUS Servers in Ubiquiti UniFi for RadSec

Now that you have your first EZRADIUS RADIUS server IP address, you can add it to your UniFi console for RadSec.

  1. In IP Address, enter the EZRADIUS RADIUS server IP address closest to your UniFi console (you’ll add the others later).

  2. Set the Port to 2083, which is the port used for RadSec.

  3. For the Shared Secret, enter radsec, as required by the RadSec RFC.

  4. Click Add next to the Shared Secret field to add this server to the list.

    Ubiquiti UniFi Add RADIUS Server panel with IP Address, Port 2083, and Shared Secret 'radsec' highlighted
  5. Repeat for one IP address from each region to keep your RadSec authentication highly available.

How to Configure RADIUS Accounting in Ubiquiti UniFi for RadSec

Accounting logs contain information about user sessions and can be useful for auditing and troubleshooting. You can optionally enable RADIUS Accounting in your UniFi console to send accounting logs to EZRADIUS. From there EZRADIUS can forward the logs to your SIEM and make them available in Audit Logs.

  1. Check the Accounting Servers box to optionally send RADIUS Accounting logs to EZRADIUS.

  2. Use the same IP Address, Port (2083), and Shared Secret (radsec) as the RADIUS servers.

  3. Click Add next to the Shared Secret field to add the accounting server to the list. Repeat for each RADIUS server IP address you added.

    Ubiquiti UniFi Add RADIUS Server panel with Accounting Servers checked and accounting IP Address, Port 2083, and Shared Secret highlighted
  4. Leave Interim Update Interval unchecked.

  5. Click Add at the bottom of the panel to save your RadSec server.

    Ubiquiti UniFi Add RADIUS Server panel listing RadSec servers on port 2083 with Add button highlighted

How to Add a RADIUS Server to a Ubiquiti UniFi Network

Now that you have added EZRADIUS as a RADIUS server within UniFi, you can add it to your network so that when users connect to that network, they will be authenticated via EZRADIUS.

How to Add RADIUS to a Ubiquiti UniFi Wi-Fi Network

  1. In the Settings menu on the left, select WiFi.

    Ubiquiti UniFi Network Settings overview with WiFi highlighted in the Settings menu
  2. Click Create New (or click an existing network to edit it).

    Ubiquiti UniFi Network WiFi settings showing the WiFi networks list with Create New highlighted
  3. In the Create New WiFi panel, enter a Name (SSID) for your network.

  4. Under Network, select the network (VLAN) that clients on this WiFi should join.

    Ubiquiti UniFi Create New WiFi panel with Name field filled in as 'Contoso-Secure' and Network highlighted

    Leave the Password field empty. UniFi disables it once you choose an Enterprise security protocol in a later step.

  5. Next to Advanced, select Manual.

    Ubiquiti UniFi Create New WiFi panel with Advanced set to Manual highlighted
  6. Scroll down to the Security section and set Security Protocol to WPA3 Enterprise. If you have legacy devices that don’t support WPA3, select WPA2/WPA3 Enterprise instead.

  7. Select External RADIUS Server.

  8. Under RADIUS Profile, select the EZRADIUS profile you created earlier.

    Ubiquiti UniFi Create New WiFi Security section with WPA3 Enterprise, External RADIUS Server, and RADIUS Profile highlighted
  9. Click Create at the bottom of the panel to save your WiFi network.

    Ubiquiti UniFi Create New WiFi panel with Create button highlighted
  10. Done!

How to Add a RADIUS Server to a Ubiquiti UniFi Wired Network

How to Enable RADIUS Authentication in a Ubiquiti UniFi Switch

It’s easy to leverage your RADIUS server to authenticate users connecting to your Ubiquiti UniFi wired network using 802.1X authentication. Follow the steps below to enable RADIUS authentication on your Ubiquiti UniFi Switch(es).

  1. In the left-hand menu, click UniFi Devices.

  2. Select your switch from the list of devices, then select the Settings (gear) tab in the panel that opens.

  3. Under Advanced, uncheck Global Switch Settings.

  4. Check 802.1X Control.

  5. Under Credential Source, select External RADIUS Server.

  6. For RADIUS Profile, select the EZRADIUS profile you created earlier.

  7. Click Apply Changes to save your configuration.

    Ubiquiti UniFi switch settings panel with Global Switch Settings unchecked and 802.1X Control, External RADIUS Server, RADIUS Profile, and Apply Changes highlighted
How to Create a Port Profile for RADIUS Authentication in Ubiquiti UniFi

This step is only necessary if you want to create a reusable port profile for RADIUS authentication. You can also enable 802.1X directly on individual switch ports without creating a port profile.

  1. In the Settings menu, select Networks, then scroll down to Port Profiles under Global Switch Settings.

  2. Click Create New.

    Ubiquiti UniFi Network Settings Global Switch Settings showing Port Profiles list with Create New highlighted
  3. In the Create New panel, fill out the following fields:

    • Name: Enter a name for your port profile (for example, EZRADIUS Authentication).
    • Tagged VLAN Management: Set to Block All unless you want to use a specific VLAN.
    • Advanced: Select Manual.
    Ubiquiti UniFi Create New port profile panel with Name, Tagged VLAN Management set to Block All, and Advanced set to Manual highlighted
  4. Scroll down to Port Security and set 802.1X Control to Auto.

  5. Click Apply Changes to save your port profile.

    Ubiquiti UniFi Create New port profile panel with 802.1X Control set to Auto and Apply Changes highlighted
How to Assign the Port Profile to Switch Ports in Ubiquiti UniFi
  1. In the left-hand menu, click Ports.

  2. Click the port you want to configure for RADIUS authentication to open its settings.

  3. Turn on the Port Profile toggle.

  4. Select the port profile you created earlier.

  5. Click Apply Changes to save your configuration.

    Ubiquiti UniFi Port Settings panel with Port Profile turned on, the RADIUS authentication profile selected, and Apply Changes highlighted
  6. Repeat these steps for each port that should use RADIUS authentication.

How to Configure Your Devices to Use Cloud RADIUS with Ubiquiti UniFi

How to Push the RADIUS CA Certificate and Wi-Fi Profile Using Microsoft Intune

Follow these Intune step-by-step guides to push the required CA certificate and Wi-Fi profile to your users’ devices so they can seamlessly connect to your Ubiquiti UniFi network using Cloud RADIUS.

Microsoft Intune Guide

How to Push the RADIUS CA Certificate and Wi-Fi Profile Using Jamf Pro

Follow these Jamf Pro step-by-step guides to push the required CA certificate and Wi-Fi profile to your users’ devices so they can seamlessly connect to your Ubiquiti UniFi network using Cloud RADIUS.

Jamf Pro Guide

How to Manually Configure the RADIUS CA Certificate and Wi-Fi Profile on Your Devices

Follow these manual configuration step-by-step guides to manually configure the required CA certificate and Wi-Fi profile on your users’ devices so they can connect to your Ubiquiti UniFi network using Cloud RADIUS.

Manual Configuration Guide

How to Troubleshoot Cloud RADIUS Issues in Ubiquiti UniFi

Not able to connect to your Ubiquiti UniFi network after setting up EZRADIUS? Refer to this troubleshooting guide to help diagnose and resolve common issues when using Cloud RADIUS with Ubiquiti UniFi.

Troubleshooting Guide

We also have a detailed video guide to help you troubleshoot common Cloud RADIUS issues with Ubiquiti UniFi below:

Enjoying EZRADIUS? Leave Us a Review!

We hope you’re enjoying using EZRADIUS to secure your Ubiquiti UniFi network! If you have a moment, we would greatly appreciate it if you could leave us a review on G2. Your feedback helps other IT professionals discover EZRADIUS and helps us continue to improve our service. Thank you for your support!