L3 · NetworksNetworking 101 · part 7 of 7

Eduroam on Linux: Why One Wi-Fi Network Is So Hard to Join

Eduroam isn't a Wi-Fi password, it's a personal login that works across thousands of universities. Here's how it works, why Linux has trouble with it, and the settings that work.

Takumi Yamada
· 6 min read
eduroamwifi802.1xlinuxnetworking

If you use a Linux laptop at a university, you may know this situation. Your phone joined eduroam in ten seconds. The student next to you, on Windows, clicked an installer. You are looking at a NetworkManager window with eight drop-down menus, asking about EAP (Extensible Authentication Protocol) methods, phase 2 authentication and CA (Certificate Authority) . If you guess one wrong, there's no error message. It just quietly fails to connect.

That's frustrating. But I don't think the settings are random. Eduroam is a different kind of network from your home Wi-Fi, and those eight menus exist because of that difference.

Eduroam is not a password, it's a login

Home Wi-Fi uses WPA (Wi-Fi Protected Access)-Personal. There is one shared password, the knows it, and it's the same for everyone.

Eduroam uses WPA-Enterprise, also called 802.1X. Every user has their own username and password, and the access point, the Wi-Fi box on the ceiling, doesn't check them at all. It passes your login on to an authentication called RADIUS (Remote Authentication Dial-In User Service) and waits for the answer.

HOME WI-FIWPA-PersonalLAPTOPone shared passwordROUTERchecks itEDUROAMWPA-EnterpriseLAPTOPyour loginACCESS POINTjust a relayCAMPUS RADIUSchecks who you are
On home Wi-Fi the router knows the password. On eduroam the access point only passes your login on.

Here is the clever part, and the reason eduroam exists. Your username looks like an email address, and the part after the @ is called the realm. The realm says which university you belong to, so a login can be sent there.

If you visit a university in another country, its RADIUS server reads your realm and forwards your login to your home university.

[email protected]the realm after the @ says where to send itLAPTOPin AmsterdamACCESS POINTjust a relayVISITED RADIUSnot mine, route itNATIONAL PROXYNetherlandsNATIONAL PROXYJapanHOME RADIUSchecks the passwordThe answer comes back the same way.The visited campus never sees the password.
A login typed in Amsterdam and checked in Japan.

One login works at about 40,000 institutions around the world, and the university you are visiting never learns your password. It's a very well designed system.

It's also why the window has eight menus. Every part of that system is a setting your laptop has to get right.

The handshake inside the handshake

Your login is sent over Wi-Fi using EAP, a that has about a dozen variants. Choosing the variant is menu number one.

The usual pattern is a tunnel inside a tunnel.

  1. The outer tunnel, usually PEAP (Protected Extensible Authentication Protocol) or TTLS (Tunneled Transport Layer Security). Your laptop opens an (Transport Layer Security) connection to the RADIUS server, in the same way a browser opens an (Hypertext Transfer Protocol Secure) connection. The server proves who it is with its certificate.
  2. The inner login, usually MSCHAPv2 or PAP. Your actual username and password travel inside that encrypted tunnel.
OUTER TUNNELa TLS connection, set up with PEAP or TTLSINNER LOGINMSCHAPv2 or PAPLAPTOPRADIUSchecks you[email protected]outside the tunnel: enough to route you home[email protected]inside it: your real username and password
The outer tunnel protects the inner login. The two lines underneath are the two identities in the settings.
SettingWhat it actually means
EAP method: PEAP or TTLSWhich kind of outer TLS tunnel
Phase 2 or inner authHow the password is sent inside the tunnel
CA certificateWhich authority must have signed the RADIUS server's certificate
The exact server name the certificate must show
IdentityYour username plus realm. The realm is what routes your login
Anonymous identityWhat other networks see, so they can route you without learning who you are

Every row has to match what your university's RADIUS server expects. There's no way for the network to tell your laptop the right answers, so you have to know them. And that's the real problem.

Why Linux specifically suffers

Windows and macOS get an installer, and Linux gets a form. Universities give out one-click setup profiles for the big , often through cat.eduroam.org. The Linux instructions, when there are any, are often a screenshot of someone else's NetworkManager window from 2019. You answer the same eight questions by hand, from instructions that may be wrong.

The CA certificate trap. The TLS tunnel is only safe if your laptop checks the RADIUS server's certificate. If it doesn't, anyone can set up a fake eduroam access point, accept your tunnel, and collect a scrambled form of your password, called a hash. They can then try to crack it later on their own computers.

CA LEFT EMPTYany certificate passesLAPTOPFAKE EDUROAManyone can run oneyour password hashkept, and crackedoffline laterCA SETcertificate is checkedLAPTOPFAKE EDUROAManyone can run onewrong certificate,so nothing is sent
The same fake access point, with and without the CA certificate setting.

Phones choose a safe setting here without showing you. On Linux you have to provide the CA certificate file yourself, and ideally the expected server name too. The problem is that leaving the CA certificate empty often works, without being safe, so a lot of advice online says to skip it. That advice is unsafe. Newer versions of NetworkManager refuse an empty CA setting, and that's exactly when setups that always worked suddenly stop.

