about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2022-05-09T15·04-0700
committerclbot <clbot@tvl.fyi>2022-05-09T17·45+0000
commit3e411cd81ae406280582c13e9d1dfa3dacf7d0cf (patch)
treef87a9a80dacb9637d458e0a45eded04cdc4d1b86 /users
parentd41ac7be6017250eeabfb92f38d5a104e2a8909f (diff)
feat(wpcarro/ava): Support IP-forwarding r/4025
This allows me to use my device as a router (or in Tailscale terms: as an "exit
node").

Change-Id: I994e6c104c246364118155e934b11969a4d7066e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5555
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'users')
-rw-r--r--users/wpcarro/nixos/ava/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/users/wpcarro/nixos/ava/default.nix b/users/wpcarro/nixos/ava/default.nix
index 9fb2414dbbf5..db4fee17aa3f 100644
--- a/users/wpcarro/nixos/ava/default.nix
+++ b/users/wpcarro/nixos/ava/default.nix
@@ -23,6 +23,10 @@ in
   boot.loader.systemd-boot.enable = true;
   boot.loader.efi.canTouchEfiVariables = true;
 
+  # Support IP forwarding to use this device as a Tailscale exit node.
+  boot.kernel.sysctl."net.ipv4.ip_forward" = true;
+  boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = true;
+
   time.timeZone = "America/Los_Angeles";
 
   networking = {