summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-11-16 21:36:10 +0100
committermakefu <github@syntax-fehler.de>2020-11-16 21:36:10 +0100
commita1ab1cde34c13cc0a1c78eee28835e22cdcc1794 (patch)
treef414bd06e535af7ce3ea14f53d96a60a225d8529
parentb033dfd615db0334684f699731aa0064fcedf6e8 (diff)
ma wireguard/server: add workaround for failing tunnel behind nat
-rw-r--r--makefu/2configs/wireguard/server.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/makefu/2configs/wireguard/server.nix b/makefu/2configs/wireguard/server.nix
index ae10f34a2..1b81cf57f 100644
--- a/makefu/2configs/wireguard/server.nix
+++ b/makefu/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";
+ };
}