tailscale: add exit node functionality to Gutterman

This commit is contained in:
wo2wz 2025-11-21 09:05:58 -05:00
parent 3784ddfda1
commit 1f153cc599
4 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,8 @@
{ config, ... }:
{
services.tailscale = {
useRoutingFeatures = "client";
extraUpFlags = [ "--exit-node-allow-lan-access=true" ];
};
}

View file

@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
{
services.tailscale = {
useRoutingFeatures = "server";
extraUpFlags = [ "--advertise-exit-node" ];
};
# performance improvement
environment.systemPackages = [ pkgs.ethtool ];
services.networkd-dispatcher = {
enable = true;
rules."50-tailscale" = {
onState = [ "routable" ];
script = ''
${lib.getExe pkgs.ethtool} -K eth0 rx-udp-gro-forwarding on rx-gro-list off
'';
};
};
}