Added beta feature : tailscale

This commit is contained in:
Julien Malka 2022-04-21 19:33:23 +02:00
parent 12c6446aaf
commit 2d7a488542
Signed by: Luj
GPG key ID: 6FC74C847011FD83
2 changed files with 5 additions and 1 deletions

View file

@ -65,6 +65,7 @@ in
proxyPass = "http://localhost:${toString port}"; proxyPass = "http://localhost:${toString port}";
extraConfig = '' extraConfig = ''
allow 10.100.0.0/24; allow 10.100.0.0/24;
allow 100.10.10.0/8;
deny all; deny all;
''; '';
}; };

View file

@ -50,6 +50,9 @@
}; };
services.tailscale.enable = true;
environment.systemPackages = with pkgs; [ tailscale ];
nix.maxJobs = lib.mkDefault 4; nix.maxJobs = lib.mkDefault 4;
boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
@ -78,7 +81,7 @@
networking.firewall = { networking.firewall = {
allowedUDPPorts = [ 51820 ]; allowedUDPPorts = [ 51820 41641 ];
}; };
networking.nat.enable = true; networking.nat.enable = true;
networking.nat.externalInterface = "ens20"; networking.nat.externalInterface = "ens20";