Unifi Dream Machine MAC Authentication
This guide explains how to configure MAC-based authentication (802.1x) on a Unifi Dream Machine using RADIUS. MAC authentication allows devices without user credentials to be authenticated onto your network using their MAC address.
Enable 802.1x Control on Networks
- Go to Settings → Networks.
- Under Global Switch Settings, check the box to enable 802.1x Control.
- Select RADIUS Profile (Default).
- Select Fallback VLAN.
Configure WiFi for RADIUS MAC Authentication
- Go to Settings → WiFi.
- Select the WiFi network you want to secure.
- Check the box to enable RADIUS MAC Authentication.
- Select MAC Address Format (e.g.,
aa:bb:cc:dd:ee:ff
). - Select Security Protocol (
WPA-Enterprise
).
Configure RADIUS Profile and Add Users
- Go to Settings → Profile → RADIUS.
- Select the Default profile.
- Check the boxes for Wired and Wireless Networks.
- Click Create New RADIUS User.
- Enter the following information for a MAC-authenticated device:
- Username: Enter the MAC address (use the selected format).
- Password: Enter the MAC address (use the selected format).
- VLAN ID: Enter the desired VLAN.
- Tunnel Type:
13
– Virtual LANs (VLAN). - Tunnel Medium Type:
6
– 802 (includes all 802 media plus Ethernet canonical format).
- Click Create User.
To add a standard user (not MAC-based):
- Username: Enter User ID for the user.
- Password: Enter a password for the user.
- VLAN ID: Enter
0
. - Tunnel Type: Leave as None.
- Tunnel Medium Type: Leave as None.
Configure a New Host in RADIUS
To add a new device for MAC authentication:
- Go to Settings → Profile → RADIUS.
- Select the Default profile.
- Click Create New RADIUS User.
- Enter the following information:
- Username: Enter MAC address (use selected format).
- Password: Enter MAC address (use selected format).
- VLAN ID: Enter desired VLAN.
- Tunnel Type:
13
– Virtual LANs (VLAN). - Tunnel Medium Type:
6
– 802 (includes all 802 media plus Ethernet canonical format).
- Click Create User.
Note:
- MAC authentication is less secure than user-based authentication, as MAC addresses can be spoofed. Use with caution and consider additional security controls.
- Always use the MAC address format selected in the WiFi settings for both username and password fields.
For more details, refer to the Unifi documentation