Add freeradius
This commit is contained in:
parent
d2f277b138
commit
e2fcc7b059
4 changed files with 33 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
./asterisk.nix
|
||||
./dnsmasq.nix
|
||||
./dyndns.nix
|
||||
./freeradius.nix
|
||||
./labsync
|
||||
./unifi-controller.nix
|
||||
];
|
||||
|
|
|
|||
17
machines/raven/services/freeradius.nix
Normal file
17
machines/raven/services/freeradius.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# service for unifi wifi
|
||||
# provides anonymous access via WPA2 enterprise (PEAP)
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.freeradius = {
|
||||
enable = true;
|
||||
configDir = "${pkgs.fablab.freeradius-anon-access}/raddb";
|
||||
debug = true;
|
||||
};
|
||||
users.users.radius.group = "radius";
|
||||
users.groups.radius = { };
|
||||
networking.firewall.allowedUDPPorts = [
|
||||
1812
|
||||
1813
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue