How to Configure Media Access Control Policy

Published
Length
3 min read

Luis Felipe Dias

All posts

A media access control policy sets which hardware devices can join your network ports. You set it up by linking known device addresses to specific switch ports or radios. Network teams use these rules to block unknown laptops and rogue hardware at layer two. When a device plugs in, the switch checks its hardware address against an approved list. If the address matches, the port opens and lets network packets flow through. If the address does not match, the switch drops the traffic or shuts the

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

A media access control policy sets which hardware devices can join your network ports. You set it up by linking known device addresses to specific switch ports or radios.

Network teams use these rules to block unknown laptops and rogue hardware at layer two. When a device plugs in, the switch checks its hardware address against an approved list. If the address matches, the port opens and lets network packets flow through. If the address does not match, the switch drops the traffic or shuts the port.

How a media access control policy works in practice

Every network card leaves the factory with a burned-in hardware address. A media access control policy uses this address as an early check on the wire. This rule affects user laptops, servers, printers, and internet of things sensors. Any workload or user device that connects to a physical switch or wireless point goes through this check.

Safe defaults start with a strict deny rule on every open wall jack. You should turn off unused switch ports until a team member needs one. On active ports, set a low limit on how many hardware addresses can appear. Most desk ports only need one or two addresses for a phone and a laptop.

You can also tell the switch to learn the first device address it sees. Once the switch learns that address, it locks the port to that single machine. If someone unplugs that machine and plugs in another, the switch blocks the new device. For wireless setups, teams store approved hardware lists on a central auth server. The wireless controller asks the central server to check each address before it joins.

How to check and audit hardware rules

After you put these rules in place, you must test them with real hardware. Plug an unapproved test laptop into an active wall port and watch the switch logs. Confirm that the port enters a blocked state and sends an alert to your log server. You should also review your central address lists every month to remove old gear.

When staff leave or swap laptops, old entries pile up and create security gaps. Good logging helps you spot when someone hits a port limit or triggers a block. Make sure every switch sends port violation events to a central log store.

Customer Support Access to Production + Media & Entertainment Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

What static hardware rules leave open after login

Hardware address checks stop casual intruders, but they have major limits on their own. An attacker can read an approved address off the air and copy it. Most modern operating systems let users type in a new hardware address in seconds. Once an attacker copies a valid address, the switch lets their traffic right through.

Because of this gap, teams pair hardware checks with certificate login on the wire. Even with strong network login, layer two rules only guard the initial wire link. Once a device passes the network check, the switch does not inspect higher layer traffic. The network policy cannot see which database queries a user runs after they log in.

Static hardware rules also cannot mask sensitive fields like emails, phone numbers, or card numbers. If an approved laptop connects to a production database, the switch passes every row back. To control what users do inside databases and cloud systems, you need app level controls. You should pair network port rules with query logging and data masking at the target level.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Can a user bypass a hardware address check?

Yes, anyone with local admin rights can change their network card address in software. Because addresses are easy to copy, treat this rule as a basic filter, not strong auth.

When should teams use hardware address filtering?

Use it for simple devices like printers, cameras, or sensors that cannot run certificate software. For user laptops and servers, always combine hardware rules with certificate or identity checks.

What happens when a switch port blocks an unknown device?

Depending on your setup, the switch either drops frames from the new address or shuts down. A shut port stays dark until an admin resets it or a timer runs out.

The query runs. The emails stay hidden.