mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-26 05:40:52 +01:00
Added beta feature : tailscale
This commit is contained in:
parent
12c6446aaf
commit
2d7a488542
2 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue