From c7c4b0580073017a31f19491399fb621dbeb6176 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 16 Nov 2020 21:36:10 +0100 Subject: [PATCH] ma wireguard/server: add workaround for failing tunnel behind nat --- 2configs/wireguard/server.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/2configs/wireguard/server.nix b/2configs/wireguard/server.nix index ae10f34..1b81cf5 100644 --- a/2configs/wireguard/server.nix +++ b/2configs/wireguard/server.nix @@ -54,4 +54,10 @@ in { # wireguard server } ]; }; + # TODO: this issue is related to the router which connects to the host but is + # unable to re-connect once restarted + systemd.services.wireguard-wg0.serviceConfig = { + Restart = "always"; + RuntimeMaxSec = "12h"; + }; }