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.
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) certificates. 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 router 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 server called RADIUS (Remote Authentication Dial-In User Service) and waits for the answer.
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.
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 protocol that has about a dozen variants. Choosing the variant is menu number one.
The usual pattern is a tunnel inside a tunnel.
- The outer tunnel, usually PEAP (Protected Extensible Authentication Protocol) or TTLS (Tunneled Transport Layer Security). Your laptop opens an encrypted TLS (Transport Layer Security) connection to the RADIUS server, in the same way a browser opens an HTTPS (Hypertext Transfer Protocol Secure) connection. The server proves who it is with its certificate.
- The inner login, usually MSCHAPv2 or PAP. Your actual username and password travel inside that encrypted tunnel.
| Setting | What it actually means |
|---|---|
| EAP method: PEAP or TTLS | Which kind of outer TLS tunnel |
| Phase 2 or inner auth | How the password is sent inside the tunnel |
| CA certificate | Which authority must have signed the RADIUS server's certificate |
| Domain | The exact server name the certificate must show |
| Identity | Your username plus realm. The realm is what routes your login |
| Anonymous identity | What 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 operating systems, 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.
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.
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.
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- Written
- Jan 19, 2026
- Length
- 1,268 words · 6 min
- Built
- …
- Served by
- …
- Delivered
- …
- Over the wire
- …
- Go's share
- …
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.
Building a Home Server From an Old Laptop
Turning a spare laptop into a Debian home server: choosing the operating system, setting it up remotely without locking yourself out, publishing services through a Cloudflare Tunnel, and fixing an AdGuard Home container that ran but couldn't be reached.
Smart Homes Are a Security Nightmare (If You're Not Careful)
Every smart bulb is a small computer on your network. Here's how these devices get taken over, and the checklist that keeps them contained.
How Linux Boots: From Power Button to Login
Firmware, bootloader, kernel, initramfs, PID 1: the chain of programs that runs between pressing the power button and seeing a login screen.
Projects built with what this post is about.