MSCHAPv2 is very old, and modern encryption libraries treat it that way. The inner login method most universities still use comes from Windows NT, from the 1990s, and depends on old algorithms called MD4 and DES. Modern versions of OpenSSL, the common encryption library, keep those in a separate "legacy" part. So Linux systems with strict security settings sometimes break eduroam completely. Fedora and RHEL (Red Hat Enterprise Linux) users saw this when their security settings turned off old TLS versions that some university RADIUS servers still needed. The connection failed because the laptop was more secure than the university's server.

YOUR LAPTOPTHE UNIVERSITY'S RADIUS SERVERTLS 1.3acceptednot installedTLS 1.2acceptednot installedTLS 1.1switched off by policysupportedTLS 1.0switched off by policysupportedNo row is solid on both sides, so there is no version the two can agree on.
A laptop with the old versions switched off, and a server that only has the old versions.

iwd doesn't ask at all. Some Linux setups use iwd instead of NetworkManager to manage Wi-Fi, which is common on minimal Arch and Hyprland desktops. iwd has no setup window. Enterprise networks quietly fail until you write a settings file by hand, and nothing tells you that. I found that out on the Arch Wiki at one in the morning.

What actually works

The best way is the CAT tool. cat.eduroam.org has setup profiles for each university. The Linux download is a Python script that sets up NetworkManager with the right certificate already included. If your university has one, use it and skip the manual setup.

NetworkManager by hand. The values differ between universities, but these are the most common ones.

Security:            WPA & WPA2 Enterprise
Authentication:      Protected EAP (PEAP)        ← or Tunneled TLS (TTLS)
Anonymous identity:  [email protected]
CA certificate:      your university's CA .pem   ← do NOT leave empty
Domain:              radius.your-uni.ac.jp
Inner authentication: MSCHAPv2                   ← or PAP with TTLS
Username:            [email protected]          ← full realm, always
Password:            your campus password

Two mistakes in that block make the connection fail without any error. The first is a username without the realm at the end, because then your login can't be routed. The second is the wrong inner authentication method. Check your university's page, and then check a nearby university's page too, because another university's instructions are sometimes more accurate.

LAPTOPthe dialogVISITED NETWORKaccess point, RADIUSNATIONAL PROXIESone per countryHOME RADIUSyour universityAnonymous identityall that it sees of you@your-uni.ac.jpthe realm routes the loginCA certificate, Domainprove the server is realInner authenticationsends the username and password
Each setting in the dialog is used by one part of the path.

iwd. Create the file /var/lib/iwd/eduroam.8021x.

[Security]
EAP-Method=PEAP
EAP-Identity[email protected]
EAP-PEAP-CACert=/etc/ssl/certs/your-uni-ca.pem
EAP-PEAP-ServerDomainMask=radius.your-uni.ac.jp
EAP-PEAP-Phase2-Method=MSCHAPV2
EAP-PEAP-Phase2-Identity[email protected]
EAP-PEAP-Phase2-Password=your-password

[Settings]
AutoConnect=true

If it still fails, watch the connection attempt in the system log. The reason is usually written there.

journalctl -fu NetworkManager     # or: journalctl -fu iwd
# "TLS alert: unknown CA"     → wrong or missing CA cert
# "EAP authentication failed" → inner auth mismatch or bad realm

The Bottom Line

With eduroam, the network itself is very well designed, and the setup process is the weak part. It can log you in at 40,000 universities, but joining it can fail because of one unlabelled menu.

The settings aren't random, though. Each one matches a real part of the system. The realm sends your login home. The CA certificate proves the server is real. The inner method is the login itself.

I run Arch with a deliberately minimal network setup, and NEJEN, the desktop I'm building, will be used by people who do the same. So enterprise Wi-Fi that works without manual setup is on my list, because I have had to set it up by hand myself. Once you understand the tunnel inside the tunnel, you know what each of the eight menus is asking.

Check yourself

3 questions · nothing is saved
  1. 1.How does eduroam know which university should check your login?
  2. 2.Leaving the CA certificate empty often still connects. Why is it unsafe?
  3. 3.You type your username without the realm at the end. What happens?

Who wrote this

Author profile and background

Takumi Yamada

Takumi Yamada

· Backend Engineer

Backend engineer building services, databases, Linux tooling, and NEGEN SYSTEMS. Writing about low-level mechanics, distributed systems, and real-world security.

End of post
NEGEN SYSTEMS
Receipt · post 12 of 31
Written
Jan 19, 2026
Length
1,268 words · 6 min
Built
…
Served by
…
Delivered
…
Over the wire
…
Go's share
…
Next up the stack · L4 Security

The Cyberattacks You'll Actually Meet in Your Lifetime

The attacks that will actually reach you aren't the ones in films. They are phishing, reused passwords, infostealers, phone scams and SIM swaps. Here's how each one works, how to spot it while it's happening, and the short list of habits that stops nearly all of them.

12 min read