Glossary

EAP (Extensible Authentication Protocol)

EAP is a framework that carries many different login methods between a device, a network access point and an authentication server, most visibly in enterprise Wi-Fi and wired 802.1X networks.

Why is EAP called extensible?

EAP itself does not define how anyone proves who they are. It defines a simple envelope of request, response, success and failure messages, and leaves the actual proof to a method plugged into it. New methods can be added without changing switches, access points or the core protocol. That is why the same Wi-Fi access point can support certificate logins today and a different method tomorrow: it just forwards EAP messages without needing to understand the method inside. The framework is defined in RFC 3748.

Who are the three parties in an EAP login?

Role in 802.1XWhat it isExample
SupplicantThe device asking for accessA laptop with wpa_supplicant, a phone
AuthenticatorThe network device controlling the portA Wi-Fi access point or managed switch
Authentication serverChecks the credentials and decidesA RADIUS server such as FreeRADIUS

Between the device and the access point, EAP travels inside EAPOL frames defined by IEEE 802.1X. Between the access point and the server, it travels inside RADIUS packets. Until the server says yes, the port only passes authentication traffic.

Which EAP methods are common?

MethodClient proves identity withServer certificateNotes
EAP-TLSIts own client certificateRequiredStrongest common choice; needs certificate management for every device
PEAP (MSCHAPv2 inside)Username and password inside a TLS tunnelRequiredVery widely supported; safe only if clients verify the server certificate
EAP-TTLSPassword or other inner method inside TLSRequiredFlexible inner methods, good fit for LDAP back ends
EAP-PWDA password, without certificatesNot usedResists offline guessing, less widely supported
EAP-SIM, EAP-AKAMobile SIM credentialsNot usedCarrier Wi-Fi offload
EAP-MD5, LEAPWeak password challengeNot usedObsolete; avoid

Why does server certificate checking matter so much?

With PEAP and EAP-TTLS, the password exchange runs inside a TLS tunnel to the RADIUS server. If devices are configured to accept any certificate, an attacker can set up a fake access point with the same network name, present their own certificate, and collect password hashes from every device that connects. Configure every client to trust only your CA and to expect the exact server name. Better still, move to EAP-TLS, where there is no password to steal.

Can I host the RADIUS server on a dedicated machine?

Yes, and it is a common pattern for organizations with several offices: one or two RADIUS servers in a data center serve access points everywhere. FreeRADIUS on Debian or Ubuntu gets you started:

apt install -y freeradius freeradius-utils
cat >> /etc/freeradius/3.0/clients.conf <<'EOF'
client branch-lisbon {
    ipaddr = 198.51.100.40
    secret = use-a-long-random-shared-secret
    shortname = lisbon-ap-controller
}
EOF
freeradius -XC                         # check the configuration
systemctl restart freeradius
radtest -t mschap testuser testpass 127.0.0.1 0 testing123

RADIUS uses UDP 1812 for authentication and 1813 for accounting. Open those ports only to your office addresses, because the classic RADIUS transport protects passwords weakly and relies on the shared secret. Recent guidance after the Blast-RADIUS findings is to require the Message-Authenticator attribute on every packet; current FreeRADIUS releases offer a setting for that. Better still, carry RADIUS over TLS (RadSec, TCP 2083) or inside a WireGuard tunnel between offices and the server. Replace the default certificates in /etc/freeradius/3.0/certs with ones from your own CA before going live.

Where does the user database live?

FreeRADIUS can check users against a local file for testing, but production setups usually point it at LDAP or Active Directory for passwords, or at an internal CA for EAP-TLS. The server then also returns attributes, such as which VLAN a user belongs to, so staff and guests land on different networks from the same access point.

How do I troubleshoot a failing EAP login?

Run the server in debug mode with freeradius -X after stopping the service, then try the login. The output shows each EAP round, the method negotiated, the inner identity and the exact reason for any reject, from a wrong password to a certificate the client refused. On the client side, journalctl -u wpa_supplicant -f or NetworkManager logs show whether the device rejected the server certificate, which is the most common cause after a certificate renewal. Comparing both sides usually pinpoints the problem in one attempt.

What size machine does RADIUS need?

Very little. Authentication bursts happen when everyone arrives in the morning, and even then thousands of logins a minute are light work. The E1 handles a large organization; a second box in another city, for example one in Ashburn and one in Seattle, gives redundancy because access points can list two RADIUS servers.

Machines for a Central RADIUS Server

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
E1Intel Xeon E3-1240 v34 / 816 GB DDR32x 240 GB SSD2x 1 Gbps$30.52$91.56 (3 months)
E2Intel Xeon E3-1270 v34 / 832 GB DDR31x 480 GB SSD2x 1 Gbps$38.32$114.96 (3 months)
S1Intel Xeon E-2276G6 / 1264 GB DDR41x 1 TB NVMe2x 10 Gbps$53.32$53.32 (1 month)

Keep Reading

Authentication

How a system confirms that a user, device or service is who it claims to be, the main methods, and Linux logins.

Open

TLS Handshake

The exchange that sets up an encrypted HTTPS connection: hellos, key agreement, certificates, and how TLS 1.3 cut it to one round trip.

Open

UDP

The connectionless transport behind DNS, games, voice and QUIC, what it trades away compared with TCP, and how to run UDP services well.

Open

Multi-Factor Authentication

Logins that need two or more independent proofs of identity, the factor types compared by strength, and adding MFA to SSH and web apps.

Open

FAQ

Quick Answers

Mainly for logging devices into enterprise Wi-Fi and wired 802.1X networks, with credentials checked by a RADIUS server.

EAP-TLS, where each device has its own certificate and no password is exchanged.

Yes, when every client verifies the RADIUS server certificate. Without that check, fake access points can capture credentials.

Yes. Allow RADIUS ports only from your office addresses, or carry the traffic over TLS or a tunnel.

UDP 1812 for authentication and 1813 for accounting. RadSec uses TCP 2083.