From owner-freebsd-questions@freebsd.org Thu Aug 6 21:40:40 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 6F3773AC974 for ; Thu, 6 Aug 2020 21:40:40 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (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 4BN23W2zCqz4fmg for ; Thu, 6 Aug 2020 21:40:39 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-io1-xd2f.google.com with SMTP id q75so43022995iod.1 for ; Thu, 06 Aug 2020 14:40:39 -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=jHNsfEjFBQloQP9jdtQgxLUnL/ipOSjpyqBqcGdd+uY=; b=BfnztVphZ4cIOzIvkY9bRSlze0ec/5Lv5iQtEjePrQUsmZTJtx91OwnC5mPYlRSHXj QoWcA8gj+h0XuQWn0XtZ7OitlHjQjz7vMuuIueEtUb6N1VOPFAu5z4ve1+Nn9XTQCnyd 8CnfwSSY44bWoKU/9I1KZwLFmNcUoxagjlKZ9vZHz5gTiDzjaIrZChOhpAQs2+nR14Ym aKTBzjGKGFamuVqj72NcpGZcslDzQE42+Ri+tfqx3++9hI4BRbE8iYVeXbVGkRNSGD8N oYSDTcPfQIFQLb7XgT75oGbZ3W4kotxmWMf8FWb99WroP8A3trkgqMfxcDNRduFXpHoO 8nVQ== 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=jHNsfEjFBQloQP9jdtQgxLUnL/ipOSjpyqBqcGdd+uY=; b=OERcwQlSJulcHPXVywL+7kT7aQigIkNq9ayTYpi0vkr1RuNj2Bm0op0ZtQPPz1zzD7 4TVqvTJvasXvfeq3JYCZz91mRl2V5NLa1fF9XKjma8PqK2xo+QGnfMckJLH5T8zue3C3 8zfMj0D4sokinEvV1bJIa1uQn7sQDTOvmid0v43omXbN2jiDcx4YcF01bR/zr+Kdy4a8 NkNF7ENvp+/LAtkA2V/3B9q/Qb6Kkd16kUFc7rWCW5f1sAu0DQfcdRGhoFTTlGonSpqb OXqSNPpI1uLYbQgfAq8LcLFTJLH142DgiP+MDaJwGFGDtsEZnx0+lhhVXZRVdZ63/HxO 8zig== X-Gm-Message-State: AOAM530lTCwEaeAgBsJuZSSuYfcWq1mVj4/EO03Or4orQDaBS9uJHOLn 6r6yZqT7+SzgbBWE75/CjRo/RFAG9QnuxZmcZvU= X-Google-Smtp-Source: ABdhPJy0l+/exHzuxaz3/awv9NqM/H0ECdsfWNE49rfufQAk/ODmSqHiYHPFFxaj8FDntMrjAJiRmiHoy2ZKpoZXjyc= X-Received: by 2002:a02:b817:: with SMTP id o23mr1130542jam.138.1596750038270; Thu, 06 Aug 2020 14:40:38 -0700 (PDT) MIME-Version: 1.0 References: <89e3f48c-74a1-4198-6b17-7e13a026225b@gmail.com> <491b2176-7886-7c90-a9a4-f3a6a6a98c08@gmail.com> In-Reply-To: <491b2176-7886-7c90-a9a4-f3a6a6a98c08@gmail.com> From: Aryeh Friedman Date: Thu, 6 Aug 2020 17:40:27 -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: 4BN23W2zCqz4fmg X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=BfnztVph; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::d2f as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-2.15 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; 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::d2f: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:40:40 -0000 On Thu, Aug 6, 2020 at 5:39 PM Don Wilde wrote: > > On 8/6/20 2: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) > > Understood. > > So how about a simple C daemon that pings every ten seconds? Just set the > ping count to 1. > System load. (the gateway also hosts 3 moderately used VM's) > > >> -- >> Don Wilde >> **************************************************** >> * What is the Internet of Things but a system * >> * of systems including humans? * >> **************************************************** >> >> > > -- > Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org > > -- > Don Wilde > **************************************************** > * What is the Internet of Things but a system * > * of systems including humans? * > **************************************************** > > -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org