fix: hostapd with vlans

This commit is contained in:
Patrick 2025-01-12 00:25:46 +01:00
parent 639f63af9b
commit d69c94bf1f
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F

View file

@ -67,29 +67,29 @@
apIsolate = true; apIsolate = true;
# not supporte by laptop :( # not supporte by laptop :(
# settings.ieee80211w = 0; # settings.ieee80211w = 0;
logLevel = 0;
settings = { settings = {
# vlan_file = "${pkgs.writeText "hostaps.vlans" '' vlan_file = "${pkgs.writeText "hostaps.vlans" ''
# 10 wifi-home br-home 10 wifi-home br-home
# 40 wifi-iot br-iot 40 wifi-iot br-iot
# 50 wifi-guests br-guests 50 wifi-guests br-guests
# ''}"; ''}";
# rsn_preauth_interfaces = "br-home br-iot br-guests"; dynamic_vlan = 1;
bridge = "br-home";
}; };
authentication = { authentication = {
saePasswords = [ saePasswords = [
{ {
passwordFile = config.age.secrets.homeWlan.path; passwordFile = config.age.secrets.homeWlan.path;
# vlanid = 10; vlanid = 10;
}
{
passwordFile = config.age.secrets.iotWlan.path;
vlanid = 40;
}
{
passwordFile = config.age.secrets.guestWlan.path;
vlanid = 50;
} }
# {
# passwordFile = config.age.secrets.iotWlan.path;
# vlanid = 40;
# }
# {
# passwordFile = config.age.secrets.guestWlan.path;
# vlanid = 50;
# }
]; ];
pairwiseCiphers = [ pairwiseCiphers = [
"CCMP" "CCMP"