use openwrt-sdk, recompile wpad-openssl or hostapd-openssl,
Do not use the version of wolfssl. Dealing with certificates containing non English characters, there are bugs that can cause hostapd authentication to fail or exit abnormally.
/etc/radius/client, After modifying this file, service radius restart is required to take effect. (Reload not working).
192.168.0.0/16 key12345
# 0.0.0.0/0 key12345
/etc/radio/user (JSON format), takes effect immediately after modification, no need to restart or reload.
{
"phase1": {
"users": { //optional, if not needed, delete "users" section
"gst3": { //username
//It seems invalid to specify vlan-id here
"methods":["TLS"]
}
},
"wildcard": [
{
"name": "*",
"methods": [ "PEAP","TLS" ]
}
]
},
"phase2": {
"users": {
"gst7": { //username1
"methods":["MSCHAPV2"],
//"radius":["test"], //unknown
//"vlan-id": 20, //Optional, effective, requires coordination with other network configurations
//"max-rate-up":1001, //Optional, effective, I don't know how to use it
//"max-rate-down":1002, //Optional, effective, I don't know how to use it
"password": "def123"
//Or use "hash" and "salt" as passwords, both containing hex strings (untested, not sure how to use)
},
"gst9": { //username2
... //"methods","password",configuration
}
}
}
}
Modify option disabled '0' in file /etc/config/radius to enable the service,
Or use uci set radius.@radius[0].disabled='0'; uci commit radius; to enable the service.
service radius restart starts the service. Or restart the entire OpenWRT system.
Use eapol-test command, PEAP authentication test OK.
Use eapol-test command, TLS authentication test OK.
The RADIUS service is used for EAP authentication for WiFi.
This is kind of a complete instructions to do it? If yes,why do you not provide some details? On a first glance the instructions look good. Thanks for your effort but please add a little bit of context
I was using Freeradius3 previously.
Consider I just need simple enterprise wifi authentication,
it would be good just use hostapd/wpad without install a little bulky freeradius.
What is the difference between WPAD and HostAPD in this case ?
Actually after I have installed wpad or hostapd I found radius service also added.
So no need wpad-openssl ?
Is there any documentation about the config files ?
For EAP-PEAP, MS-CHAPv2, is there any additional packages is needed ?
openwrt-23.05 and after, has hostapd-radius command & the RADIUS service.
hostapd, hostapd-openssl, hostapd-mbedtls, hostapd-wolfssl, wpad, wpad-openssl, wpad-mbedtls, wpad-wolfssl
contains a full featured IEEE 802.1x/WPA/EAP/RADIUS Authenticator.
All include hostapd-radius command & radius service.
Install any one of the PKG, You may run the radius service.
I have tested the hostapd,hostapd-openssl,wpad,wpad-openssl, the RADIUS service works OK.
I tested PEAP and TLS authentication.
wpad includes wpa_supplicant.
hostapd is a cut-down build of wpad which does not support client modes.
If you have no need to act as a station, hostapd is fine.
For RADIUS service, No difference.
Config file /etc/radius/users, I couldn't find the document either, it's all my guess and testing.