I want to set auth_server
and auth_secret
in /etc/config/wireless
BUT without encryption 'wpa2'
.
But when I do not use encryption 'wpa2'
then auth_server
and auth_secret
are not written to hostapd-phy0.conf
. If I set auth_server_addr
and auth_server_shared_secret
afterwards in hostapd.conf
and reload hostapd
I get the desired behavior:
Edit: macaddr_acl=2
is needed too. ("use external RADIUS server")
- The station authenticates with PSK on the AP
- The AP sends an auth(?) request to the radius server
- Radius does a lookup on
"f8adcb20793X" Cleartext-Password := "f8adcb20793X"
Tunnel-Type = "VLAN",
Tunnel-Medium-Type = "IEEE-802",
Tunnel-Private-Group-Id = 66
DEFAULT Cleartext-Password := "%{User-Name}"
Tunnel-Type = "VLAN",
Tunnel-Medium-Type = "IEEE-802",
Tunnel-Private-Group-Id = 67
- The station is assigned to the correct VLAN.
My test is with an Android Phone, one time I use the device mac address, and the other time I let Android choose a random one.
My preferred way would be a patch on the UCI wrapper which writes the hostapd config. In the meantime I probably will need to use a hotplug script to attach the needed two lines of config to hostapd.conf
.
To state a specific question: I do not understand where in /lib
exactly /etc/config/wireless
is parsed, and hostapd.conf
is build, and how to add the config options?
And yes, for now I do not want to do "proper" WPA2 with self-sign-cert-dance-and-clapping. This is not about anything secure, but more on convenience. And I would want to avoid to create a bunch of SSIDs and make airtime even worst.