mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 20:59:32 -08:00
added ip forwarding rules for tailscale exit nodes
This commit is contained in:
parent
1c0f757ac5
commit
7cd64e5465
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@ let
|
||||||
baseDomain = "nickiel.net";
|
baseDomain = "nickiel.net";
|
||||||
domain = "headscale.${baseDomain}";
|
domain = "headscale.${baseDomain}";
|
||||||
in {
|
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/
|
# https://carjorvaz.com/posts/setting-up-headscale-on-nixos/
|
||||||
services.headscale = {
|
services.headscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue