openwrt-6.x/package/network/services
Bernd Naumann 98d91e4d5e hostapd: Radius based VLANs on AP with PSK
This patch allows the user to set `auth_server` and related settings on
non WPA2 Enterprise AP modes in `/etc/config/wireless`, too, so the
Radius Attributes for Dynamic VLAN Assignment can be fetched from Radius.

Without this patch, `auth_server` and other needed options are only
written to `hostapd-phy<n>.conf` when `option encryption wpa2` is set.

`hostapd` however supports "Station MAC address -based authentication" for
non WPA Enterprise Modes, too.

A classic approch is to use `accept_mac_file` which contains MAC addr
and VLAN-ID pairs. But, using `accept_mac_file` does not support
VLAN assignment for unknown stations.

This is a sample `freeradius3` config, where a known station
("7e:a6:a7:2a:93:d2") is assigned to VLAN `65` and unknown stations are
assigned to VLAN `67`.

```
"7ea6a72a93d2" Cleartext-Password := "7ea6a72a93d2"
        Tunnel-Type = "VLAN",
        Tunnel-Medium-Type = "IEEE-802",
        Tunnel-Private-Group-Id = 65

DEFAULT Cleartext-Password := "%{User-Name}"
        Tunnel-Type = "VLAN",
        Tunnel-Medium-Type = "IEEE-802",
        Tunnel-Private-Group-Id = 67
```

Other option is to configure known stations via `accept_mac_file` and
using only Radius for unknown stations.

I tested this patch only with `wpa_key_mgmt=WPA-PSK`, and assumed that
it should work with other Encryption/Access Mode, too.

Signed-off-by: Bernd Naumann <bernd.naumann@kr217.de>
2022-06-08 16:04:04 +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: bump to 2022.82 2022-04-09 19:31:31 +02:00
ead ead: fix resource leak in tinysrp 2020-01-05 19:36:46 +01:00
hostapd hostapd: Radius based VLANs on AP with PSK 2022-06-08 16:04:04 +02:00
ipset-dns base-files: move /tmp/resolv.conf.auto to /tmp/resolv.conf.d/ 2020-01-07 15:36:03 +02:00
lldpd lldpd: add reload trigger 2021-11-14 21:26:41 +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 ppp: compile fix: unset FILTER variable in Makefile 2021-03-19 00:25:58 +01:00
relayd relayd: bump to version 2020-04-25 2020-04-26 13:00:36 +01:00
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