Introduction
This guide demonstrates the authentication process of devices based on their respective physical MAC addresses using Media Access Control (MAC). Once the source MAC address is identified, the switch generates an access-request message, with the user/machine’s MAC address as the identity, and sends it to the RADIUS server. The RADIUS server performs MAC authentication after getting the access-request message.
The RADIUS authentication server determines whether to grant access to the user/device and specifies the level of access the client should receive. After making this decision, the RADIUS server transmits the access-accept, allowing the user/machine to access the network.
If you are interested in setting up EAP-TLS Authentication, you can find the relevant instructions and resources at the following link: How to Set Up Passwordless RADIUS Authentication with an Ubiquiti UniFi Access Point
Creating a Core Provider in SecureW2
Core Providers manage digital identities that help organizations to authenticate their users or employees and grant or revoke access permissions as needed. Follow the steps below to create a Core Provider in the JoinNow Management Portal and configure it for MAC Authentication:
- Log in to the JoinNow Management Portal.
- Navigate to Integration Hub > Core Platforms.
- Click Add.
- In the Name and Description fields, enter a suitable name and description for your core provider.
- From the Type drop-down list, select MAC Authentication.
- Click Save.
Creating Groups
Groups allow you to organize devices for MAC Authentication.
To create a group, perform the following steps:
- Click the Groups tab and then click Add Group.
- In the pop-up, enter the name and description for the group.
- Click Save.
- Click Update to create the group.
Creating Match Rules
A match rule allows RADIUS to authenticate devices without requiring each MAC address to be added individually. When a device’s MAC address matches a rule, RADIUS automatically accepts and registers the device the first time it connects and assigns it to the group specified in the rule.
To create a match rule, perform the following steps:
- Click the Match Rules tab.
- Click Add Rule.
- In the MAC Match Rule pop-up, enter a Name for the rule. The name can contain up to 255 characters.
- From the Type drop-down list, select a rule type and enter the corresponding value:
- Range – Matches MAC addresses within a specified range. In the MAC Address Range fields, enter the starting and ending MAC addresses. Example: 64:16:7F:A0:00:00 – 64:16:7F:AF:FF:FF.
- MAC Prefix – Matches a block of MAC addresses using a base address and prefix length. In the MAC Prefix field, enter the base MAC address followed by a prefix length between /0 and /48. Example: 64:16:7F:00:00:00/24
- Wildcard – Matches MAC addresses based on a pattern. In the Wildcard field, use * to represent variable trailing bytes. Example: 64:16:7F:*:*:*
Wildcards are supported only for trailing bytes. For example, 64:*:7F:00:00:00 is not supported.
NOTE: MAC addresses must use colons or hyphens as separators, for example 64:16:7F:AF:00:00 or 64-16-7F-AF-00-00.
- Range – Matches MAC addresses within a specified range. In the MAC Address Range fields, enter the starting and ending MAC addresses. Example: 64:16:7F:A0:00:00 – 64:16:7F:AF:FF:FF.
- From the Group Name drop-down list, select the group to assign to devices that match the rule.
- In the Description field, enter a description for the rule.
- Click Save.
- Click Update.
When a device connects, RADIUS first checks whether its MAC address is registered individually. If the MAC address is not registered, RADIUS checks the match rules. If the MAC address matches a rule, the device is automatically authenticated and registered in the group specified by that rule. Devices added manually retain their assigned group, even if their MAC addresses also match a rule.
NOTE:
- A match rule cannot overlap with another rule in the same organization, including rules configured in other MAC Authentication core providers. If two rules overlap, an error is displayed, and the new rule is not saved.
- Changing a rule’s Type or value, or deleting the rule, removes the devices registered through that rule. A confirmation prompt is displayed before the change is applied. After you click Update, a message indicates how many MAC addresses were removed. A removed device is registered again the next time it connects, provided its MAC address still matches a rule.
- Changing only the rule’s name, group, or description does not remove registered devices.
- A group assigned to a match rule cannot be deleted.
Add Devices
This section explains how to add devices to the MAC Authentication configuration in the JoinNow Management Portal. You can add devices individually by entering each device’s MAC address and assigning it to the appropriate group, or add multiple devices at once by uploading a .csv file.
The following sections describe both methods for adding devices:
- Add Device – Add and configure a single device by providing its MAC address, group, and description.
- Upload Device(s) – Add multiple devices simultaneously by uploading a CSV file containing the MAC addresses and assigning them to a selected group.
Add Devices Individually
This section explains how to add an individual device to a MAC Group by entering its MAC address in the JoinNow Management Portal.
To add a device individually, perform the following steps:
- Select the MAC Authentication core provider created earlier and click Edit.
- Click the MAC Addresses tab.
- Click Add Device.
- On the displayed pop-up window, in the MAC Address field, enter the MAC address of the device you want to authenticate.
- From the Group Name drop-down list, select the group name you created in the Creating Groups section.
- In the Description field, enter a suitable description for the device.
- Click Save.
Upload Devices via CSV
This section explains how to add multiple devices to a MAC Group at once by uploading a .csv file containing their MAC addresses.
To upload devices using a CSV file, perform the following steps:
- Click the MAC Addresses tab.
- Click Upload Device(s).
- On the pop-up window, from the Group Name drop-down list, select the group name you created in the Create a MAC Group section.
- In the File field, click Choose file to select the .csv file containing the MAC addresses of the devices.
NOTE: The uploaded .csv file can be a maximum of 256 KB and can contain as many MAC addresses as fit within that size.
NOTE: The MAC address must be in either AA:BB:CC:DD:EE:FF or AA-BB-CC-DD-EE-FF format. - Click Upload. The list of device MAC addresses is displayed.
- Click Update.
Delete a Device
This section describes how to delete devices from the MAC Authentication configuration in the JoinNow Management Portal. Devices can be deleted individually, or multiple devices can be deleted at once.
To delete a device individually:
- Select the MAC Authentication core provider created earlier and click Edit.
- Select the MAC Addresses tab.
- Click the Delete icon next to the device you want to delete.
- Click Update.
To delete multiple devices at once:
- Select the MAC Authentication core provider created earlier and click Edit.
- Select the MAC Addresses tab.
- In the Devices section, click Delete Device(s).
- On the Delete Device(s) pop-up window, in the File field, click Choose file to select the .csv file containing the MAC addresses of the devices you want to delete.
- Click Upload.
- Click Update.
Policy Management
JoinNow Management offers policy-based management to facilitate VLAN-based segmentation. The policies to be configured are:
Creating a Policy Workflow
A Policy Workflow grants a user access to defined resources. To create a policy workflow, perform the following steps:
- Navigate to Policy Management > Policy Workflows.
- Click Add Policy Workflow.
- In the Name and Display Description fields, enter a name and a suitable description for your policy workflow.
- Click Save.
- The page refreshes, and the Conditions tab is displayed.
- Select the Conditions tab.
- From the Core Provider drop-down list, select the core provider you created with the MAC Authentication type.
- In the Groups field, select the group you created earlier.
- Click Update.
Creating a Network Policy
The purpose of a network policy is to specify how Cloud RADIUS will authorize access to a particular user role. To create and configure the Network policy, perform the following steps:
- Navigate to Policy Management > Network.
- Click Add Network Policy.
- In the Name and Display Description fields, enter a name and a suitable description for your network policy.
- Click Save.
- The page refreshes, and the Conditions and Settings tabs appear.
- Select the Conditions tab.
- Click Add rule and select the Policy Workflow to assign to the Network Policy. This mapping directs SecureW2 RADIUS to validate the device’s MAC address against the selected Policy Workflow during authentication.
- Select the Settings tab.
- From the Access drop-down list, select any one of the options to allow or deny authentication requests. The default value is “Allow”.
- To configure MFA, select the checkbox to enable MFA.
- From the Perform MFA Using drop-down list, select a core provider for MFA.
- Click Add Attribute.
- From the Dictionary drop-down list, select an option:
- Radius: IETF – This is what we will use for the following attributes, as we are using standard RADIUS attributes for VLAN assignment.
- Custom: Used for any VSAs (Vendor-Specific Attributes).
- From the Dictionary drop-down list, select an option:
- From the Attribute drop-down, select Filter-Id.
NOTE: Filter-Id is created on your access point to form a VLAN range. - In the Value field, enter the VLAN filter-ID you wish to connect to.
- Click Save.
Configuring MAC-based RADIUS Authentication in Unifi
Follow the steps below to set up MAC-based Authentication using Unifi:
- Log in to the Unifi Portal.
- On the left pane, select Profiles.
- Click Create New RADIUS Profile.
- In the New RADIUS Profile page, for the Name field, enter the name of your RADIUS profile.
- Under the RADIUS Assigned VLAN Support section, select the Enable checkbox for Wireless Networks.
- In the RADIUS Settings section, for Authentication Servers, enter the IP Address, Port and Shared Secret. From the JoinNow Management Portal (navigate to RADIUS > RADIUS Configuration), copy the IP Address, Port, and Shared Secret and paste them into the IP Address, Port, and Shared Secret fields in the Unifi.
NOTE: The details of the RADIUS profile must be from the Organization in which the MAC-based authentication IDP was created in the Creating a Core Provider in SecureW2 section.
- After entering the RADIUS details, click Add.
- Click Apply Changes.



















