Guides

What Is TACACS+? How Cisco's AAA Protocol Works (and vs RADIUS)

TACACS+ decides who can log in to your routers and switches, which commands they may run, and logs everything they do. Here is how it works and how it compares to RADIUS.

Cysoro Security TeamPublished · 8 min read
1AuthenticateWho are you? 2AuthorizeWhat may you do? 3AccountWhat did you do? TCP port 49 GUIDES TACACS+ Who logs in. What they run. AAA for network devices, explained.
Quick answer

TACACS+ (Terminal Access Controller Access-Control System Plus) is a Cisco-developed protocol that controls access to network devices. It separates authentication, authorization and accounting into three independent processes, runs over TCP port 49, and encrypts the whole packet body. It is the standard choice for administering routers and switches, while RADIUS is the standard choice for letting users onto the network through Wi-Fi and VPN.

Key takeaways

  • TACACS+ separates authentication, authorization and accounting, so you can allow a login but deny a specific command.
  • It runs over TCP port 49 and encrypts the entire packet body; RADIUS runs over UDP and encrypts only the password.
  • Use TACACS+ for device administration and RADIUS for network access — many teams run both from one server.

Every router and switch in a network has a login prompt, and every administrator who types a password into one is a security decision. Without central control, each device has its own local usernames or one shared password, staff leave, passwords go stale, and nobody can say who changed a setting. TACACS+ fixes that by moving those decisions to one central server.

What is TACACS+?

TACACS+ (Terminal Access Controller Access-Control System Plus) is a Cisco-developed AAA protocol that authenticates administrators, authorizes their commands, and logs their actions on network devices. It encrypts the full packet body over TCP port 49 and treats authentication, authorization and accounting as three fully independent processes.

It is the protocol network engineers reach for when the question is "who can log in to my routers and switches, and what can they do once they are in?" A switch or router acts as the client: it forwards a login attempt to the TACACS+ server, enforces the answer, and logs what happens.

TACACS+ is documented in RFC 8907 as an Informational RFC, not a formal IETF standard. Cisco originated it, and it is widely deployed for device administration even though the original draft was never made an Internet standard — so do not call TACACS+ a standard.

What does AAA mean?

AAA answers three questions about every person who touches a network device: who are you, what may you do, and what did you do. Without AAA, each device decides alone; with AAA, one central server decides for all of them.

The AQuestion it answersWhat it controls
AuthenticationWho are you?Verifying identity with a username and password, a token, or a certificate
AuthorizationWhat are you allowed to do?Which commands, privilege level, or resources the identity may use
AccountingWhat did you do?Logging commands run, session length, and data sent, for audit or billing

The three are independent. A user can be authenticated — the login succeeds — but still be authorized for only a handful of commands, and every action they take can be accounted to their name in a log. That separation is the whole point of TACACS+, and it is what sets it apart from RADIUS.

Two roles matter. The device you log in to, such as a switch, is the AAA client; RFC 2865 calls it a Network Access Server (NAS). The central machine that answers is the AAA server. A user never talks to the AAA server directly: they log in to the NAS, the NAS asks the server, and the server replies with a permit or a deny.

How does TACACS+ work?

TACACS+ works as a client-server exchange: a network device forwards a login attempt to a TACACS+ server over a single TCP connection on port 49. Using TCP instead of RADIUS's connectionless UDP gives the exchange built-in delivery guarantees, and TACACS+ encrypts the entire packet body — not just the password field — so command names, arguments and accounting records are all protected in transit.

A TACACS+ login, step by stepEngineerlaptop192.168.1.20SwitchAAA client (NAS)192.168.1.2TACACS+ serverTCP port 4910.20.220.141loginask server1. Authenticate — who are you?   2. Authorize — what may you do?   3. Account — what did you do?The switch never decides alone. Remove one person's access in one place, and every device honors it.
How a TACACS+ login flows from engineer to switch to server. Illustration by Cysoro.

Here is what happens when an engineer logs in. The laptop connects to the switch and the switch asks for a username and password. The switch sends those credentials to the AAA server, using TACACS+. The server checks them and replies with accept or reject. The switch acts on the reply.

