From 7dca6b5fb42d4e84c318985dc3d434398bff0c5b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 10 Oct 2021 13:28:13 +0200 Subject: yggdrasil-wg: ... --- modules/yggdrasil-wg/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/yggdrasil-wg/default.nix b/modules/yggdrasil-wg/default.nix index d81081b2..34c1f1e5 100644 --- a/modules/yggdrasil-wg/default.nix +++ b/modules/yggdrasil-wg/default.nix @@ -84,6 +84,7 @@ in { }; systemd.services = listToAttrs (filter ({ value, ...}: value != null) (imap0 (ix: opts@{to, from, ...}: let other = if from == hostName then to else from; in nameValuePair "yggdrasil-udp2raw@${other}" (if opts ? "endpointHost" then { + path = with pkgs; [iptables]; serviceConfig = { ExecStart = "${pkgs.udp2raw}/bin/udp2raw ${if from == hostName then "-c -l 127.0.0.1:${toString (udp2rawPort + ix)} -r ${opts.endpointHost}:${toString (udp2rawPort + ix)}" else "-s -l 0.0.0.0:${toString (udp2rawPort + ix)} -r 127.0.0.1:${toString listenPort}"} -k tmpkey --auth-mode hmac_sha1 --raw-mode faketcp -a"; }; -- cgit v1.2.3