From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: neumann@cgws.de Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id ab8e4450 for ; Mon, 21 May 2018 11:51:40 +0000 (UTC) Received: from mail.dabax.net (mail.dabax.net [88.99.12.75]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 290f02c2 for ; Mon, 21 May 2018 11:51:39 +0000 (UTC) Subject: Re: WG: Need for HW-clock independent timestamps To: wireguard@lists.zx2c4.com References: <403fa228-40e5-cbe4-4135-15b71cf76553@cgws.de> <20180521112235.v2ksniasmd36kern@ghostArch.localdomain> From: Axel Neumann Message-ID: <97874cad-ac60-5a88-a384-f036f9688668@cgws.de> Date: Mon, 21 May 2018 13:52:34 +0200 MIME-Version: 1.0 In-Reply-To: <20180521112235.v2ksniasmd36kern@ghostArch.localdomain> Content-Type: text/plain; charset=utf-8 Reply-To: neumann@cgws.de List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 21.05.2018 13:22, Reto Brunner wrote: > On Mon, May 21, 2018 at 12:07:38PM +0200, Axel Neumann wrote: >> entirely superfluous. As discussed earlier [3] it can be achieved with >> essentially one file-system write operation each boot. > > You might as well achieve the same with the timestamp. > Just add a pre-shutdown hook, which touches a file. yes, can be an option, but would only work in "normal" soft-shut-down cases, not in case of a hard reset or power cycle. A not-so-uncommon scenario for embedded home-network devices and community-network deployments. Especially when considering the first choice of a normal user (desperately trying to fix its internet-via-WG tunnel connection): Power cycle the device. /axel > Restore the system clock to this upon boot (which may very well be off > but who cares). > > After the wg tunnel is back up, sync with any NTP server you trust and you > are back up and running. > > What is the advantage of doing it with a counter? > I fail to see the benefit. > _______________________________________________ > WireGuard mailing list > WireGuard@lists.zx2c4.com > https://lists.zx2c4.com/mailman/listinfo/wireguard >