tailscale: add exit node functionality to Gutterman
This commit is contained in:
parent
3784ddfda1
commit
1f153cc599
4 changed files with 30 additions and 0 deletions
8
modules/nixos/services/tailscale/exit-node/client.nix
Normal file
8
modules/nixos/services/tailscale/exit-node/client.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.tailscale = {
|
||||
useRoutingFeatures = "client";
|
||||
extraUpFlags = [ "--exit-node-allow-lan-access=true" ];
|
||||
};
|
||||
}
|
||||
20
modules/nixos/services/tailscale/exit-node/server.nix
Normal file
20
modules/nixos/services/tailscale/exit-node/server.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue