MFA for Network Devices

Published
Length
3 min read

Luis Felipe Dias

All posts

You set up mfa for network devices by linking routers and switches to an identity server. The device checks user logins and asks for a second code or phone tap. Teams often tie these hardware logins to broad network admin groups. When those roles are too wide, any logged-in engineer can change core routing rules. A single bad command can drop traffic across an entire site. How to set up mfa for network devices Most switches, routers, and firewalls cannot talk to modern cloud identity tools on

Network Devices: the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

You set up mfa for network devices by linking routers and switches to an identity server. The device checks user logins and asks for a second code or phone tap. Teams often tie these hardware logins to broad network admin groups. When those roles are too wide, any logged-in engineer can change core routing rules. A single bad command can drop traffic across an entire site.

How to set up mfa for network devices

Most switches, routers, and firewalls cannot talk to modern cloud identity tools on their own. Instead, they use older network protocols like RADIUS or TACACS+ to check logins. You start by setting up a central server that speaks these protocols. This server sits between your network gear and your main identity provider.

First, you register each switch or router as a client on the central server. Both sides share a secret key to keep their messages safe. Next, you tell the network gear to send all SSH login requests to this server. You also keep one local backup account in case the network link fails.

When an engineer tries to log in over SSH, the switch pauses the session. It sends the username and password to the central server. The server checks the password against your user directory. Then it triggers a second check on the user's phone or hardware token. Once the user approves the prompt, the server tells the switch to open the shell.

Why basic login checks fall short during live sessions

Adding a second login step stops attackers who only have a stolen password. It proves the right person is at the keyboard when the SSH session starts. For many teams, this step satisfies basic audit rules for network hardware. It also removes the need to share one static password across the whole team.

Still, login checks only guard the front door. Once the switch opens the shell, the identity server steps out of the way. Most network roles place the user straight into a high-level admin mode. From there, the user can read secret keys or wipe the routing table.

Network Devices: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

RADIUS offers simple login checks, while TACACS+ can check individual commands if you write strict rules. Maintaining those command rules across hundreds of switches takes hours of manual work. Also, device logs often miss full command output or get erased during a reboot. If a command prints sensitive data like emails or phone numbers, the terminal shows it in plain text.

Controlling commands and data in flight

To reduce risk on core routers, teams must look past the initial login prompt. Good security checks each action during the session, not just the person logging in. Engineers often need to run safe read commands to fix a broken link. They rarely need full write rights for daily checks.

Splitting read tasks from write tasks prevents fast mistakes during an outage. When an engineer needs to change a firewall rule, another team member can approve that specific task. This keeps normal checks fast while putting guardrails around risky changes. It also creates a clear central log of every command run across all sites.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev sits inline in the wire protocol beside those services as an open-source proxy, a sidecar for your Postgres or API. On every query an AI agent or engineer runs against production, hoop.dev decides to pass, mask, block, or hold it for human review.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run, and hoop.dev data masking rewrites matched sensitive values in responses in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

What happens if the identity server goes down during an outage?

Network gear supports a fallback setting that uses a local password stored on the device. You should lock this local account in a safe vault for emergencies only.

Should we use RADIUS or TACACS+ for network gear?

RADIUS combines login and permission checks into one step and works well for simple access. TACACS+ separates login from command rules, which gives better control on switches and routers.

Can older switches handle push notifications and modern tokens?

Yes, the switch only waits for an accept or reject message from the central server. The server handles the phone push or token code before replying to the switch.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.