Passwords & identity

What Is RADIUS Authentication? How It Works, Ports and Security

RADIUS is the protocol behind enterprise Wi-Fi logins, VPN access and switch authentication. One central server decides who gets in — here is how it works and how to secure it.

Cysoro Security TeamPublished · 8 min read
ACCESS POINT · SWITCH · VPNAccess-RequestUDP port 1812 RADIUS SERVERAccess-Acceptor Reject · or Challenge Accounting · UDP 1813start · interim · stop records PASSWORDS & IDENTITY RADIUS authentication One server decides who gets in.
Quick answer

RADIUS (Remote Authentication Dial-In User Service) is a network protocol that centralizes authentication, authorization and accounting for users and devices requesting network access. A network device such as a Wi-Fi access point forwards credentials to a central RADIUS server, which replies Access-Accept, Access-Reject or Access-Challenge. It runs over UDP ports 1812 for authentication and 1813 for accounting, as defined in RFC 2865 and RFC 2866.

Key takeaways

  • RADIUS centralizes network logins: one server checks Wi-Fi, VPN and wired users instead of accounts living on every device.
  • It runs over UDP ports 1812 for authentication and 1813 for accounting, with a shared secret protecting the exchange.
  • Classic RADIUS only obscures the password, so modern deployments pair it with EAP-TLS or RadSec to encrypt the full exchange.

When you join your company's Wi-Fi and type your username and password, the access point on the ceiling does not check your password itself. It asks a central server — and that server is almost always a RADIUS server.

What is RADIUS authentication?

RADIUS (Remote Authentication Dial-In User Service) is a network protocol that centralizes authentication, authorization and accounting — the three As of AAA — for users and devices requesting network access. It is defined in RFC 2865 for authentication and authorization, and RFC 2866 for accounting.

The idea is simple: instead of keeping user accounts on every switch, access point and VPN gateway, each device forwards login requests to one central server. That server checks the credentials against its user store, applies policy, and returns a decision. The device then enforces the answer.

RADIUS dates back to 1991, when it authenticated dial-up modem users. The modems are gone, but the protocol still answers the same question billions of times a day on enterprise Wi-Fi, wired 802.1X networks and VPN gateways.

How does RADIUS authentication work?

A RADIUS exchange involves three actors: the user or device asking for access, the network access server (NAS) that forwards the request, and the RADIUS server that decides. The conversation follows the same five steps every time.

A RADIUS authentication exchangeUserlaptop, phone,or deviceNASaccess point,switch, VPN gatewayRADIUS serverchecks credentialsand policyloginAccess-RequestUDP 1812Access-Accept / RejectThe NAS never checks credentials itself — it forwards them and enforces the answer.Accounting records go separately to UDP port 1813.
The three actors in a RADIUS exchange. Illustration by Cysoro.
  1. You present credentials. You enter a username and password, or your device presents a certificate, to the access point, switch or VPN gateway.
  2. The NAS sends an Access-Request. The device, acting as the RADIUS client, packages the credentials and attributes such as your username into an Access-Request and sends it to the RADIUS server on UDP port 1812.
  3. The server checks its records. The server finds the NAS by its source IP, verifies the packet using the shared secret, and checks the credentials against its user store, such as Active Directory.
  4. The server replies. It returns Access-Accept, Access-Reject, or Access-Challenge asking for more proof, such as the next step in an EAP exchange or a second factor.
  5. The NAS enforces the answer. If accepted, the reply can carry authorization attributes: which VLAN you belong to, how long your session lasts, or which filter rules apply.

The password never travels in plaintext. It is obscured using a shared secret between the NAS and the server, hashed with MD5. The shared secret itself never crosses the network — but, as the security section below explains, that is only partial protection.

What do authentication, authorization and accounting mean?

RADIUS implements AAA: three separate jobs that are often confused with each other. Authentication is who you are, authorization is what you are allowed to do, and accounting is what you did.

FunctionQuestion it answersHow RADIUS does it
AuthenticationWho are you?Checks credentials in the Access-Request against the user store
AuthorizationWhat can you do?Returns attributes in Access-Accept: VLAN, session timeout, filter rules
AccountingWhat did you do?Receives Accounting-Request records on UDP 1813: start, interim updates, stop

Authorization in RADIUS is folded into the Access-Accept message rather than being a separate exchange. That is powerful but fragile: the NAS and the server must agree on what each attribute means, or the NAS may ignore an attribute it does not understand.

