MAC filtering, also called MAC address filtering, is an access control method in which a switch, router or wireless access point permits or denies devices based on their Media Access Control (MAC) address, the 48-bit hardware identifier of a network interface. In network security, it is one of the oldest and simplest ways to restrict which devices may join a local network.
Because MAC addresses travel unencrypted in every frame and can be changed in software, MAC filtering is trivial to bypass for a determined attacker. Practitioners therefore treat it as an inventory and convenience control, not as authentication, and pair it with stronger mechanisms such as WPA3, 802.1X or port security.
How MAC filtering decides which devices connect
MAC filtering compares the source MAC address of an incoming frame or association request against a configured list and then accepts or drops it. On a wireless access point, the check usually happens during association, so an unlisted client is refused before it can obtain an IP address. On a switch, the check is applied to frames arriving on a port.
A MAC address consists of six octets, usually written as 3C:22:FB:1A:09:7E. The first three octets form the Organizationally Unique Identifier (OUI) assigned to the manufacturer, and the last three identify the individual interface. Filtering operates only at Layer 2 of the OSI model, so it never inspects IP addresses, users or applications.
Two list models exist, and the choice between them determines how strict the filter is.
| Mode | Default action | Typical use |
|---|---|---|
| Allowlist | Block every device not listed | Small networks with a fixed device inventory |
| Denylist | Allow every device not listed | Removing a known unwanted device quickly |
An allowlist is the more restrictive model and the one usually meant by MAC filtering. A denylist blocks only specific addresses, which makes it easy to evade by changing to any other address.
Why MAC filtering provides weak security
MAC filtering provides weak protection because the identifier it trusts is neither secret nor fixed. Any device within radio range can capture frames with a wireless adapter in monitor mode and read the addresses of permitted clients in clear text, since the 802.11 header is never encrypted, even on networks protected by WPA2 or WPA3.
Once an attacker knows a permitted address, MAC spoofing takes seconds: every major operating system allows the hardware address to be overridden in software. The attacker can wait until the legitimate device disconnects or simply transmit alongside it. The filter cannot tell the difference, because it has no cryptographic proof of identity.
| Technique | What the attacker does | Why the filter fails |
|---|---|---|
| Passive sniffing | Captures frames to list allowed addresses | Headers are sent unencrypted |
| MAC spoofing | Sets own adapter to an allowed address | Address is software-configurable |
| Deauthentication | Forces a legitimate client offline, then joins | Older networks lack protected management frames |
| Wired port reuse | Unplugs an allowed device and connects a laptop | Filter checks address, not the device |
For this reason, security standards and auditors do not accept MAC filtering as an authentication control. It may slow down a casual guest, but it does not stop a competent intruder.
MAC filtering compared with stronger controls
Stronger network access controls rely on credentials or certificates rather than a broadcast identifier. The comparison below shows where MAC filtering fits among related controls in the same field.
| Control | Basis of trust | Resistance to spoofing |
|---|---|---|
| MAC filtering | Hardware address list | Very low |
| Port security | Learned addresses per switch port, with limits | Low to moderate |
| WPA3-Personal | Shared passphrase with SAE handshake | High against outsiders |
| 802.1X with RADIUS | Per-user or per-device credentials | High |
| Network access control | Identity plus device posture checks | High |
Port security on managed switches extends the idea by limiting the number of addresses per port and shutting the port down on a violation, which is useful against accidental hubs and rogue switches. 802.1X goes further by requiring each device or user to authenticate before the port forwards any traffic. MAC filtering can still feed into these systems through MAC Authentication Bypass (MAB), which admits devices such as printers that cannot run an 802.1X supplicant, usually into a restricted VLAN.
Where MAC filtering remains useful
MAC filtering remains useful as an administrative tool when the goal is inventory, policy or convenience rather than defense against attackers. Typical legitimate uses include:
- Parental and household controls that pause internet access for a specific child device on a schedule.
- Blocking a known device quickly, such as a misbehaving smart plug that floods the network.
- Assigning policies such as static DHCP reservations, bandwidth limits or VLANs to identified devices.
- Admitting headless devices through MAB when they cannot perform 802.1X authentication.
- Detecting unknown devices by alerting when an address outside the inventory appears.
In all these cases, the filter should sit behind proper encryption and authentication, so that a spoofed address grants nothing an attacker could not obtain otherwise.
MAC address randomization and operational pitfalls
Modern phones and laptops use randomized private MAC addresses to protect user privacy, which disrupts allowlists. A device may present a different address per network or rotate it periodically, so an allowlist built last month may suddenly lock out legitimate users.
| Symptom | Likely cause | Fix |
|---|---|---|
| Known phone cannot connect | Private address feature is active | Disable randomization for that network or update the list |
| List grows unmanageable | Manual entries for every device | Move to 802.1X or a NAC platform |
| Device blocked after repair | Network card was replaced | Register the new hardware address |
| False sense of protection | Filter used instead of encryption | Enable WPA3 or WPA2 with a strong passphrase |
The administrative cost grows with every device, and the security benefit stays close to zero. On anything larger than a small home or lab network, that balance usually favors identity-based access control instead.
Explained without jargon
Every network-capable device has a built-in serial number called a MAC address. MAC filtering is like a doorman with a guest list of those serial numbers: if your number is on the list, you get in, and if it is not, you are turned away.
The catch is that anyone nearby can overhear the numbers on the list, and changing your own number takes only a moment. So the doorman keeps out polite strangers, but not someone who wants to get in. Real protection comes from a strong password and encryption, with the guest list as a convenience on top.
A typical use case
A family runs a home Wi-Fi network secured with WPA3 and a long passphrase. The parents use the router’s MAC filtering feature, not to keep intruders out, but to pause internet access for the children’s tablets between 9 p.m. and 7 a.m. and to block an old smart camera that kept reconnecting with outdated firmware.
When a new phone arrived, it failed the schedule because it used a private randomized address. The parents turned off address randomization for the home network on that phone and added the new address to the router. The rules worked again, while the passphrase and encryption remained the actual barrier against outsiders, which is exactly the role split that MAC filtering is suited to.