TACACS+ High Availability: Surviving a Server Loss Without Locking Out the NOC

By Asmita Mane · 4 Dec 2026 · TACACS+

TLDR

  • TACACS+ high availability means engineers can still log in to network devices when a TACACS+ server, or an entire site, goes down.
  • Run at least two servers in different sites in active-active mode, so either one can answer any device.
  • Short device timeouts and a set fallback order keep failover down to a few seconds.
  • Use local accounts only when no server can be reached, and keep accounting records flowing to whichever server survives.

It’s 2 a.m. and one of your data centers has gone dark. An aggregation router is dropping subscriber sessions, so the on-call engineer in your NOC (network operations center) opens an SSH (Secure Shell) session to roll back last night’s change. The login prompt just hangs.

Keeping that prompt alive is the job of TACACS+ (Terminal Access Controller Access-Control System Plus) high availability. Working backward from that failed login, the design comes down to four decisions. You need to settle how many servers to run, where to put them, how long each device waits, and when a local account is allowed in.

Why device admin must stay up

Device administration sits in the repair path. When a fiber cut or a bad config push breaks the network, engineers fix it by logging in to routers and switches through TACACS+ authentication. If the TACACS+ service goes down with the rest of the network, the repair waits until it comes back.

Per-command authorization under RFC 8907 Section 8.2 protects the network only while devices can reach a server that answers. In deployments we often see two servers that looked redundant but shared one directory or one firewall pair, and that shared piece was the first thing to fail. [SME TO CONFIRM]

How lockouts happen

Lockouts tend to start in the gaps between components:

  • Both servers share a site or an identity store, so a single fault takes out both.
  • The server stays up but loses its directory, so it answers FAIL. Under RFC 8907 Section 4.4, the device applies a FAIL as the final answer, and only an ERROR is treated like an unreachable server. Check what your server returns when its directory is down.
  • Timeouts add up. The device waits out each server, once per attempt, before it reaches its local account.
  • Local login works, but command authorization still points only at TACACS+, so the device refuses every command the engineer types.

TACACS+ high availability design options

TACACS+ high availability comes in four common designs, and each one handles a server failure differently. For a service provider NOC, run active-active across at least two sites. That design keeps logins working through a full site outage, and because both servers carry traffic every day, neither one is an unknown quantity when the outage arrives.

Design How it works When a server fails Fits
Single server, local fallback Devices fall back to local accounts if the one server is unreachable Every device drops to local accounts and the central audit trail stops Labs and test networks
Active-standby, one site A second server takes over when the first stops answering Logins continue unless the whole site fails A stopgap until a second site exists
Active-standby, two sites The standby sits idle in a second site Logins continue, but the standby takes its first real load in the middle of the outage Operators with a warm recovery site
Active-active, two or more sites Every server answers live traffic, and devices split their first choice across sites Devices that preferred the failed site wait one timeout, then use the other site Service provider NOCs

Alepo TACACS+ Server is built for 99.999% availability and runs active-active with geo-redundancy, so device administration stays reachable when a site fails.

Active-active vs active-standby

For most operator networks, active-active is the better choice. A standby only gets tested during the outage it exists for, so stale policy or a missing device entry shows up at the worst possible moment.

In an active-active TACACS+ design, half the devices list site A first and the other half list site B first. Every server handles real logins every day, so a fault on either one shows up in routine monitoring well before an outage.

Each site also has to enforce the same policy. NIST (National Institute of Standards and Technology) SP 800-53 control CP-7 asks for controls at an alternate processing site that match those at the primary. A backup with looser command authorization gives an attacker a reason to knock out the primary first.

How many servers, and where

TACACS+ redundancy starts with two servers in separate sites, each with its own power, upstream links, firewalls and identity store replica. If the sites share any of those, the pair shares a failure. Larger estates add a third, regional server.

Running TACACS+ across two data centers is the usual form of TACACS+ geo-redundancy. A cloud region works as the second site, as long as the path from your devices to that region doesn’t run through the data center it’s backing up. NIST SP 800-53 CP-7(1) makes the same point about separation: the alternate site should sit far enough from the primary that the two are less likely to face the same threats.

Device-side settings for TACACS+ failover

A sound server pair can still lock you out if the devices are configured wrong. Each router and switch controls its own failover through four settings: server order, per-server timeout, dead time and fallback method order. Between them, these settings decide whether a login during an outage takes three seconds or a full minute.

A TACACS+ server group is the ordered list of servers a device tries. RFC 8907 Section 4.4 recommends that devices support such a list and close a connection to a silent server after a configurable timeout.

Timeouts and server order

The ranges below are starting points to tune against your own network.

Setting What it controls Starting range Why
Server timeout How long the device waits for a reply before trying the next server 2 to 5 seconds Raise it only for remote sites with high latency
Attempts per server How many tries before moving on 1 TACACS+ runs over Transmission Control Protocol (TCP), which already retransmits lost packets (RFC 8907 Section 3.4)
Servers per list Entries in the server group 2 or 3 Every extra entry adds a timeout to the worst case
Dead time How long the device skips a server that failed 5 to 15 minutes Later logins don’t pay the same wait
Worst-case wait Total delay before the local prompt appears Under 15 seconds A longer wait looks like a hung device, and engineers start retrying
Single-connection mode One TCP session reused for many requests (RFC 8907 Section 4.3) On, with an idle timeout The device has to notice a dead session and reconnect

