Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPA3 Enterprise 192-bit (WPA-EAP-SUITE-B-192) does not work #15347

Open
1 task done
ncleis opened this issue Apr 30, 2024 · 10 comments
Open
1 task done

WPA3 Enterprise 192-bit (WPA-EAP-SUITE-B-192) does not work #15347

ncleis opened this issue Apr 30, 2024 · 10 comments
Labels
bug issue report with a confirmed bug Official Image release/23.05 pull request/issue targeted (also) for OpenWrt 23.05 release Supported Device target/mediatek pull request/issue for mediatek target

Comments

@ncleis
Copy link

ncleis commented Apr 30, 2024

Describe the bug

With the hostapd-openssl package installed, WPA3 Enterprise 192-bit (WPA-EAP-SUITE-B-192) does not work

Although it was fixed eap192 in hostapd.sh file in previous issues, but when I set encryption option 'eap192' - the system does not understand this option and the network becomes unencrypted

OpenWrt version

r23809-234f1a2efa

OpenWrt release

23.05.3

OpenWrt target/subtarget

mediatek/filogic

Device

MERCUSYS MR90X v1

Image kind

Official downloaded image

Steps to reproduce

Go to /etc/config/wireless and set encryption option 'eap192'

Actual behaviour

1
The encryption option does not work

Expected behaviour

The option will work

Additional info

For example, we took another non-openwrt router from keenetic, on which this mode works as it should. On openwrt instead of option encryption 'eap192', which leads to disabling encryption, option encryption 'wpa3+gcmp256' was selected, which still does not give the expected result
photo_2024-04-30_23-27-20

Diffconfig

No response

Terms

  • I am reporting an issue for OpenWrt, not an unsupported fork.
@ncleis ncleis added bug issue report with a confirmed bug bug-report to-triage labels Apr 30, 2024
@brada4
Copy link

brada4 commented Apr 30, 2024

Can you extract the encryptions from /var/run/hostapd*conf?

@ncleis
Copy link
Author

ncleis commented May 1, 2024

Can you extract the encryptions from /var/run/hostapd*conf?

sae_require_mfp=1
sae_pwe=2
ieee8021x=1
auth_algs=1
wpa=2
wpa_pairwise=CCMP
ieee80211w=2
group_mgmt_cipher=AES-128-CMAC

@ncleis
Copy link
Author

ncleis commented May 1, 2024

but if you change those parameters to:

wpa_pairwise=GCMP-256
wpa_key_mgmt=WPA-EAP-SUITE-B-192
group_mgmt_cipher=BIP-GMAC-256
изображение

and after that make wifi reload, then in the webinterface will be processed wpa3 everything seems to be correct, but if you look with the phone, everything is the same as in the topic header

@github-actions github-actions bot added release/23.05 pull request/issue targeted (also) for OpenWrt 23.05 release target/mediatek pull request/issue for mediatek target Official Image Supported Device and removed to-triage bug-report labels May 1, 2024
@csharper2005
Copy link
Contributor

I can confirm that RSN-EAP_SUITE_B doesn't work on 23.05.3.

And it works on 22.03.6.
image
image

@rany2
Copy link
Contributor

rany2 commented May 1, 2024

I think maybe 472312f should be backported?

Edit: Nevermind, that's not it; it's already backported in 23.05.3 and doesn't seem to cause this issue in the first place. Sorry about that prior comment.

@csharper2005
Copy link
Contributor

@csharper2005
Copy link
Contributor

wireless:

config wifi-iface 'wifinet1'
	option device 'radio0'
	option mode 'ap'
	option ssid 'eap'
	option encryption 'wpa3'
	option auth_server '127.0.0.1'
	option auth_secret 'secret'

hostapd.conf 22.03.6 (correct):

wpa_pairwise=GCMP-256
wpa_key_mgmt=WPA-EAP-SUITE-B-192
group_mgmt_cipher=BIP-GMAC-256

hostapd.conf 23.05.3 (wrong):

wpa_pairwise=CCMP
wpa_key_mgmt=WPA-EAP-SHA256
group_mgmt_cipher=AES-128-CMAC

@Ansuel
Copy link
Member

Ansuel commented May 5, 2024

@csharper2005 maybe there is a logic problem in the wifi-scripts migration? hostapd.conf data comes from 2 script hostapd.sh and mac80211.sh

Should be easy to notice a logic error in those scripts.

@ncleis
Copy link
Author

ncleis commented May 5, 2024

@csharper2005 maybe there is a logic problem in the wifi-scripts migration? hostapd.conf data comes from 2 script hostapd.sh and mac80211.sh

Should be easy to notice a logic error in those scripts.

It turned out that there is an option "wpa3-192", which is not in the official openwrt documents. This option is located in /etc/config/wireless. And you can only set it through a configuration file; there is no such option in luci. As a result, this option enables the desired encryption mode

@csharper2005
Copy link
Contributor

@Ansuel as it turned out, since 8c03dc9 was merged we have a new encryption wpa3-192 for 192 bit support. It isn't documented on wiki and still not supported in Luci.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue report with a confirmed bug Official Image release/23.05 pull request/issue targeted (also) for OpenWrt 23.05 release Supported Device target/mediatek pull request/issue for mediatek target
Projects
None yet
Development

No branches or pull requests

5 participants