From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: aleksandr.v.piskunov@gmail.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 02df9710 for ; Sat, 16 Jun 2018 14:46:26 +0000 (UTC) Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com [IPv6:2a00:1450:4010:c07::231]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id d2c98645 for ; Sat, 16 Jun 2018 14:46:26 +0000 (UTC) Received: by mail-lf0-x231.google.com with SMTP id y20-v6so18670231lfy.0 for ; Sat, 16 Jun 2018 07:50:42 -0700 (PDT) Return-Path: Received: from d1781 ([212.3.194.24]) by smtp.gmail.com with ESMTPSA id q73-v6sm1907472lje.53.2018.06.16.07.50.39 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 16 Jun 2018 07:50:40 -0700 (PDT) Date: Sat, 16 Jun 2018 17:50:38 +0300 From: "Aleksandr V. Piskunov" To: WireGuard mailing list Subject: Re: OpenWRT dynamic IP watchdog Message-ID: <20180616144440.GA6799@d1781> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Yes, I've tried 135 first, but during the real usage there were quite a few false alarm situations with watchdog reconnecting at 136..~140 seconds. So.. changed it to 150 secs, which seems to work OK for my conditions. I can try to send a git patch to contrib/examples/reresolve-dns, if rest is OK. Regards, Aleksandr On Sat, Jun 16, 2018 at 03:00:45PM +0200, Jason A. Donenfeld wrote: > Hi Aleksandr, > > Nice script. One question: > > > [ ${idle_seconds} -lt 150 ] && return 0; > > Is there a reason why you went with 150? My original reresolve-dns.sh > went with 135 (REKEY_AFTER_TIME + KEEPALIVE_TIMEOUT + REKEY_TIMEOUT). > Did you find 150 matched network conditions better? > > Regards, > Jason