From f1482b5c18c8e6364a760c4d57f0ac8b8070f443 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Fri, 4 Apr 2025 15:42:39 +0200 Subject: [PATCH] add tailscale conf to use exit node --- nixos/tailscale.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nixos/tailscale.nix b/nixos/tailscale.nix index 2dd7370..14bf7e8 100644 --- a/nixos/tailscale.nix +++ b/nixos/tailscale.nix @@ -13,5 +13,14 @@ } ]; }]; - services.tailscale = { enable = true; }; + services.tailscale = { + enable = true; + openFirewall = true; + }; + + networking.firewall = { + trustedInterfaces = [ "tailscale0" ]; + # required to connect to Tailscale exit nodes + checkReversePath = "loose"; + }; }