RADIUS
RADIUS lets network devices (Wi-Fi controllers, switches, VPN gateways) ask a central server whether a user may connect, and which network or rights they get. It sits behind almost every enterprise Wi-Fi and VPN login.
- OSI layer
- 7 Application
- Carried in
- UDP (TCP/TLS for RadSec)
- Ports
- 1812/udp (authentication), 1813/udp (accounting), 1645, 1646/udp (legacy), 3799/udp (CoA), 2083/tcp (RadSec)
- Wireshark filter
radius- Encrypted
- no
Packet structure
Select a field to see what it does.
All information travels in attributes. Vendor-Specific attributes (type 26) carry vendor extensions, such as Microsoft MPPE keys for Wi-Fi encryption or Cisco AV pairs.
How it works
sequenceDiagram
participant U as User device
participant N as NAS (switch, AP, VPN)
participant R as RADIUS server :1812
U->>N: Connect (EAP over 802.1X, VPN login, ...)
N->>R: Access-Request (User-Name, NAS-IP, Calling-Station-Id, EAP-Message)
R->>N: Access-Challenge (next EAP step)
N->>R: Access-Request (EAP response)
R->>N: Access-Accept (VLAN, ACL, session keys)
N->>U: Access granted
N->>R: Accounting-Request Start (:1813)
N->>R: Accounting-Request Stop (bytes, duration)
The NAS (network access server: switch, access point, VPN gateway, firewall) is the RADIUS client. It shares a secret with the server, which is used to hide passwords and sign responses. The server checks the user against a directory (LDAP, AD) and answers with Accept plus authorization attributes (VLAN, ACL, session timeout), Reject, or Challenge for multi-step logins such as EAP or OTP.
Accounting (port 1813) records who was connected when, from where, and how much traffic they used.
In Wireshark
| Filter | Shows |
|---|---|
radius | All RADIUS |
radius.code == 1 | Access-Request |
radius.code == 3 | Access-Reject (failed logins) |
radius.code == 2 | Access-Accept |
radius.User_Name | Requests with a user name (add as a column) |
radius.User_Password | PAP logins: password only protected by the shared secret |
radius.Calling_Station_Id | Client MAC or caller ID |
radius.code == 4 | Accounting (sessions start and stop) |
eap | EAP carried inside RADIUS |
!radius.Message_Authenticator && radius.code <= 3 | Packets without Message-Authenticator (Blast-RADIUS risk) |
With the shared secret entered under Preferences › Protocols › RADIUS, Wireshark decodes the User-Password attribute.
What normal looks like: RADIUS only between the NAS devices and the RADIUS servers, inside the management network. Many rejects for one user (brute force) or for many users from one NAS (spraying), requests from unknown NAS addresses, or RADIUS crossing the internet unencrypted are worth investigating.
Security notes
- Weak crypto: RADIUS over UDP relies on MD5 and the shared secret. A weak secret can be cracked offline from one captured Access-Request/Accept pair; with PAP, the user’s password follows.
- Blast-RADIUS (CVE-2024-3596): an on-path attacker forges an Access-Accept from a Reject using an MD5 chosen-prefix collision. Fix: require Message-Authenticator on all packets, or use RadSec.
- PAP and CHAP: PAP sends the password (only obfuscated); prefer EAP methods with TLS (PEAP, EAP-TLS, EAP-TTLS).
- Rogue NAS: a device that knows the secret can test credentials against the server. Restrict which IPs may act as clients and use one secret per NAS.
- Dynamic VLAN abuse: attributes in the Accept decide which network a user lands in; a forged or misconfigured Accept can put an attacker in a privileged VLAN.
- RadSec (RADIUS over TLS, TCP 2083) or IPsec should protect RADIUS that crosses untrusted networks, e.g. eduroam or cloud RADIUS.
Versions and related
- RADIUS (RFC 2865, accounting RFC 2866) is from the 1990s and still the standard for network access.
- RadSec (RFC 6614, TLS; RFC 7360, DTLS) wraps RADIUS in TLS.
- Diameter is the successor in mobile networks (4G/5G); TACACS+ (TCP 49) is used for device administration logins, with full encryption of the body.
- Carries 802.1X / EAP for Wi-Fi and wired port authentication. Common servers: Microsoft NPS, FreeRADIUS, Cisco ISE, Aruba ClearPass.
References
- RFC 2865: RADIUS
- RFC 2866: RADIUS accounting
- RFC 3579: RADIUS support for EAP
- RFC 6614: RADIUS over TLS (RadSec)
- Blast-RADIUS