mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-01 01:30:53 +02: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}";
|
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;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Add table
Reference in a new issue