Failure when using OpenWrt as client wireless and Authenticate with freeradius

I want to connect my openwrt device to an access point using wpa2
my openwrt device authenticate with FreeRADIUS

but I got the following error in the radius server:

Mon Jan 30 10:35:40 2023 : ERROR: (2) eap_peap: ERROR: (TLS) Alert write:fatal:protocol version
Mon Jan 30 10:35:40 2023 : ERROR: (2) eap_peap: ERROR: (TLS) Server : Error in error
Mon Jan 30 10:35:40 2023 : Auth: (2) Login incorrect (eap_peap: (TLS) Alert write:fatal:protocol version): [bob/<via Auth-Type = eap>] (from client dockernet port 1 cli 40-A3-6B-C7-F4-11)

the wireless config is:

config wifi-iface 'ifacegw'
	option device 'radio0'
	option network 'wwan'
	option mode 'sta'
	option encryption 'wpa2'
	option disabled '0'
	option ssid 'WPA-AP-test'
	option identity 'bob'
	option password 'test'
	option eap_type 'peap'
	option auth 'MSCHAPV2'

Also tried another config and I got another error in FreeRADIUS:

Fri Jan 27 17:28:07 2023 : Auth: (143) Login incorrect: [bob/<via Auth-Type = eap>] (from client dockernet port 1 cli 40-A3-6B-C7-F4-11)

the wireless config in his case is:

config wifi-iface 'ifacegw'
	option device 'radio0'
	option network 'wwan'
	option mode 'sta'
	option encryption 'wpa2'
	option disabled '0'
	option ssid 'WPA-AP-test'
	option identity 'bob'
	option password 'test'
	option eap_type 'peap'
	option auth 'PAP'

I tried to connect with my smartphone to the same wpa AP and the same freeradius and the connection success
What I am missing ?

I found the solution for this issue.
In fact we need to use openssl for TLS provider instead of using internal.
in make menu config -> Network:

Screen Shot 2023-01-31 at 9.04.14 AM

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.