Tailscale: Difference between revisions

Jad (talk | contribs)
I described how Tailscale's recommendations on optimizing UDP throughput translate into NixOS.
Tboston (talk | contribs)
fix tiny errors and spacing
Line 73: Line 73:
...
...
services = {
services = {
networkd-dispatcher = f
  networkd-dispatcher = {
  enable = true;
    enable = true;
  rules."50-tailscale" = {
    rules."50-tailscale" = {
  onState = ["routable"];
      onState = ["routable"];
  script = ''
      script = ''
    #!${pkgs.runtimeShel1}  
        #!${pkgs.runtimeShel1}  
    ethtool -K eth0 rx-udp-gro-forwarding on rx-gro-list off
        ethtool -K eth0 rx-udp-gro-forwarding on rx-gro-list off
    exit 0
        exit 0
  '';
      '';
    };
   };
   };
};
};
};
</syntaxhighlight>
</syntaxhighlight>