If accepted, the engineer gets a prompt, and the switch may ask the server about each command and log it. That per-command authorization is TACACS+'s signature feature: the client sends a request for each command, and must also send an accounting start record for every command entered.

TACACS+ vs RADIUS: what's the difference?

Both protocols let a device ask a server about a login, but TACACS+ is shaped for device administration and RADIUS bundles authentication with authorization. Two rows decide most real-world choices: TACACS+ encrypts the whole packet over TCP, while RADIUS encrypts only the password over UDP.

FeatureTACACS+RADIUS
Main jobDevice administrationNetwork access
Transport and portsTCP 49UDP 1812 (authentication), UDP 1813 (accounting)
AAA designAuthentication, authorization and accounting are separateAuthentication and authorization are combined
Packet protectionEntire packet body encrypted; header is clearOnly the password is encrypted
Per-command authorizationYes, command by commandLimited
Primary useRouter and switch administration802.1X Wi-Fi, VPN, end-user login
StandardRFC 8907 (Informational)RFC 2865 and RFC 2866
MultivendorMostly CiscoBroad support

RADIUS is an access server that uses the AAA protocol, built as a system of distributed security that secures remote access to networks against unauthorized access. A network access server operates as a client of RADIUS: it passes user information to designated RADIUS servers and acts on the response. Cisco has supported RADIUS since Cisco IOS Software Release 11.1 in February 1996, and seriously evaluated it before developing TACACS+.

The short version, as Cisco's own comparison puts it: TACACS+ uses the AAA architecture, which separates authentication, authorization and accounting, while RADIUS combines authentication and authorization, which makes it difficult to decouple the two.

When should you use TACACS+?

Use TACACS+ to control who can log in to your routers and switches and which commands they can run. Use RADIUS to let users and devices onto the network, mostly through 802.1X. Most mid-sized and large networks run both.

  • Many devices, several admins. Change a password once on the server and every device honors it, instead of updating each switch by hand.
  • Different privilege levels. A junior engineer can read the configuration but not change it, while a senior engineer can do both — enforced per command.
  • Audit requirements. Accounting records show who logged in, when, and which commands they ran. That is hard to fake and easy to review after an incident.
  • Staff turnover. Remove one person's access in one place instead of hunting for their account on every device.

A small network with a few switches can use strong local usernames and passwords instead. TACACS+ earns its keep when you have many devices, several administrators, staff turnover, or audit requirements. Our small business cybersecurity checklist covers the basics — unique credentials, MFA and updates — that matter before central AAA does.

Per-command authorization in actionJunior engineer types: show running-configSwitch asks the server — allowed. Command runs, and an accounting record is written.Junior engineer types: configure terminalSwitch asks the server — denied. The attempt is logged, and nothing changes.Senior engineer types: configure terminalSwitch asks the server — allowed. The change runs, and the accounting log names the engineer.Authentication says who you are. Authorization says what you may do — checked command by command.
Per-command authorization: the same command is allowed or denied depending on who typed it. Illustration by Cysoro.

How do you set up TACACS+?

Setting up TACACS+ has four parts: a server, the device configuration, the user and command policies, and a safe fallback. Do them in that order, and test before you enforce anything.

  1. Stand up a TACACS+ server. Cisco ISE is the usual choice in Cisco networks, and it can serve both TACACS+ and RADIUS from one server. Open-source options exist for smaller networks. Put the server on a protected management network, not on the same segment as user traffic.
  2. Point the devices at the server. On each router or switch, enable AAA, define the TACACS+ server address and shared secret, and tell the device to use the server group for login authentication, command authorization and accounting.
  3. Define who can do what. Create user groups, assign privilege levels, and build command sets: read-only commands for junior staff, full access for senior engineers, and nothing at all for anyone else.
  4. Keep a safe local fallback. If the server cannot be reached, the device should fall back to a local account — otherwise a server outage locks everyone out of every device. Test the fallback before you need it.
  5. Test with a test user. Log in as a junior user, try an allowed command and a denied one, and confirm the accounting log records both. Then review the logs regularly, not just after an incident.

