From 667d8ef0f87ad7a4c460bc841a79d7066381c353 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Sun, 25 Aug 2024 00:00:25 +0200 Subject: [PATCH] =?UTF-8?q?Set=20PersistentKeepAlive=20for=20the=20PiRogue?= =?UTF-8?q?-side=20WireGuard=20peer=20(=E2=80=9Cserver=E2=80=9D)=20as=20we?= =?UTF-8?q?ll.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Link: https://github.com/PiRogueToolSuite/pirogue-admin/issues/13 --- pirogue-admin/debian/changelog | 7 +++++++ pirogue-admin/pirogue_admin/system_config/wireguard.py | 1 + 2 files changed, 8 insertions(+) diff --git a/pirogue-admin/debian/changelog b/pirogue-admin/debian/changelog index 6159cf9..ce5adfd 100644 --- a/pirogue-admin/debian/changelog +++ b/pirogue-admin/debian/changelog @@ -1,3 +1,10 @@ +pirogue-admin (1.2.3) UNRELEASED; urgency=medium + + * Set PersistentKeepAlive for the PiRogue-side WireGuard peer (“server”) + as well (https://github.com/PiRogueToolSuite/pirogue-admin/issues/13). + + -- Cyril Brulebois Sat, 24 Aug 2024 23:58:49 +0200 + pirogue-admin (1.2.2) bookworm; urgency=medium * Bridge the gap between both CLI tools: diff --git a/pirogue-admin/pirogue_admin/system_config/wireguard.py b/pirogue-admin/pirogue_admin/system_config/wireguard.py index bbe1b8b..eb40eba 100644 --- a/pirogue-admin/pirogue_admin/system_config/wireguard.py +++ b/pirogue-admin/pirogue_admin/system_config/wireguard.py @@ -301,6 +301,7 @@ def deploy_config(self): lines.append(f'PublicKey = {peer.public_key}') # IPv4/IPv6: /32 lines.append(f'AllowedIPs = {peer.get_ipv4_address(self.config.isolated_network)}/32') + lines.append(f'PersistentKeepAlive = {DEFAULT_WG_PERSISTENT_KEEP_ALIVE}') # Atomic write: with wg_conf.with_suffix('.new') as new_wg_conf: