What Is the RADIUS Protocol? Network Authentication Explained for 2026. RADIUS is the AAA protocol behind Wi-Fi, VPN and switch logins. See how it works on ports 1812 and 1813, how it compares to SAML and OIDC, and how to secure it.
RADIUS (Remote Authentication Dial-In User Service) is a client/server protocol, defined in RFC 2865, that centralizes authentication, authorization and accounting (AAA) for Wi-Fi, VPN and network device access. A network access server, such as a Wi-Fi access point or VPN gateway, sends the user’s credentials to a RADIUS server over UDP ports 1812 and 1813, and the server accepts, rejects or challenges the request.
You have probably met RADIUS as a field in a Wi-Fi controller, a VPN gateway or a switch config that asks for a server address and a shared secret. This guide explains what happens behind that field in plain terms: how a RADIUS login flows, how accounting works, how 802.1X and EAP use RADIUS for enterprise Wi-Fi, where RADIUS sits next to LDAP, SAML and OIDC, and what the 2024 BlastRADIUS attack means for the RADIUS servers you run today. It closes with the usual ways teams connect RADIUS to a central identity provider so that network logins use the same accounts and MFA as everything else.
Key takeaways
- RADIUS is a network access protocol: the “client” is the Wi-Fi access point, switch or VPN gateway, not the user’s laptop.
- Authentication and authorization travel on UDP port 1812 and accounting on UDP port 1813, protected by a shared secret and MD5.
- Web single sign-on protocols such as SAML and OIDC cover browser and app logins, while RADIUS covers getting onto the network itself.
- The BlastRADIUS attack (CVE-2024-3596) lets a man-in-the-middle forge an accept. Require the Message-Authenticator attribute on every packet now, and move to RADIUS over TLS where your equipment supports it.
What is RADIUS?
RADIUS is an AAA protocol: it answers who the user is (authentication), what they may do on the network (authorization), and what they did while connected (accounting). The current specification, RFC 2865, dates from June 2000, and the “dial-in” in its name comes from its origins in dial-up modem pools. The same model fits a Wi-Fi network or a VPN today, so RADIUS never went away.
The model has three parties. The user’s device wants to get onto the network. The network access server (NAS) is the device that controls the door, such as a wireless access point, a switch port or a VPN concentrator. The RADIUS server holds (or can reach) the user accounts and the rules. The NAS is the RADIUS client, which surprises people at first: the user’s laptop never talks RADIUS directly, it talks to the NAS, and the NAS asks the RADIUS server on its behalf.
The NAS and the RADIUS server trust each other through a shared secret configured on both sides. RFC 2865 says transactions are “authenticated through the use of a shared secret, which is never sent over the network”, and that “It is preferred that the secret be at least 16 octets”. That secret is also the key behind the protocol’s MD5-based protections, which is why its strength matters more than it first appears.
How does RADIUS authentication work?
A RADIUS login is a short exchange of packets between the NAS and the server. The RFC names four packet types for authentication, with these code values: Access-Request (1), Access-Accept (2), Access-Reject (3) and Access-Challenge (11). The official port is set out plainly in the same section: “The officially assigned port number for RADIUS is 1812.”
- The user connects to the network and enters a username and password, or their device presents a certificate.
- The NAS builds an Access-Request with the user’s details and sends it to the RADIUS server over UDP port 1812. If a password is included, it is not sent in clear text: it is hidden using a method based on MD5 and the shared secret.
- The RADIUS server checks the user against its own user store or a directory behind it, and applies its policies (which group the user is in, which network they asked for, the time of day).
- The server answers. An Access-Accept lets the user on and can carry attributes such as the VLAN to place them in. An Access-Reject turns them away. An Access-Challenge means the server wishes to issue a challenge to which the user must respond, which is how a RADIUS server can ask for a one-time code as a second factor.
The server signs every reply with a Response Authenticator, which RFC 2865 defines as an MD5 hash over the packet and the shared secret, so the NAS can tell the reply came from a server that knows the secret. RADIUS runs over UDP, and the RFC explains in section 2.4 that “UDP was chosen for strictly technical reasons”, mainly so that a NAS can retry quickly or fail over to a second server without keeping connections open.
Your device sends its login to the access point, switch or VPN (1), which sends an Access-Request to the RADIUS server on UDP port 1812 (2). The server checks the user (3) and answers with Accept, Reject or Challenge (4), and once the session starts and when it ends, the NAS reports it with Accounting-Request packets on UDP port 1813 (5).
How does RADIUS accounting work?
Accounting is defined separately in RFC 2866, which says “The officially assigned port number for RADIUS Accounting is 1813.” When a session begins, the NAS sends an Accounting-Request with the Acct-Status-Type set to Start, and when it ends, it sends another with Stop; the RFC describes the client generating “an Accounting Start packet” at the start of service delivery and an Accounting Stop packet at the end. The server confirms each one with an Accounting-Response.
Teams use these records to see who was connected, from which device and for how long, and to feed billing at internet providers or security monitoring in a company. Because accounting is a separate exchange on its own port, you can send it to a different server than authentication, for example a log collector.
What is inside a RADIUS packet?
You rarely need the byte layout, but a short overview helps when you read a packet capture or a server log. Every packet has a code (the packet type above), an identifier that matches replies to requests, a length, a 16-byte authenticator, and then a list of attributes. Attributes are type, length and value triples, often called attribute-value pairs (AVPs): User-Name, User-Password, NAS-IP-Address and Reply-Message are common ones from RFC 2865.
Vendors add their own attributes through the Vendor-Specific attribute, which is how a server can tell a particular brand of switch or firewall which role or VLAN to give a user. When a RADIUS integration “half works” (the user gets on but lands in the wrong network), the missing or misnamed vendor attribute is usually the place to look.
How do 802.1X and EAP use RADIUS?
Enterprise Wi-Fi (WPA2-Enterprise or WPA3-Enterprise) and wired port security use IEEE 802.1X, the standard for “Port-Based Network Access Control”. In 802.1X, the switch or access point keeps the port closed until the device proves who it is, and the proof is carried by EAP, the Extensible Authentication Protocol, which RFC 3748 defines as “an authentication framework which supports multiple authentication methods”.
The device and the access point speak EAP over the local network, and the access point wraps each EAP message in a RADIUS packet to the server. RFC 3579 defines how that works with the EAP-Message attribute, and it adds the Message-Authenticator attribute, an HMAC-MD5 hash over the packet. In the notes to its attribute table in section 3.3, it also says that “If any packet type contains an EAP-Message attribute it MUST also contain a Message-Authenticator.” That rule matters again in the security section below.
The EAP method decides what the user actually proves. With EAP-TLS, both sides present certificates: RFC 5216 describes it as “certificate-based mutual authentication and key derivation”. Other methods, such as PEAP, carry a username and password inside a TLS tunnel to the server. Certificates take more setup but remove passwords from Wi-Fi entirely, which is why many teams pick EAP-TLS for company-managed devices.
Identity management as a service, on open source
Skycloak does what Auth0 and Okta do, SSO, MFA, SCIM, audit logs and enterprise federation, on an open source core. Unlimited users and applications on every plan, no charge per monthly active user, and you can export and self-host whenever you want.
How is RADIUS different from LDAP, SAML and OIDC?
These protocols get mixed up because they all appear on a “connect your identity provider” screen, but they solve different problems. RADIUS controls access to the network itself, before the user has an IP address or a browser session. LDAP is a directory protocol that a RADIUS server, a VPN or an identity provider uses to look up accounts and check passwords. SAML and OIDC are web single sign-on protocols: the browser or app is sent to an identity provider, the user signs in there, and the application receives a signed assertion or token. Our guide to authentication methods covers the difference between a method (a password, a passkey) and a protocol in more depth, and authentication vs authorization explains the first two letters of AAA.
| Protocol | What it is for | Who talks to whom | Typical place you meet it |
|---|---|---|---|
| RADIUS | Network access (AAA) | NAS to RADIUS server, UDP 1812 and 1813 | Wi-Fi, VPN, switch and firewall logins |
| LDAP | Directory lookups and password checks | Server or app to directory | User stores, Active Directory |
| Kerberos | Ticket-based login inside a network | Client to key distribution center | Windows domains, internal services |
| SAML 2.0 | Web single sign-on with XML assertions | Browser between app and identity provider | Enterprise SaaS logins |
| OIDC | Sign-in on top of OAuth 2.0 with JSON tokens | Browser or app to identity provider | Web, mobile and API logins |
If Kerberos is the one you still need to place, our explainer on Kerberos authentication walks through its tickets. Most companies run several of these at once: OIDC or SAML for applications, and RADIUS for the network, both reading the same accounts.
What is the difference between RADIUS and TACACS+?
TACACS+ is the other AAA protocol you will see on network equipment, specified in RFC 8907. It “uses TCP for its transport” on port 49, it obfuscates the packet body rather than only the password, and it keeps authentication, authorization and accounting as separate exchanges, so a router can ask whether an administrator may run each individual command. In practice, teams use RADIUS for users getting onto the network and TACACS+ for administrators managing the network devices themselves. RFC 9887 (December 2025) adds TLS 1.3 to TACACS+, the same direction RADIUS is taking.
Is RADIUS secure in 2026?
Classic RADIUS over UDP rests on MD5 and the shared secret, and MD5 has been broken for collisions for many years. The RADIUS over TLS specification says it directly: “RADIUS security is based on the MD5 algorithm, which has been proven to be insecure.” For a long time this was treated as theoretical, because forging a packet needed an MD5 collision computed during a live login.
In 2024, researchers published BlastRADIUS, tracked as CVE-2024-3596 and coordinated by CERT/CC as VU#456537. The researchers’ site explains that the attack “combines a novel protocol vulnerability with an MD5 chosen-prefix collision attack”, and that it lets an attacker “turn a reject into an accept, and add arbitrary protocol attributes.” The attacker needs “network access to act as a man-in-the-middle” between the NAS and the RADIUS server, so the risk is highest where RADIUS traffic crosses networks you do not control, such as a RADIUS server reached over the internet.
The fixes come in two steps:
- Now: require Message-Authenticator everywhere. The researchers’ first mitigation is to “always send and require Message-Authenticator attributes for all requests and responses”. EAP traffic already had to carry it under RFC 3579, so PAP and other non-EAP logins are the most exposed. Update both the RADIUS server and every NAS, then turn on the setting that rejects packets without the attribute.
- Next: move RADIUS inside TLS. The longer-term advice is to use RADIUS inside an encrypted and authenticated channel. RadSec, RADIUS over TLS, is defined in RFC 6614, which runs RADIUS over TCP and states “The default destination port number for RADIUS over TLS is TCP/2083.” Inside TLS, the MD5 shared secret is no longer what protects the traffic: the RFC fixes it to the constant value “radsec” and calls those MD5 checks obsolete.
The IETF has kept working on this since BlastRADIUS. RFC 9765 (April 2025, Experimental) defines RADIUS/1.1, which uses TLS application-layer protocol negotiation to remove the MD5-based packet authentication and attribute obfuscation from RADIUS over TLS, and RFC 9813 (July 2025, Best Current Practice) covers using TLS pre-shared keys with RADIUS. A working group draft on deprecating insecure RADIUS practices and an updated RadSec specification are still drafts, not RFCs, so check your vendor’s support before you plan around them.
How do teams connect RADIUS to a central identity provider for MFA?
Most companies want network logins to use the same accounts, groups and second factor as their applications, so that disabling someone in one place also takes them off the Wi-Fi and the VPN. Web identity providers speak SAML and OIDC, though, and a NAS speaks RADIUS, so something has to sit between them. There are three common patterns.
- The RADIUS server reads the same directory. A RADIUS server such as FreeRADIUS can check users against LDAP: its documentation explains authenticating users with LDAP, where LDAP is the backend the RADIUS server uses to verify user credentials and FreeRADIUS performs the authentication logic itself. If your identity provider is federated with the same LDAP or Active Directory, as described in our Keycloak LDAP integration guide, both sides check the same accounts.
- Certificates instead of passwords. With EAP-TLS, devices get certificates from your PKI and the RADIUS server checks them, so no password travels to the network at all. Your identity system then decides who gets a certificate, and revoking it removes network access.
- An adapter that adds the identity provider’s MFA. Some identity providers ship a RADIUS component. Microsoft’s NPS extension, for example, “acts as an adapter between RADIUS and cloud-based Microsoft Entra multifactor authentication”, and in that setup the VPN server “converts them into RADIUS requests to NPS servers”. A RADIUS server can also use Access-Challenge to ask for a one-time code, which works with VPN clients that can show a prompt. Our explainer on multi-factor authentication covers which second factors to choose.
If your applications sign in through Keycloak, be clear about where RADIUS fits. Keycloak’s Server Administration Guide says “Keycloak uses open protocol standards like OpenID Connect or SAML 2.0 to secure your applications.” The same guide describes using Keycloak “as an integration platform to hook it into existing LDAP and Active Directory servers”, but it documents OpenID Connect and SAML 2.0 as its protocols and does not list RADIUS among them. In a Keycloak setup, the RADIUS server therefore sits beside Keycloak and both read the same LDAP or Active Directory, which is the first pattern above.
FAQ
What ports does RADIUS use?
RADIUS uses UDP port 1812 for authentication and authorization and UDP port 1813 for accounting. RFC 2865 notes that early deployments used UDP port 1645, and some older equipment still uses it, so check both sides if packets never arrive. RADIUS over TLS (RadSec) uses TCP port 2083.
Is RADIUS still used in 2026?
Yes. Enterprise Wi-Fi with 802.1X, VPN gateways and many switches and firewalls still authenticate users through RADIUS, and the IETF published new RADIUS standards in 2025, such as RFC 9765 and RFC 9813. The change is in how it is secured, with Message-Authenticator required and TLS replacing plain UDP where possible.
Is RADIUS traffic encrypted?
Not in its classic form. Over UDP, only the user’s password is hidden with an MD5-based scheme, and the rest of the packet, including the username, travels in clear text. To encrypt the whole exchange, run RADIUS over TLS as described in RFC 6614, or keep RADIUS traffic on a protected management network.
What is the difference between RADIUS and SAML?
RADIUS lets a network device decide whether a user may join the network, while SAML lets a web application trust a login done at an identity provider. A Wi-Fi access point cannot redirect you to a sign-in page before you are on the network, which is why network access still uses RADIUS and applications use SAML or OIDC.
Does Keycloak support RADIUS?
Keycloak’s documentation does not list RADIUS among its protocols. Keycloak secures applications with OpenID Connect and SAML 2.0 and can use LDAP and Active Directory as user storage. To use the same accounts for network access, run a RADIUS server such as FreeRADIUS against the same directory.
What to do next
Start by finding every device that sends RADIUS on your network and checking that each one, and your RADIUS server, has been updated to send and require Message-Authenticator. Then plan RADIUS over TLS for any RADIUS traffic that leaves a network you control, and point the RADIUS server at the same directory your identity provider uses so that one account change applies everywhere.
To see where RADIUS sits next to SAML, OIDC and Kerberos, and which login methods Keycloak runs, read our guide to authentication methods.

