Replace tailscale with wireguard
This commit is contained in:
parent
81f59a8148
commit
d0084adcc9
8 changed files with 278 additions and 77 deletions
|
|
@ -1,18 +0,0 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
# Enable Tailscale service for NixOS
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
# Enable MagicDNS for better name resolution on NixOS server
|
||||
useRoutingFeatures = "server";
|
||||
};
|
||||
|
||||
# Allow Tailscale through the firewall if enabled
|
||||
networking.firewall = {
|
||||
# Allow Tailscale UDP port
|
||||
allowedUDPPorts = [ 41641 ];
|
||||
# Allow traffic from Tailscale subnet
|
||||
trustedInterfaces = [ "tailscale0" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue