From 5051b82f2b8e7c9afc347256b099ba2ba8b7c399 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 1 Jan 2025 13:49:32 +0400 Subject: [PATCH] make tailscale exit nodes work --- modules/server/services/headscale.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/server/services/headscale.nix b/modules/server/services/headscale.nix index 478e65fa..29232c89 100644 --- a/modules/server/services/headscale.nix +++ b/modules/server/services/headscale.nix @@ -99,6 +99,11 @@ in { webroot = null; }; + boot.kernel.sysctl = { + "net.ipv4.ip_forward" = 1; + "net.ipv6.conf.all.forwarding" = 1; + }; + systemd.services = { tailscaled.after = [ "headscale.service" ]; }; };