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}";
extraConfig = ''
allow 10.100.0.0/24;
allow 100.10.10.0/8;
deny all;
'';
};

View file

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