Accounting is a separate packet family on a separate port. The NAS sends Accounting-Request messages when a session starts, periodically while it runs, and when it stops, recording usage data for auditing and billing. This is what lets an organization answer "who was on the network at 2 a.m.?" after an incident.

Which ports does RADIUS use?

RADIUS uses UDP port 1812 for authentication and authorization, and UDP port 1813 for accounting. The older ports 1645 and 1646 come from the days before standardization, when Livingston first deployed RADIUS, and some equipment still defaults to them.

When RADIUS was formally standardized, IANA assigned the correct ports: 1812 for authentication and 1813 for accounting. If you are configuring a firewall for a RADIUS server, open UDP 1812 and 1813 from your NAS devices only — never from the whole internet.

RADIUS runs over UDP rather than TCP deliberately. UDP is simpler, and the application handles its own retransmission and timeouts, which matters when one server serves thousands of access points. Deployments usually configure timeouts, retries and backup servers so that a single failed server does not lock everyone out of the network.

What is EAP, and why does RADIUS need it?

EAP, the Extensible Authentication Protocol, is the framework that carries the actual credential check inside a RADIUS exchange. RADIUS itself does not define how a password or certificate is verified; EAP methods do that, and RADIUS transports them.

The EAP method decides how strong the authentication is. Common methods include PEAP, which wraps a password check inside a TLS tunnel; EAP-TLS, which uses client certificates and is the strongest option; and EAP-TTLS, which is similar to PEAP with more flexibility. For enterprise Wi-Fi, EAP-TLS with certificates is the gold standard, because there is no password to phish or share.

This is also where 802.1X fits in. 802.1X is the port-based access control standard for wired and wireless networks, and it uses EAP to carry the authentication conversation between the device and the RADIUS server. When a device connects to a switch port or a Wi-Fi network, 802.1X keeps the port closed until RADIUS says the device is allowed in.

If you are setting up enterprise Wi-Fi, our guide to how to secure your Wi-Fi covers the home side; RADIUS with 802.1X is the enterprise version of the same idea.

RADIUS vs TACACS+: what is the difference?

RADIUS and TACACS+ are both AAA protocols, but they were built for different jobs. RADIUS authenticates users who want network access; TACACS+ authenticates administrators who want to manage network devices.

RADIUSTACACS+
Main useNetwork access: Wi-Fi, VPN, wired 802.1XDevice administration: switch and router logins
TransportUDP 1812 / 1813TCP 49
Authentication and authorizationCombined in one exchangeSeparate, so each can be controlled independently
EncryptionOnly the password is obscuredThe whole packet body is encrypted
StandardIETF RFC 2865 / 2866Cisco proprietary, later standardized

Many organizations run both: RADIUS for users connecting to the network, and TACACS+ for engineers logging into the switches and routers themselves. They are complements, not competitors.

Is RADIUS secure?

Classic RADIUS is only partly secure, and anyone deploying it should know its limits. The shared secret between the NAS and the server obscures the User-Password attribute with MD5, but most other attributes travel unencrypted unless additional protection is added.

The main weaknesses are well documented. MD5 is a weak hash by modern standards, and the shared secret is the only thing protecting the password — so a short or reused secret is a serious risk. The rest of the packet, including usernames and authorization attributes, is visible to anyone who can observe the traffic. And because RADIUS runs over UDP, it has no built-in protection against replay or spoofing beyond the Request Authenticator.

Modern deployments fix this in three ways. First, use a strong, unique shared secret per NAS, generated randomly and stored securely — never the same secret on every device. Second, use a strong EAP method such as EAP-TLS, so the credential check itself is protected by TLS and certificates. Third, use RadSec, which is RADIUS over TLS, to encrypt the entire exchange between the NAS and the server.

Also consider what happens when the RADIUS server is down. Configure a backup server and a sensible fallback, and make sure a server failure does not silently open the network to everyone. A fail-open configuration is a common and dangerous mistake.

Five ways to secure a RADIUS deployment1. Unique, random shared secret per NASnever one secret for all devices2. Use EAP-TLS with certificatesno password to phish or share3. Encrypt the exchange with RadSecRADIUS over TLS4. Configure a backup servernever fail open by accident5. Monitor accounting logswho connected, when, from where
Five practices that close the classic RADIUS weaknesses. Illustration by Cysoro.

What RADIUS servers are available?

