Ubiquiti Hardware
This page covers how to configure Ubiquiti hardware for use with RADNAC.
Ubiquiti have documentation for their equipment for how to configure Configuring a RADIUS Server in UniFi wireless networks.
These instructions were tested using a self-hosted Ubiquiti Server OS version 5.1.42 (running Network Server 10.6.106).
|
Ubiquiti place artificial restrictions upon their hardware that prevent use of WPA Enterprise without a UniFi controller. This means means you need to either self host their (freely) downloadable appliance software or seek a third party vendor that will do this for you, options of which include:
These are not endorsed services (internally we self host) but instead are provided as a starting point for you to look for a solution that works for you. |
For this we need the IP addresses RADNAC provides for the service. To obtain these go to the managed application page and navigate the menu on the right and listed at the bottom, under the ‘Outputs’ section, are the values we need (your values will be different):
-
‘serviceIPv4’: our example will use the value ‘
203.0.113.14’ -
‘serviceIPv6’: our example will use the value ‘
2001:db8:1016:2::1fe’Ubiquiti does not support IPv6 addresses for use with RADIUS servers so we will be ignoring it here.
The instructions can be broken into two parts:
-
Create a RADIUS profile
-
Create a RADIUS device in RADNAC
-
Create a profile in your Ubiquiti Server OS appliance describing how to communicate with RADNAC.
If you are new to this vendors equipment, it is recommended you initially follow the non-RadSec instructions below and then once working you migrate to using RadSec.
-
-
Apply the RADIUS profile to either a new wireless network and/or your wired network ports.
RADIUS Profile
Open a browser window to the administrative management page for your wireless equipment.
In Ubiquiti’s user interface, you need to navigate the menu , scroll to the ‘RADIUS Servers’ section of the page and then click ‘Create New’.
To the right, a panel will open titled ‘Add RADIUS Server’, fill in the fields with name set to ‘radnac’, leave the VLAN (Wired and Wireless networks) and TLS checkboxes unchecked, type in the ‘serviceIPv4’ from above as the ‘IP Address’, leave ‘Port’ set to its default (1812) and type in the shared secret you used when adding a device to RADNAC. Now click on the `Add’ immediately to the right of the shared secret textbox.
Check the ‘Accounting Servers’ checkbox and similarly as above add the ‘IP Address’, leave ‘Port’ set to its default (1813), type in the shared secret and click on the `Add’ immediately to the right of the shared secret textbox.
Lastly check ‘Interim Update Interval’, but change the time period to 300 seconds. Now click on the Add button at the bottom of the right side panel.
RadSec
| Ubiquiti’s wired Ethernet hardware does not support RadSec so you will need to use plain (unencrypted) RADIUS over UDP which is unreliable for EAP-TLS (certificate) authentications but should be (mostly) okay for EAP-TTLS (user credential) authentications. |
For this you will need:
-
The CA (or self-signed server certificate) in PEM format that you configured RADNAC to present for its Global TLS X.509 named
ca.pem(orradnac.pemfor the self signed cerificate). -
A suitable client certificate (may be self-signed) with its two certificate parts split out into the files
unifi.pem(public) andunifi.key(private).-
Ubiquiti do not offer tooling to generate certificates for it to use leaving you to handle this (complex) task so to help we have provided instructions on several ways you can do this yourself.
-
Now navigate to and under ‘RADIUS Servers’ either edit your existing radnac entry or create a new one. Set the following:
-
TLS: checked
-
Client Certificate: upload
unifi.pem. -
Private Key: upload
unifi.key. -
Private Key Password: leave blank
-
CA Certificate: upload
ca.pem(orradnac.pem).
Now update the details for the RADIUS server so:
-
Port: set to
2083. -
Shared Secret:
radsec
Repeat this for ‘Accounting Servers’ too.
Your equipment should now configured to use RadSec when communicating to RADNAC.
Access
Wireless
Now we will create a new wireless network for your mobile phone to connect to.
Navigate to and click on ‘Create New’ found near the top. Leave the fields set to their defaults other than:
-
Name:
radnacwifi -
Advanced: Manual
-
Security Protocol: WPA2 Enterprise
-
External RADIUS Server: checked
-
RADIUS Profile:
radnacNow click on the Create button at the bottom.
Your equipment should now configured to use RADNAC.