From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id UMmXOm0lbmTtpgAASxT56A (envelope-from ) for ; Wed, 24 May 2023 16:55:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EJGwOm0lbmTDjgAAauVa8A (envelope-from ) for ; Wed, 24 May 2023 16:55:41 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A47D7290FC for ; Wed, 24 May 2023 16:55:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1ptM-0000HG-8p; Wed, 24 May 2023 10:55:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1ptH-0000GD-7p for guix-patches@gnu.org; Wed, 24 May 2023 10:55:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1ptG-0003vi-VU for guix-patches@gnu.org; Wed, 24 May 2023 10:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1ptG-0004L0-RO for guix-patches@gnu.org; Wed, 24 May 2023 10:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63403] [PATCH 1/1] services: wireguard: Implement a dynamic IP monitoring feature. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 24 May 2023 14:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63403 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 63402@debbugs.gnu.org, 63403@debbugs.gnu.org Received: via spool by 63403-submit@debbugs.gnu.org id=B63403.168494004716566 (code B ref 63403); Wed, 24 May 2023 14:55:02 +0000 Received: (at 63403) by debbugs.gnu.org; 24 May 2023 14:54:07 +0000 Received: from localhost ([127.0.0.1]:44358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1psN-0004J5-3T for submit@debbugs.gnu.org; Wed, 24 May 2023 10:54:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1psK-0004IW-4I; Wed, 24 May 2023 10:54:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1psE-0003Vz-T7; Wed, 24 May 2023 10:53:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=xDW0DT4hXyUnZvRkzkjymaaNZqfBs4xwMIrSMIah7GQ=; b=WbnqKC14UxDGV1gZ42Bi GzgJ5K2s4LuWY04ycFNUP8hNAi6w/LMRu3pLVd/pvRuSo7U3hX7T9fE9HmWVVQyEZxjohakrZq0lQ CuuNQRoLXH+7yynACwzHVQ29j5xsu7nEHynvPuRAGyQSzc4VrUrkb4d24rIfbSTjaeO5UTlRiuwtd pQLnPTG7qOmn5wJiPzyJ9iANkuMdBuGsRqyxFQoVpH6XWRqApKHBxZDtTN5Hl45AhQgHfJWu9bjZj y+4e/eyRc5D2UEgaL+eaIEUAIHYhegmSGn9OyDjepoK0pdGKpvAqTJt+X6Rs6VwSINAuchqBEEcVM eT74EkH10y7Q3g==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1psE-0002bL-G6; Wed, 24 May 2023 10:53:58 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87cz2swgpu.fsf_-_@gnu.org> <87fs7ohrif.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 5 Prairial an 231 de la =?UTF-8?Q?R=C3=A9volution, ?= jour du Canard X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 24 May 2023 16:53:56 +0200 In-Reply-To: <87fs7ohrif.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 22 May 2023 19:32:08 -0400") Message-ID: <87pm6pixvf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684940141; a=rsa-sha256; cv=none; b=JIFlPHcuJB5NyUttG5FXkSDhOBis7kk+fFfqJUSULdROUVE1yERgF8HNyeyZ1j7ptxrAsr 15XlCickRKfB6tphyHraOCCeHJA6O7UlbBjFIlldYJTAdh+6NHJkQkhA/zVtCs6+sAXMIP jVIiyPBnUF9Rjp4bMjQl6eXIs+7jrcDS0yeexSjK8hRqhRd12cR3HikM8cnA7o16rGOdGN bIBumBwj7FXl5vyZIfeCeYfwvFEC0pECnaLH9640uUKbfRSf0gJ4zupcq3gTYQG6HxvaN5 2NIkCoG7LU9j5htaxujoIFLDLFk8xqFhhBEFQSu8kILK8BD75XeGdy/P8gcEFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WbnqKC14; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684940141; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=xDW0DT4hXyUnZvRkzkjymaaNZqfBs4xwMIrSMIah7GQ=; b=mqCNhCvo1yrdPawTduP2WC7kx5ZacptYrAhUEKQf2OF5vERgOHb+E5Lp/QRFO2/kyAZC6w nDHEXw24ZWma3tJQB49n7SvKl/wALYiaZypxpqXJTm/fElWBxuvGxOX2CdmRWa4rj8exx2 P73SVfRBZtzIP7GWrLuJd635Jwa+whJIKxQnxwzswN69Z72nNRc+RTo+hK2uUIMHLHiKaj SpDoe08BUzPXD7DaN84N6eXOSKiazmC7bXlKjDfEf0oEnHGj4EtipZXlt/iZkyP6DjJgO3 5m/jCwwYtF9paHC+xzA9KIqWQK+cn3tY80z8b9Qa/7JRm+0E1d+f8tPl35LI3g== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WbnqKC14; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.07 X-Spam-Score: -4.07 X-Migadu-Queue-Id: A47D7290FC X-TUID: Im5UAenoJwnq Maxim Cournoyer skribis: > Yeah, upstream offers a contrib shell script called reresolve-dns.sh > [0], that works a bit differently (it's doesn't actually monitor IPs but > just keep a watch on when was the last successful handshake made). > > [0] https://github.com/WireGuard/wireguard-tools/blob/master/contrib/rer= esolve-dns/reresolve-dns. > >> Would that be a viable option? WDYT? > > I think my Guile script is more precise in terms of what it does and > also produces useful output. If I knew of the shell script existence > when I started I probably wouldn't have bothered re-implementing it in > Scheme, but since it's here, and better, I see no reason to not use it > :-). I don't foresee high maintenance for the stable APIs involved > (resolving host names and setting an endpoint with 'wg set'). I don=E2=80=99t doubt your script is better (first because it=E2=80=99s in = Guile ;-)). I=E2=80=99m concerned about adding non-trivial =E2=80=9Cperipheral=E2=80=9D= code that we=E2=80=99ll all be responsible for going forward (the Jami services pose a similar challenge IMO: I experienced first-hand the maintenance burden recently when investigating system test failures.) So I=E2=80=99m a bit torn. I sympathize with the need to improve those services, but I=E2=80=99m also concerned what will happen if we don=E2=80= =99t have clear criteria to decide what to take and what to reject. WDYT? Ludo=E2=80=99.