Repository navigation
Conversation
2ff8658 to
c4e29af
Compare
When SAE-only or SAE mixed mode is set and wpa_psk_file is enabled; SAE will not work without manually adding the sae_passphrase items to the hostapd config as well. This automatically handles the conversion of the wpa_psk_file file to the sae_passphrase analogues. Only the pk parameter to sae_password doesn't have an analogue in wpa_psk_file however this shouldn't be needed for most users. Limitations: - WPA PSK file supports duplicate (mac,id) pairs but SAE does not. This is most problematic for a common use case where someone wants to have two wildcard entries that point to different VLANs (like a LAN and IoT). Signed-off-by: Rany Hany <[email protected]>
c4e29af to
26575d4
Compare
|
I came upon the same issue but took a different approach to resolve it, actually leading to no know limitations. |
|
@roshii I suggest you wait until the sae_password_file parameter is added to hostapd that is available in OpenWRT. See https://w1.fi/cgit/hostap/commit/hostapd/hostapd.conf?id=e748e50c629f3e8d3c1c99843ef5439e568ed3ec This is just so that the user doesn't have to set both WPA2 and SAE parameters. |
The limitation is fundamentally because SAE is different from WPA2. In SAE, if you set the same macaddr and keyId pair to some other config entry; it will override it. With WPA2, you can do something like: and both password1 and password2 will be accepted. With SAE, this does not work and you will need to set a different keyid for password2; which is not supported for any mainstream OS (Android, iOS, Windows, etc.) |
It definitely make sense. I will therefore adapt my PR to make it a definitive solution for once sae_password_file parameter is added to hostapd that is available in OpenWRT. |
That doesn't work. It behaves the same, in effect the default parameter when mac is not specified is |
Works fine for me with the implementation from my PR. I can connect WPA3 clients and assign VLAN IDs without specifying any mac address |
Are you sure? The issue at hand is that you can't set the same SAE password for the same macaddr, keyid pair. So for example, if you had: HostAPd will override Edit: even if macaddr,keyid is not explicitly set, they do have a value. |
You are right, unfortunately... I could connect with the different password I had set only because the client I used kept the same mac address. Randomizing mac on the client causes authentication to fail. |
Further testing demonstrate the following.
@rany2 do you think the could be related to OpenWrt? I am suspecting hostap and would like to hear your opinion before raising the issue. |
This is expected per the hostapd documentation.
I really doubt this, how are you testing this? |
(edited) |
|
I suggest you make a new issue about this, I can't reproduce it myself and don't see why it should be discussed in this PR. |
When SAE-only or SAE mixed mode is set and wpa_psk_file is enabled; SAE will not work without manually adding the sae_passphrase items to the hostapd config as well. This automatically handles the conversion of the wpa_psk_file file to the sae_passphrase analogues.
Only the pk parameter to sae_password doesn't have an analogue in wpa_psk_file however this shouldn't be needed for most users.
Limitations: