Security · 7 min read

What Is a RADIUS Server? How RADIUS Authentication Works

What is a RADIUS server and how does RADIUS authentication work? The Access-Request flow, ports 1812/1813, common uses for Wi-Fi, 802.1X and VPN, popular RADIUS servers and how to secure them.

A RADIUS server is a central authentication server that decides whether a user or device may connect to a network. Switches, Wi-Fi access points, VPN gateways and firewalls send login requests to it instead of keeping their own user lists. The RADIUS server checks the credentials, often against Active Directory or another directory, and replies accept or reject, together with policies such as a VLAN. It also records accounting data about each session.

How RADIUS authentication works

  1. A user connects to Wi-Fi, a switch port or a VPN.
  2. The access device, called the NAS or RADIUS client, sends an Access-Request to the RADIUS server on UDP port 1812.
  3. The server checks the credentials against its directory and policies. For 802.1X it runs an EAP exchange such as PEAP or EAP-TLS.
  4. It replies Access-Accept (with attributes such as VLAN, session time or ACL), Access-Reject, or Access-Challenge for another step such as an MFA code.
  5. The device sends Accounting-Request start and stop messages on UDP 1813 to record the session.

What RADIUS is used for

  • Enterprise Wi-Fi (WPA2/WPA3-Enterprise): each user signs in with their own account. See the WPA3-Enterprise tutorial.
  • Wired 802.1X: only authorised devices get a working switch port. See 802.1X port authentication.
  • VPN logins with MFA.
  • Guest Wi-Fi portals and hotspots.
  • Dynamic VLANs and NAC, including Change of Authorization. See dynamic VLAN and CoA.

Popular RADIUS servers

ServerTypeNotes
FreeRADIUSFree, open sourceThe most widely deployed RADIUS server; runs on Linux
Microsoft NPSIncluded with Windows ServerIntegrates directly with Active Directory
Commercial NAC / policy serversCommercialAdd guest portals, device profiling, posture checks and TACACS+
Cloud RADIUS servicesSubscriptionNo server to maintain; connect to cloud identity providers

How to secure a RADIUS server

  • Patch against Blast-RADIUS (CVE-2024-3596) and require the Message-Authenticator attribute.
  • Use a unique, long shared secret per client.
  • Prefer EAP-TLS or PEAP over PAP and CHAP, and make clients validate the server certificate.
  • Keep RADIUS traffic on a management network, or use RADIUS over TLS (RadSec) between sites.
  • Run two servers for redundancy and send logs to your SIEM.

Full steps: harden RADIUS. For administrator logins to network devices, compare RADIUS vs TACACS+.

FAQ

Frequently asked questions

What is a RADIUS server used for?

Centrally authenticating users and devices for Wi-Fi, wired 802.1X, VPN and hotspots, assigning policies such as VLANs, and recording session accounting.

What does RADIUS stand for?

Remote Authentication Dial-In User Service, a name from its origins in dial-up internet access.

What ports does RADIUS use?

UDP 1812 for authentication and 1813 for accounting. Older equipment may use 1645 and 1646.

Is there a free RADIUS server?

Yes. FreeRADIUS is free and open source, and Microsoft NPS is included with Windows Server.

Is RADIUS the same as Active Directory?

No. Active Directory stores users. RADIUS is the protocol and server that network devices use to check those users when they connect.

Need help designing your network?

Navijin engineers provide free design consultations, bills of materials and quotations for business projects.