From owner-freebsd-questions@freebsd.org Thu Aug 6 21:38:48 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 733B33AC77A for ; Thu, 6 Aug 2020 21:38:48 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BN21M3Qjgz4ffc for ; Thu, 6 Aug 2020 21:38:47 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-il1-x133.google.com with SMTP id j9so71870ilc.11 for ; Thu, 06 Aug 2020 14:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=la29Vz7mgDFYUMM4MxkIkJoPxuf98O3HbVxVb34iqMk=; b=L5X787FQi/8z19smnQ07n3G5piDHQ+wrw23tEzbwSysvhAWHoeawYIpt6pMRweKxeO 4WddZPiEbUnZTB7kCxlwJLRfNDTDfotpSPdIoasSDHwvNV6m8NFv7lS5Vbx3ARmgQiF6 jNz6OcAsRRWZFxBtM/jQPjAnqpvL0bcdMDsVrZ5SV9zH65nFqGkTul0j1w7+XKtXotTE u9meA1vOk5rWSF6rTOcVBnaydDCKDZpagQeq9Ffkfvat4/S2cYPapCnQXGqOiuQC6Dfj yoJdUCo3FHff/a23hq9ls7WQf7rSIOct2kQULnoJTaDIHg7Hsam1R+UWpsDZ/KdZSzVv VSGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=la29Vz7mgDFYUMM4MxkIkJoPxuf98O3HbVxVb34iqMk=; b=JNqi6KY6KX5RYo5H5IrSG4aoqXqjv5v6xO1zCwQK4li6EDt2csBGNZ118Z1kqgzYDB vUbvNcqG5YVlwouNEaCnjZn/6dyGJKhNu8D7GR3YKjxi+MMrTa2EUDZvHmp9Lkt96OPF anS+16RPIFmqnFPlT2cXUluC4QSgFnAFm037IWbkePiLfohwERExx5E4ZF2UpBv1fot3 zfjCyov068rzNoC5QNKWqMa0LkCPicpgqnq4UGZMevibJbmTTaf+S98E2Omrd7f9T3g9 2MhlToL/2lgl7wRnkPC5ZYr8uC8ZB7pl3/vbvmW8t9dE69g/4/ejJN1bHySSl0VnFRuE XNsQ== X-Gm-Message-State: AOAM532IZsALCk/P1qTq6QeIlOlgsutwnqHW9v4pSbZOgLq2rMasVWEh TVCPKQdOGaSttdJ4DmeQ9vl4uqiqpjeaTQKY0FM= X-Google-Smtp-Source: ABdhPJwPXwclLJqlyAk6Bl91kD3N8IloW9V/FGtYWUl1JnbWwt3KJBe709mdrDvtpKop0SJku/R5HjGlElitD4xsfqc= X-Received: by 2002:a05:6e02:c12:: with SMTP id d18mr973681ile.185.1596749925814; Thu, 06 Aug 2020 14:38:45 -0700 (PDT) MIME-Version: 1.0 References: <89e3f48c-74a1-4198-6b17-7e13a026225b@gmail.com> In-Reply-To: From: Aryeh Friedman Date: Thu, 6 Aug 2020 17:38:34 -0400 Message-ID: Subject: Re: Unroutable packer to specific IP forces process to run To: Don Wilde Cc: FreeBSD Mailing List X-Rspamd-Queue-Id: 4BN21M3Qjgz4ffc X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=L5X787FQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::133 as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-2.15 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.11)[-0.114]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.04)[-1.042]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.995]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::133:from]; HTTP_TO_IP(1.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Aug 2020 21:38:48 -0000 On Thu, Aug 6, 2020 at 5:35 PM Aryeh Friedman wrote: > > > On Thu, Aug 6, 2020 at 5:33 PM Don Wilde wrote: > >> >> On 8/6/20 2:30 PM, Aryeh Friedman wrote: >> > I have VPN that has stability problems (the fault of the ISP and they >> admit >> > it) I have set up one my FreeBSD machine as a router for that specific >> VPN: >> > # on non-gateway machines in /etc/rc.conf >> > static_routes="internalnet2" >> > route_internalnet2="-net 10.31.10.0/24 192.168.11.60" >> > >> > Is there any way to force the gateway machine to run a preset command if >> > 10.31.10.0/24 is unreachable? (i.e. reset the connection) >> What about a simple scripted cron-job ping, Aryeh? Sometimes the >> simplest solutions are the best. >> > > The amount time the connection stays up is unpredictable and due to the > use case it needs to be repaired immediately if down (not even a 5 min > delay for cron to do its normal wake up and look for a job is acceptable) > > Should add the use case is near real time DB replication during a alpha test of a life critical DB and thus any down time of the production DB is unacceptable (and before you say use a non-production instance me and you have already discussed this use case so you know it is not an option) -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org