Skip to content

iwd configuration for eduroam that used to work is now broken

I have the following iwd configuration for eduroam that used to work but which is now broken:

[Security]
EAP-Method=PEAP
EAP-Identity=anonymous@domain.fr
EAP-PEAP-CACert=/path/to/cert.pem
EAP-PEAP-Phase2-Method=MSCHAPV2
EAP-PEAP-Phase2-Identity=XXX
EAP-PEAP-Phase2-Password-Hash=**************
EAP-PEAP-ServerDomainMask=radius-eduroam.domain.fr

It is it now stuck at the phase 2 authentication "EAP completed with eapFail". I got crazy trying to fixing it and I ended up trying the exact same setting with the following wpa_supplicant configuration, which turn out to work. Because of covid-19, I don't know exactly when happened the update that broke things.

network={
        ssid="eduroam"
        password=hash:***************
        phase2="auth=MSCHAPV2"
        key_mgmt=WPA-EAP
        eap=PEAP
        altsubject_match="DNS:radius-eduroam.domain.fr"
        ca_cert="/path/to/cert.pem"
        identity="XXX"
        anonymous_identity="anonymous@domain.fr"
}

And I have a similar issue with a non-eduroam but similar PEAP/MSCHAPv2 network.

What could go wrong here? iwd -d or IWD_DEBUT_TLS=true do not log anything in the authentication phase that fails (contrary to wpa_supplicant), is there a way to access this information?

Thanks!

31 points19 comments
Open on Reddit
About this post
Posted
Archived
Score
31 · 89% up
Kind
Text
ID
immw12

Author

4
posts
43
comments
0
media
View profile

19 comments

If you can figure out which version was the last one that worked you could run a git bisect on it.

4 points

Another option would be to get in touch with the upstream devs. I'm sure they'd be happy to help you debug it

2 points

I guess that is the right thing to do, but not so easy to implement (it seems that also the library "ell" has backward incompatible changes), and the problematic wifi is not available during my spare time at home...

1 points

