From 7cd64e546574288b83bee752b1278f63110d6f0d Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Mon, 7 Aug 2023 15:35:21 -0700 Subject: [PATCH] added ip forwarding rules for tailscale exit nodes --- hosts/Alaska/modules/headscale.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hosts/Alaska/modules/headscale.nix b/hosts/Alaska/modules/headscale.nix index e55042a..4debedf 100644 --- a/hosts/Alaska/modules/headscale.nix +++ b/hosts/Alaska/modules/headscale.nix @@ -4,6 +4,8 @@ let baseDomain = "nickiel.net"; domain = "headscale.${baseDomain}"; in { + boot.kernel.sysctl."net.ipv4.ip_forward" = 1; + boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1; # https://carjorvaz.com/posts/setting-up-headscale-on-nixos/ services.headscale = { enable = true;