The most common RADIUS servers are Microsoft Network Policy Server (NPS), Cisco Identity Services Engine (ISE), and the open-source FreeRADIUS. Each fits a different environment.

  • Microsoft NPS: the RADIUS server built into Windows Server, and the natural choice for organizations already running Active Directory. It integrates with Entra ID and supports EAP-TLS with certificates issued by Active Directory Certificate Services.
  • Cisco ISE: a full network access control platform that uses RADIUS as its authentication protocol and adds profiling, posture checks and guest access. It suits larger enterprises with complex policy needs.
  • FreeRADIUS: the most widely deployed open-source RADIUS server, used by ISPs, universities and enterprises. It is free, flexible and well documented, but it needs in-house expertise to run well.
  • Cloud RADIUS: managed services such as JumpCloud and Foxpass offer RADIUS as a cloud service, which suits organizations without an on-premises server.

Whichever server you choose, the configuration pattern is the same: define each NAS with its IP address and a unique shared secret, connect the server to your user directory, and define policies that map users and groups to VLANs and session limits.

When should you use RADIUS?

RADIUS is worth the effort when you have many users, need per-user credentials, or must prove who connected and when. It is overkill for a small office with five people and one Wi-Fi password.

  • Enterprise Wi-Fi: each employee logs in with their own credentials, and you can revoke one person's access without changing a shared password.
  • VPN access: the VPN gateway forwards logins to RADIUS, so remote workers use the same credentials and MFA as office users.
  • Wired 802.1X: switch ports stay closed until RADIUS authenticates the device, which stops an intruder from plugging into a wall socket and joining the network.
  • Compliance and auditing: accounting records show who connected, from where, and for how long — evidence auditors ask for.

For a small business, a strong WPA3 passphrase and a guest network are usually enough. The moment you have staff turnover, contractors who need temporary access, or a compliance requirement to log access, RADIUS starts to pay for itself. Our small business cybersecurity checklist helps you decide where network access control fits in your wider security plan.

The bottom line

RADIUS is the quiet workhorse of enterprise networks: a central server that answers one question — who are you, and are you allowed in? — for Wi-Fi, VPN and wired access, over UDP ports 1812 and 1813.

Deploy it with unique shared secrets, EAP-TLS certificates and RadSec where you can, and never let a server failure open the network. If you are still using a single shared Wi-Fi password for the whole office, moving to RADIUS is one of the highest-value security upgrades you can make. Start by checking that your own accounts use strong, unique passwords with the free password strength checker.

Frequently asked questions

What is RADIUS authentication in simple terms?

RADIUS is a central login check for networks. When you connect to enterprise Wi-Fi or a VPN, the access point or VPN gateway asks a central RADIUS server whether you are allowed in, and the server answers yes, no, or prove yourself further.

What port does RADIUS use?

RADIUS uses UDP port 1812 for authentication and authorization, and UDP port 1813 for accounting. Older deployments used ports 1645 and 1646, which some equipment still defaults to.

What is the difference between RADIUS and TACACS+?

RADIUS combines authentication and authorization in one exchange and runs over UDP, while TACACS+ separates them and runs over TCP with full packet encryption. RADIUS is the standard for network access such as Wi-Fi and VPN; TACACS+ is more common for administrator logins to network devices.

Is RADIUS secure?

Classic RADIUS is only partly secure: it obscures the password with the shared secret and MD5, but most other attributes travel unencrypted. Modern deployments use EAP methods such as EAP-TLS for strong authentication, or RadSec (RADIUS over TLS) to encrypt the whole exchange.

What is a RADIUS server?

A RADIUS server is the central server that holds or reaches user accounts and policies. Common examples are Microsoft Network Policy Server, Cisco ISE, and the open-source FreeRADIUS. It receives Access-Request messages and replies with Access-Accept, Access-Reject or Access-Challenge.

What is 802.1X and how does it relate to RADIUS?

802.1X is the port-based access control standard for wired and wireless networks, and RADIUS is the protocol it uses to check credentials. When a device connects, 802.1X carries the authentication conversation (EAP) between the device and the RADIUS server.

Do I need RADIUS for a small business Wi-Fi network?

Probably not for a handful of users: a strong WPA3 passphrase is simpler. RADIUS becomes worth it when you have many users, need per-user credentials, want to revoke one person's access without changing a shared password, or must log who connected and when.

Sources

  1. IETF RFC 2865 — Remote Authentication Dial In User Service (RADIUS)
  2. IETF RFC 2866 — RADIUS Accounting
  3. Microsoft Learn — Network Policy Server (NPS)
  4. Cisco — RADIUS Configuration Guide
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 IETF RFC 2865 and RFC 2866 and Microsoft's Network Policy Server documentation.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

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

Start free