1
0
Fork 0
nixos-config/nixos/roles/vpn.nix
2023-02-28 23:17:32 +01:00

13 lines
352 B
Nix

{config, ...}: {
services.tailscale.enable = true;
networking = {
firewall = {
extraInputRules = ''
meta iifname m0wire accept comment "wireguard vpn"
meta iifname tailscale0 accept comment "headscale vpn"
'';
checkReversePath = "loose";
allowedUDPPorts = [config.services.tailscale.port];
};
};
}