Exact same thing happened to me on PEAP/MSCHAPv2. Downgrading to as low as IWD 1.5 still causes (EDIT - I also hadn't tested it in some time cause of covid but I have definitely used eduroam since after the release of 1.5 )

Weirdly enough it was working yesterday on 1.8 after not working for weeks. The only thing that had changed is upgrading to 5.9 rc2. This leads me to believe it is a kernel bug? I will have to try on Monday with different kernel versions.

3 points

This. iwd failing on repeat basically blacklisted my account for an entire day. Now even my phone refuses to connect.

2 points

When did the problem appear for you, can you spot the iwd version that introduced the break?

1 points

Back to office today, and the problem disappeared! (With nothing more than my beloved pacman -Syu.) Thanks all for your helpful feedback

2 points

Nothing you did except updating and restarting? Couldn't connect this morning (first time I tried after my summer break)

1 points

Nothing. My plan was to try different kernel versions (lts first, then 5.9 rc), but it worked with the current one directly.

1 points

Given the amount of complaints people have been giving iwd + eduroam (while iwd is gaining traction on multiple distros, it might become the default on Ubuntu), I think it's time the eduroam peeps step up their game as well. Any comments on this issue I opened are welcome: https://github.com/GEANT/CAT/issues/201

2 points

I have the same problem, but I don't think it's an iwd update that caused this. Hasn't had an update in months. I tried downgrading the kernel, but it didn't help. But good to know I'm not the only one. Do you also use connman by any chance?

1 points

I use NetworkManager and have the same problem (Was really glad that some people have the same issue). I also don't think it was an iwd update as it worked in july; maybe some libnm or networkmanager updates

1 points

I use systemd-networkd.

According to my pacman.log, iwd was v1.5 in February and it is now v1.8 (since june).

1 points

This is my log-output with IWD_DEBUG_TLS set to true:

Sep 01 14:39:26 AL kernel: wlan0: authenticated
Sep 01 14:39:26 AL kernel: wlan0: associate with XX:XX:XX:XX:XX:XX (try 1/3)
Sep 01 14:39:26 AL kernel: wlan0: RX AssocResp from XX:XX:XX:XX:XX:XX (capab=0x8431 status=0 aid=501)
Sep 01 14:39:26 AL kernel: wlan0: associated
Sep 01 14:39:26 AL iwd[539456]: PEAP: tls_tx_handshake:869 Sending a TLS_CLIENT_HELLO of 123 bytes 
Sep 01 14:39:26 AL iwd[539456]: PEAP: l_tls_start:2803 New state TLS_HANDSHAKE_WAIT_HELLO
Sep 01 14:39:26 AL iwd[539456]: PEAP: tls_handle_handshake:2309 Handling a TLS_SERVER_HELLO of 38 bytes
Sep 01 14:39:26 AL iwd[539456]: PEAP: tls_handle_server_hello:1819 Negotiated TLS 1.2
Sep 01 14:39:26 AL iwd[539456]: PEAP: tls_handle_server_hello:1855 Negotiated TLS_RSA_WITH_AES_256_CBC_SHA
Sep 01 14:39:26 AL iwd[539456]: PEAP: tls_handle_server_hello:1866 Negotiated CompressionMethod.null
Sep 01 14:39:26 AL iwd[539456]: PEAP: tls_handle_server_hello:1869 New state TLS_HANDSHAKE_WAIT_CERTIFICATE
Sep 01 14:39:26 AL iwd[539456]: PEAP: tls_handle_handshake:2309 Handling a TLS_CERTIFICATE of 3043 bytes
Sep 01 14:39:26 AL iwd[539456]: PEAP: tls_handle_certificate:1998 New state TLS_HANDSHAKE_WAIT_HELLO_DONE
Sep 01 14:39:26 AL iwd[539456]: PEAP: tls_handle_handshake:2309 Handling a TLS_SERVER_HELLO_DONE of 0 bytes
Sep 01 14:39:26 AL iwd[539456]: PEAP: tls_tx_handshake:869 Sending a TLS_CLIENT_KEY_EXCHANGE of 258 bytes
Sep 01 14:39:26 AL iwd[539456]: PEAP: tls_tx_handshake:869 Sending a TLS_FINISHED of 12 bytes
Sep 01 14:39:26 AL iwd[539456]: PEAP: tls_handle_server_hello_done:2110 New state TLS_HANDSHAKE_WAIT_CHANGE_CIPHER_SPEC
Sep 01 14:39:26 AL iwd[539456]: EAP completed with eapFail
Sep 01 14:39:26 AL iwd[539456]: PEAP: tls_reset_handshake:204 New state TLS_HANDSHAKE_WAIT_START
Sep 01 14:39:26 AL iwd[539456]: 4-Way handshake failed for ifindex: 54, reason: 23
Sep 01 14:39:26 AL kernel: wlan0: deauthenticating from XX:XX:XX:XX:XX:XX by local choice (Reason: 23=IEEE8021X_FAILED)
Sep 01 14:39:27 AL kernel: wlan0: authenticate with XX:XX:XX:XX:XX:XX
Sep 01 14:39:27 AL kernel: wlan0: send auth to XX:XX:XX:XX:XX:XX (try 1/3)
Sep 01 14:39:27 AL kernel: wlan0: authenticated
Sep 01 14:39:27 AL kernel: wlan0: associate with XX:XX:XX:XX:XX:XX (try 1/3)
Sep 01 14:39:27 AL iwd[539456]: EAP completed with eapFail
Sep 01 14:39:27 AL iwd[539456]: 4-Way handshake failed for ifindex: 54, reason: 23
Sep 01 14:39:27 AL kernel: wlan0: RX AssocResp from XX:XX:XX:XX:XX:XX (capab=0x8011 status=0 aid=251)
Sep 01 14:39:27 AL kernel: wlan0: associated
Sep 01 14:39:27 AL kernel: wlan0: deauthenticating from XX:XX:XX:XX:XX:XX by local choice (Reason: 23=IEEE8021X_FAILED)

`

1 points

You should message them on IRC (#iwd at freenode.net).

I had the same problem a few days ago with PEAP-MSCHAPv2 authentucation (which hasn't been fixed)

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.