MAC address filtering on UniFi is a feature that lets you allow or block specific client devices from joining a Wi-Fi network based on their hardware (MAC) address. On UniFi, it is configured per wireless network (SSID) under the network's advanced or security settings, and it applies to Wi-Fi clients — not to devices plugged into switch ports, which use a separate port-level MAC restriction.

It is a useful but limited tool: it stops casual or accidental connections and can enforce a simple allow-list in a small home or office, but it is not real security. MAC addresses are broadcast in the clear and can be spoofed in seconds on most operating systems, so anyone determined to get on your network can copy an allowed address. Treat it as a convenience and policy control, not as a substitute for WPA2/WPA3 encryption and strong passwords.

Background: What a MAC Address Is and Why It Matters

Every network interface — Wi-Fi radio, Ethernet port, Bluetooth adapter — has a MAC (Media Access Control) address burned in at manufacture. It is 48 bits long, written as six hexadecimal pairs such as 3c:22:fb:1a:9d:04. The first three bytes identify the manufacturer (the OUI, or Organizationally Unique Identifier); the last three are assigned by that manufacturer. In theory the address is unique worldwide, which is why filtering by it seems appealing.

In practice, modern devices deliberately break that uniqueness. iOS, Android, and Windows all offer "private" or "randomized" MAC addresses for Wi-Fi, which rotate per network or periodically. A phone that presents one address today may present a different one next week. That single fact is the biggest practical obstacle to MAC filtering on any network, UniFi included.

UniFi (Ubiquiti's controller-managed networking line, run through the UniFi Network application on a Cloud Key, Dream Machine, self-hosted controller, or UniFi OS console) exposes MAC filtering at the wireless-network level. The setting is usually labeled as a MAC address filter or access-control list, with allow and block modes.

How MAC Filtering Works on UniFi

The controller stores a list of MAC addresses attached to a specific wireless network. When a client tries to associate, the access point checks the list before completing the connection. Depending on the mode you choose, the client is either permitted only if listed (allow-list) or permitted unless listed (block-list).

  • Allow mode (whitelist): only listed addresses may join. Every other device is refused, including guests and new purchases. This is the strictest option and the most maintenance-heavy.
  • Block mode (blacklist): listed addresses are refused; everyone else may join. This is the usual choice for kicking a specific device off without disturbing everyone else.

Two limitations are worth knowing before you enable it. First, the filter is evaluated at association time, so a device already connected when you add it to a block list may stay connected until it re-associates or its session ends; you can force the issue by reconnecting the client or using the controller's block/reconnect action. Second, the filter applies to the SSID, so a device blocked on one network can still join another SSID on the same UniFi system unless you replicate the list.

How to Set It Up in the UniFi Network Application

Menu labels shift slightly between UniFi Network versions and between the legacy and new interfaces, but the path is consistent: Settings → Wi-Fi (or Wireless Networks) → select the network → Advanced/Manual settings → MAC address filter (sometimes called Access Control). The steps below describe the current-generation interface.

  1. Open the UniFi Network application and go to Settings → Wi-Fi.
  2. Select the wireless network you want to restrict, or create a new one.
  3. Expand the advanced/manual settings section and find the MAC address filter (access control) option.
  4. Choose the mode: allow (only listed devices) or block (listed devices denied).
  5. Add addresses in colon-separated form, e.g. 3c:22:fb:1a:9d:04. Some versions accept a name/label alongside each entry — use it, because raw hex is unreadable six months later.
  6. Save and apply. The change propagates to access points within a minute or two.
  7. Test with a device you can afford to disconnect. If it fails, check the address format and the mode before assuming the feature is broken.

To find a device's MAC address: on the UniFi controller, open the Clients list and read it from the client detail panel (note that if the device uses a private address, this is the randomized one). On the device itself, look under Wi-Fi settings → network details (iOS/Android), or ipconfig /all on Windows, or System Settings → Network on macOS.

Common Problems and Why They Happen

Most complaints about UniFi MAC filtering trace back to one of a handful of causes:

  • Randomized MAC addresses. A phone that was allowed yesterday shows a new address today and is refused. Fix: turn off private Wi-Fi address for that network on the device, or switch from allow-list to block-list so unlisted devices are not automatically excluded.
  • Wrong mode. An allow-list with an empty or incomplete list locks out everyone. Confirm the mode before adding entries.
  • Format errors. Addresses must be six hex pairs. Copy-paste from a device sometimes includes hyphens or spaces; UniFi generally wants colons.
  • Wrong SSID. The filter is per network. A device blocked on the main network can still join the IoT or guest SSID.
  • Wired devices unaffected. MAC filtering on a Wi-Fi network does nothing for Ethernet. Switch-port MAC restriction is a separate feature (port profiles / device restrictions), and even that is spoofable.
  • Already-connected clients. A newly blocked device may linger until it reconnects. Reconnect it or use the controller's block action.

MAC Filtering vs. Real Access Control

The honest comparison is short. MAC filtering is a policy convenience; WPA2/WPA3-Personal with a strong passphrase, or WPA-Enterprise with per-user credentials, is actual security. A MAC address travels unencrypted in management frames, so anyone within range can capture an allowed address and clone it. On Windows, macOS, Linux, and rooted/jailbroken phones this takes seconds. On stock iOS and Android, changing the MAC is harder but not impossible, and the randomized-address feature already defeats allow-lists by design.

Where MAC filtering genuinely earns its place: keeping a specific device off a network (a child's tablet, a misbehaving IoT plug), documenting which devices are expected on a small network, and adding friction for casual neighbors. Where it does not: protecting a network from a motivated attacker, securing guest Wi-Fi, or replacing a password. Pair it with a strong WPA3 passphrase, a separate guest network with client isolation, and up-to-date firmware.

Costs and Effort

The feature itself is included in UniFi's controller software at no extra charge; there is no license or subscription tied to MAC filtering. The real cost is administrative: every new device must be added by hand in allow mode, and every replacement device (a new phone, a repaired laptop with a swapped Wi-Fi card) needs a new entry. In a household of ten devices that is manageable; in a 50-person office it becomes a part-time job, which is why most deployments use block-lists or skip filtering entirely and rely on passwords and VLANs.

Frequently Asked Questions

Does MAC address filtering work on UniFi for wired devices?
Not through the wireless network's MAC filter. Wired clients are controlled by switch port profiles and device restrictions, which are separate settings. Even there, MAC-based rules can be bypassed by spoofing.

Why does my iPhone keep getting blocked after I allow-listed it?
Private Wi-Fi Address is rotating the MAC. Disable it for that network in the iPhone's Wi-Fi settings, or switch the filter to block mode so unlisted devices are not excluded by default.

Is MAC filtering enough to secure my Wi-Fi?
No. Use WPA2/WPA3 with a strong passphrase as the primary control. MAC filtering is a convenience layer, not a security boundary, because addresses are broadcast and can be cloned.

Can I block a device that is already connected?
Add it to the block list, then force it to reconnect (toggle Wi-Fi on the device, or use the controller's reconnect/block action). The filter is checked at association, so an existing session may persist briefly.

Does the filter apply to all my SSIDs?
No. It is configured per wireless network. If you run multiple SSIDs, replicate the list on each one where the restriction should apply.

Where do I find a device's MAC address in UniFi?
Open the Clients list in the UniFi Network application and select the device; the address appears in its detail panel. On the device itself, check Wi-Fi network details or the OS network settings.