tn3399_openwrt/package
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
..
base-files failsafe: run on all consoles listed in /proc/cmdline 2022-06-19 12:40:30 +02:00
boot uboot-mediatek: unbreak build with binman 2022-07-13 11:38:57 +01:00
devel strace: add nls.mk 2022-07-15 07:07:59 +02:00
firmware cypress-nvram: support BCM4339 on TechNexion PICO-PI-IMX7D 2022-07-11 14:18:40 +02:00
kernel mac80211: fix AQL issue with multicast traffic 2022-07-13 10:35:39 +02:00
libs libtool: update to 2.4.7 2022-07-10 19:07:47 +02:00
network hostapd: add ppsk option (private psk) 2022-07-15 08:20:36 +02:00
system opkg: update to 2022-02-24 2022-06-27 00:57:15 +02:00
utils f2fs-tools: import patch to fix compilation 2022-07-04 20:24:06 +02:00
Makefile build: fix opkg install step for large package selection 2021-05-12 11:13:53 +02:00