With a 3-second timeout and one attempt, two dead servers add about 6 seconds before the local prompt appears. Configure servers by IP address, because a name lookup is one more thing that can fail during an outage.

Single-connection mode saves setup time, but a server that fails silently can leave the device holding a dead TCP session until the next request exposes it. Test in a drill that your devices notice the loss and move on within the timeout.

Accounting during failover

Accounting follows the same server list as login. RFC 8907 Section 7.2 lets a server reply with success only after it has recorded a request. Otherwise it must return ERROR, and the device then treats that server as unreachable (Section 4.4).

Two kinds of records can still go missing. Commands sent while a device waits out a timeout may be lost if the device doesn’t buffer them, and sessions on a local emergency account never reach a TACACS+ server at all.

Send device syslog to a collector that sits outside both TACACS+ sites as a second trail, and merge accounting from both sites into one store so the audit record reads as a single history.

NIST SP 800-53 AU-5 expects an alert to designated staff when audit logging fails, and losing a TACACS+ site is a good reason to raise one. Our guide to TACACS+ security best practices covers what to capture and which patterns to alert on.

TACACS+ local fallback policy

TACACS+ local fallback is the last method in a device’s login order, and it should apply only when no TACACS+ server answers at all. A local account that still works while the servers are reachable turns into a shared back door. One that’s missing or has a stale password causes the very lockout it’s there to prevent.

Five rules keep local fallback on the right side of both problems:

  • Put servers first and local accounts last, for both login and command authorization. If only login falls back, a local user gets a shell that refuses every command.
  • Keep one emergency account per device or per region, hold its password in a vault and rotate it after every use.
  • Every local login should raise a syslog alarm that someone reviews the next working day.
  • Give engineers an out-of-band console path, since the fault that cuts a device off from every server often takes in-band SSH down with it.
  • On TACACS+ over TLS (Transport Layer Security) 1.3, which uses port 300, the server group should hold TLS servers only. RFC 9887 Section 5.1.1 forbids a device from falling back to non-TLS on port 49 when TLS fails. Keep each server’s full certificate chain on the device (Section 3.4.1) in case the certificate authority can’t be reached (Section 5.1.4).

These emergency logins are break-glass accounts, and they need their own process for who holds each password and who reviews each use.

Take a regional fiber internet service provider (ISP) with two data centers, East and West. Half its devices list East first and half list West first, all with a 3-second timeout and one attempt.

At 2 a.m., East loses power. Devices that prefer East wait 3 seconds, mark it dead for 10 minutes and authenticate against West, which also takes their accounting records for the night.

An hour later, an aggregation site loses both uplinks and can’t reach either data center. The on-call engineer connects through the out-of-band console, logs in with that device’s emergency account and restores the uplink. Next morning, the NOC rotates that password.

Run the same failure as a drill every quarter. Block TACACS+ traffic from a test device to each server in turn and time the login. Then confirm that accounting reached the surviving site, block both servers and log in through the console.

FAQs

Q1. What happens if the TACACS+ server is down?

The device waits out its timeout, then tries the next server in its list. If no server answers, it moves to its next fallback method, which is usually a local account. RFC 8907 Section 4.4 tells the device to handle an ERROR reply the same way as no answer.

Q2. Should devices fall back to local accounts?

Yes, as the last method, and only when no TACACS+ server answers. Keep one emergency account per device or region with its password in a vault, raise an alarm every time it’s used, and rotate the password afterward.

Q3. Should TACACS+ run active-active or active-standby?

Active-active suits most operator networks. Every server carries live traffic each day, so faults show up early, and a site failure moves load onto a server that’s already in use. Active-standby can work for small estates that accept the risk of an untested standby.

Q4. How many TACACS+ servers do you need?

At least two, in sites that don’t share a power feed or an identity store. Large or multi-region estates add a regional third server, and each device should list no more than two or three servers.

Q5. What timeout should devices use?

Start with 2 to 5 seconds per server on a management network, one attempt per server and 5 to 15 minutes of dead time. Aim to keep the worst-case wait before the local prompt under about 15 seconds.

Q6. Is TACACS+ accounting lost during failover?

It can be. Devices send records to the next server after an ERROR or no reply (RFC 8907 Sections 4.4 and 7.2), but records sent mid-timeout can still be lost, and local-account sessions never reach a server. A separate syslog collector covers that gap.

Conclusion

Back at that aggregation router, a sound design shows up as a login that takes a few seconds longer than usual and then works. Four checks tell you whether yours will:

  • Your two TACACS+ servers share no single component, including the directory behind them.
  • When your server can’t reach its identity store, it answers ERROR, so devices move on to the next server.
  • With every server blocked, a console login reaches the local prompt in under 15 seconds.
  • Every local emergency login last quarter raised an alarm and ended with a rotated password.

Any check you can’t confirm today is where the next quarterly drill should start.

See how a site failure plays out on your network. Bring your site layout and current fallback settings, and we’ll walk through how Alepo TACACS+ Server keeps NOC logins working when one site goes dark.

Book a Demo