openwrt/package/network/services
Manuel Giganto d12eb103e8
hostapd: add ppsk option (private psk)
This PR allows a user to enable a private psk, where each station
may have it's own psk or use a common psk if it is not defined.
The private psk is defined using the sta's mac and a radius server
is required.

ppsk option should be enabled in the wireless configuration along with
radius server details. When using PPSK, the key is ignored, it will be
retrieved from radius server. SAE is not yet supported (private sae) in
hostapd.

Wireless example configuration:
	option encryption 'psk2+ccmp'
	option ppsk '1'
	option auth_server '127.0.0.1'
	option auth_secret 'radiusServerPassword'

If you want to use dynamic VLAN on PPSK also include:
	option dynamic_vlan '2'
	option vlan_tagged_interface 'eth0'
	option vlan_bridge 'br-vlan'
	option vlan_naming '0'

It works enabling mac address verification on radius server and
requiring the tunnel-password (the private psk) from radius server.

In the radius server we need to configure the users. In case of
freeradius: /etc/freeradius3/mods-config/files/authorize
The user and Cleartext-Password should be the mac lower case using the
format "aabbccddeeff"

<sta mac> Cleartext-Password := "<sta mac>"
	Tunnel-Password = <Private Password>

Example of a user configured in radius and using dynamic VLAN5:

8cb84a000000 Cleartext-Password := "8cb84a000000"
	Tunnel-Type = VLAN,
	Tunnel-Medium-Type = IEEE-802,
	Tunnel-Private-Group-ID = 5,
	Tunnel-Password = MyPrivPw

If we want to have a default or shared psk, used when the mac is not
found in the list, we need to add the following at the end of the radius
authorize file:

DEFAULT Auth-Type := Accept
	Tunnel-Password = SharedPw

And if using VLANs, for example VLAN6 for default users:
DEFAULT Auth-Type := Accept
	Tunnel-Type = VLAN,
	Tunnel-Medium-Type = IEEE-802,
	Tunnel-Private-Group-ID = 6,
	Tunnel-Password = SharedPw

Signed-off-by: Manuel Giganto <mgigantoregistros@gmail.com>
2022-07-15 08:20:36 +02:00
..
bridger bridger: add bridge forwarding accelerator 2022-04-06 14:13:26 +02:00
dnsmasq dnsmasq: fix jail_mount for serversfile 2022-05-02 18:57:49 +01:00
dropbear dropbear: cherry-pick upstream commit 544f28a0 2022-06-27 00:57:15 +02:00
ead
hostapd hostapd: add ppsk option (private psk) 2022-07-15 08:20:36 +02:00
ipset-dns
lldpd lldpd: update to 1.0.14 2022-07-10 19:07:47 +02:00
odhcpd odhcpd: update to git HEAD 2022-03-22 22:03:37 +01:00
omcproxy omcproxy: bump to git HEAD 2021-11-04 15:04:45 +02:00
ppp
relayd
uhttpd uhttpd: update to latest Git HEAD 2022-06-01 14:41:46 +02:00
umdns umdns: add missing syscall to seccomp filter 2021-10-27 19:25:59 +01:00
ustp ustp: update to the latest version 2021-09-21 19:43:20 +02:00