The fallback is the step people skip. A network where every device depends on one unreachable server is a network nobody can fix during an outage — which is exactly when you need access most. For the network side of the setup, our guide to securing your Wi-Fi covers the access-layer controls that sit next to AAA.

What are the security limits of TACACS+?

TACACS+ is stronger than RADIUS at protecting packet contents, but it is not the encryption people assume it is. RFC 8907 calls the scrambling of the packet body "obfuscation", not encryption, because it gives no meaningful integrity, privacy or replay protection.

That has practical consequences. The body is obscured, but the header is clear, and an attacker who can capture traffic can still learn that TACACS+ is in use, which devices talk to which server, and when. Cisco's ISE 3.5 guide tells you to run IPsec between the device and ISE, and it offers TACACS+ over TLS on port 6049, which is off by default.

  • Use a strong shared secret between each device and the server, and rotate it on a schedule. A weak secret undermines the obfuscation entirely.
  • Run TACACS+ over TLS or IPsec where your server supports it, so the traffic gets real confidentiality and integrity.
  • Isolate the management plane. TACACS+ traffic should travel on a management VLAN or out-of-band network, never across user segments.
  • Protect the server itself. The AAA server holds the keys to every device. Harden it, back it up, and monitor its logs like the crown jewels.

These limits do not make TACACS+ a bad choice — they make it a protocol to deploy carefully, with transport protection and network isolation, rather than one to trust blindly. The Versa Networks glossary entry on TACACS+ summarizes the same trade-offs.

The bottom line

TACACS+ is the right tool for administering network devices: it separates authentication, authorization and accounting, checks commands one by one, and logs everything against a named person. RADIUS is the right tool for letting users onto the network. Most networks need both, and one server can usually provide them.

If you run Cisco gear with more than a handful of devices, centralize your device logins behind TACACS+, keep a tested local fallback, and protect the traffic with TLS or IPsec. You can start by auditing the rest of your network baseline with our security baseline product.

Frequently asked questions

What does TACACS+ stand for?

TACACS+ stands for Terminal Access Controller Access-Control System Plus. It is the successor to the original TACACS protocol, developed by Cisco for controlling access to network devices.

What port does TACACS+ use?

TACACS+ uses TCP port 49 for all AAA traffic — authentication, authorization and accounting alike — over a single connection between the network device and the server.

What is the difference between TACACS+ and RADIUS?

TACACS+ separates authentication, authorization and accounting, encrypts the entire packet body, runs over TCP port 49, and supports per-command authorization. RADIUS combines authentication and authorization, encrypts only the password, runs over UDP ports 1812 and 1813, and is built for network access like Wi-Fi and VPN.

Is TACACS+ a standard?

No, not a formal one. TACACS+ is documented in RFC 8907 as an Informational RFC, and Cisco originated it. RADIUS, by contrast, is defined by the open standard RFC 2865. TACACS+ is widely deployed for device administration despite not being an Internet standard.

Is TACACS+ secure?

Partly. It encrypts the packet body, but RFC 8907 calls that scrambling obfuscation rather than encryption, because it gives no meaningful integrity, privacy or replay protection. Cisco recommends running IPsec between the device and the server, and its ISE server offers TACACS+ over TLS on port 6049.

Do I need TACACS+ for a small network?

Probably not. A small network with a few switches can use strong local usernames and passwords. TACACS+ becomes worth it when you have many devices, several administrators, staff turnover, or audit requirements that need a record of who ran which command.

Can one server run both TACACS+ and RADIUS?

Yes. Cisco ISE can serve both protocols from one server: TACACS+ for device administration and RADIUS for network access such as 802.1X Wi-Fi and VPN logins.

Sources

  1. Cisco — Compare TACACS+ and RADIUS
  2. Versa Networks — TACACS+ glossary
  3. ClassicDBA — AAA, TACACS+ and RADIUS Explained
  4. ComputingForGeeks — RADIUS vs TACACS+ and AAA Explained
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Cisco's TACACS+ and RADIUS comparison, RFC 8907, and RFC 2865.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free