swann: install Unifi controller
This commit is contained in:
parent
a507a5380d
commit
82c751a6e4
1 changed files with 17 additions and 0 deletions
|
@ -114,6 +114,23 @@ in {
|
||||||
tc filter add dev ens-virginmedia parent ffff: matchall action mirred egress redirect dev ifb-virginmedia
|
tc filter add dev ens-virginmedia parent ffff: matchall action mirred egress redirect dev ifb-virginmedia
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
services.unifi = {
|
||||||
|
enable = true;
|
||||||
|
openPorts = false;
|
||||||
|
unifiPackage = pkgs.unifiBeta;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall = {
|
||||||
|
interfaces.ens-general = {
|
||||||
|
allowedTCPPorts = [
|
||||||
|
8080 6789 # Unifi
|
||||||
|
];
|
||||||
|
allowedUDPPorts = [
|
||||||
|
3478 10001 # Unifi
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [];
|
environment.systemPackages = with pkgs; [];
|
||||||
|
|
||||||
system.stateVersion = "21.03";
|
system.stateVersion = "21.03";
|
||||||
|
|
Loading…
Reference in a new issue