MAC address filtering on a UniFi controller lets you allow or block specific client devices by their hardware address, configured under Settings > WiFi > (network) > Advanced or via device/client groups rather than as a single global toggle. It is a useful layer for keeping known devices off a guest network or blocking a troublesome device, but it is not real security: MAC addresses are transmitted in the clear and can be spoofed in seconds.

What MAC Filtering Actually Does

Every network interface has a MAC address, a 48-bit identifier written as six hexadecimal pairs such as 3c:5a:b4:1f:9e:02. The first three pairs identify the manufacturer (the OUI), and the last three are assigned by that vendor. UniFi access points keep an association table of every client they serve, and MAC filtering simply adds a rule that says "permit" or "deny" for a given address before the client is fully associated and bridged onto the network.

On a UniFi controller the feature appears in a few places depending on firmware generation and whether you use the old or new settings interface: under the WiFi network's advanced options as a MAC filter list, and under client/device settings where you can block a specific client. The controller pushes the rule to the access points, and the AP enforces it at the radio level. Nothing is filtered on the switch or gateway unless you build separate firewall rules, so a device that connects through a wired port is not covered by a wireless MAC filter.

How the Allow and Block Lists Work

UniFi supports two modes, and the distinction matters:

  • Allow list (whitelist): only the listed MAC addresses may join. Every other device is rejected. This is strict and easy to lock yourself out with if you mistype an address.
  • Block list (blacklist): listed addresses are denied, everything else is allowed. This is the safer default because a mistake only affects the device you meant to block.

Rules are applied per wireless network (SSID), so you can allow-list a set of devices on an IoT SSID while leaving your main network open to any device with the right password. When a blocked client tries to connect, the AP typically rejects the association; the client shows up in the controller's client list briefly, often flagged as blocked, and then disappears. Some clients retry endlessly, which can fill logs and drain battery on the device.

Step-by-Step: Enabling It in the Controller

  1. Open the UniFi Network application and go to Settings > WiFi (older controllers: Settings > Wireless Networks).
  2. Select the network you want to protect, or create a new one.
  3. Expand Advanced (or Manual in some versions) and find the MAC Filter or MAC Address Filter option.
  4. Choose Allow or Block, then add addresses one per line in colon-separated form.
  5. Save and apply. The controller provisions the change to the APs, usually within a minute or two.
  6. To block a single device quickly, open Clients, click the device, and use the block/restrict action, which adds it to the relevant list for you.

Addresses must be entered in the same format the controller expects; a hyphenated address like 3c-5a-b4-1f-9e-02 may be accepted or may silently fail depending on version, so normalize to colons. Copy addresses from the client list rather than retyping them from a sticker.

Why It Is Not a Security Control

The common misconception is that MAC filtering keeps intruders out. It does not. A MAC address is sent in every frame in the clear, so anyone within radio range running a packet capture can read the addresses of nearby devices. Changing your own MAC address is a built-in feature on most operating systems and trivial on others. An attacker who wants onto your network will simply clone the MAC of an allowed device, and the filter will happily let them in.

Treat MAC filtering as housekeeping, not defense. Real protection comes from WPA2/WPA3 with a strong passphrase, a separate guest network with client isolation, and disabling WPS. For IoT devices that cannot do enterprise authentication, a dedicated SSID with a long random password is far more effective than an allow list.

Common Problems and Fixes

  • Device cannot connect after adding it: check the address is correct and in colon format, confirm the rule is on the right SSID, and remember that many phones and laptops use a randomized MAC per network by default. Turn off private/random MAC for that SSID or add the randomized address.
  • Locked out of the admin UI: if you allow-listed the wireless network you manage from, you may lose access. Connect by wire or from an already-allowed device to fix the list.
  • Rule seems ignored: the AP may not have reprovisioned; force a provision, or check that the client is not connecting through a mesh uplink or wired port that bypasses the wireless filter.
  • Device changes address after reboot: some IoT gear randomizes or uses a different address on each band; add both the 2.4 and 5 GHz addresses if they differ.

MAC Filtering vs. Other UniFi Controls

UniFi offers several overlapping tools, and choosing the right one avoids frustration. Client blocking is a quick per-device deny. MAC filtering is the per-SSID allow/deny list. Firewall rules and client groups operate at the gateway and can restrict by IP, subnet, or schedule. Radius/802.1X with per-user credentials is the actual authentication mechanism. For parental controls or time-based limits, schedules and firewall rules are the better fit; MAC filters have no concept of time.

Frequently Asked Questions

Does MAC filtering work on wired devices? No. The filter is enforced by the access point for wireless clients. Wired ports are governed by switch port profiles and gateway firewall rules instead.

Can I import a list of MAC addresses? The controller UI accepts pasted lists in most versions; bulk import via API or configuration files is possible but not a standard UI feature, so plan on pasting addresses one per line.

Why does my phone show a different MAC than the sticker? Modern iOS and Android default to a private, per-network randomized address. Disable private Wi-Fi address for that network, or add the randomized address shown in the client list.

Does MAC filtering slow down my network? The lookup is negligible; the AP checks the list at association time. The real cost is administrative, keeping lists current as devices change.

Will it stop a determined attacker? No. MAC addresses are spoofable and visible over the air. Use WPA3 and a strong passphrase as the actual barrier.

Do mesh or repeater links respect the filter? Client devices connecting through a mesh AP are still filtered by the SSID rule, but the backhaul link itself is not a client and is not subject to it.