Updated vpn

This commit is contained in:
rasmus-kirk
2024-03-12 09:15:12 +01:00
parent bca4dc5590
commit 31ed200f7e
5 changed files with 133 additions and 59 deletions
+4 -1
View File
@@ -244,7 +244,10 @@ in with lib; {
# Port mappings
# TODO: openports if expose.vpn
vpnnamespaces.wg = mkIf cfg.vpn.enable {
portMappings = [{ from = defaultPort; to = defaultPort; }];
portMappings = [{ From = defaultPort; To = defaultPort; }];
openVPNPorts = optionalString cfg.expose.vpn.enable [
{ port = cfg.expose.vpn.port; protocol = "tcp"; }
];
};
};
}