From owner-freebsd-questions@freebsd.org Thu Aug 6 21:39:08 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 8E1283AC869 for ; Thu, 6 Aug 2020 21:39:08 +0000 (UTC) (envelope-from dwilde1@gmail.com) Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) (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 4BN21l3D6sz4fdG for ; Thu, 6 Aug 2020 21:39:07 +0000 (UTC) (envelope-from dwilde1@gmail.com) Received: by mail-pf1-x434.google.com with SMTP id 74so17561656pfx.13 for ; Thu, 06 Aug 2020 14:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=dqe3j/PgiO679w4Ba0Cmwys8bLTYPSjX/LSqaRKS1ZY=; b=gLLvK9HQ9NU3MdwYvSr3GtKNmVy7eZmfp83mmzOsVxoJEORgGsByqfec0iss86yHqk aDBtlis0vpgfZ6nlfCh71dSecjOy4bQpYF5W/0JrjcHUtWoGYa8IDC0DfSujakkiThLv fs30KzQflLdML0A/Ej3uw3jK/EsTBqu9RGS1t59fMhpQSJK+A6wKxIwjs6FZqgT5nAJZ dwHzhND5knQGE4wew2A/DIt3paLUAePSivtSkVQvgFq8JzxPrUPAgXo7BVE/Bdxchuxm UKeFkPKTFSzuqaTf602eyrtY5AW54VCMTF8SbCnUtMjOasjegGqXh/BvioFfCMTq7mWw KhBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=dqe3j/PgiO679w4Ba0Cmwys8bLTYPSjX/LSqaRKS1ZY=; b=qgOSV2yyrxS1iYfOT+Za/N0myhiwtJGSHC0O3H9Jx1IuSjOQQuUBF9Gwi+1kXbpBAS Oz3dzZBSLL4gyMLy3OjbGI+PMUqUUaVUHhLnPrreJqCe1MQ+wRQ2VI8GcpkF0eeBvMHT j4DEr80n6iapnRF2xPyafMhgK8F3hIxv4OGhI9xJN/ZZiDAjXWKXzMsnwIFvP1zPZuCJ 00Dcb6Ai6ur7fRJRD4J8oJg0CfOSd32cam+zb3Q8d5bq67bvkmUtAsQfr+Rdv7r+vmZS bdg8aBID1lVoZIH8va4H389zA4/x2FjhhkytOpb9QNxXQgiv+U4wCV/SHSOsNE92GPwc dIug== X-Gm-Message-State: AOAM5309dCiM2YebD9jJscWAAw5dwjZmxVPSUV7zaGUjEWD5+NEt1rOm DJq3F2FM6CJ7Ht6xLuXUQ15pgHVO X-Google-Smtp-Source: ABdhPJyLRN8EXgYs18nRh9AErYPVFeQbt4v8p1iHKZjAm9B8r5LaZbdk/XNDvX8me66kOdjpb414Vg== X-Received: by 2002:a63:f1a:: with SMTP id e26mr9238101pgl.80.1596749945724; Thu, 06 Aug 2020 14:39:05 -0700 (PDT) Received: from [192.168.0.4] ([184.101.51.28]) by smtp.gmail.com with ESMTPSA id q96sm8760532pja.0.2020.08.06.14.39.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Aug 2020 14:39:05 -0700 (PDT) Subject: Re: Unroutable packer to specific IP forces process to run To: Aryeh Friedman Cc: FreeBSD Mailing List References: <89e3f48c-74a1-4198-6b17-7e13a026225b@gmail.com> From: Don Wilde Message-ID: <491b2176-7886-7c90-a9a4-f3a6a6a98c08@gmail.com> Date: Thu, 6 Aug 2020 14:39:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Rspamd-Queue-Id: 4BN21l3D6sz4fdG X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=gLLvK9HQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dwilde1@gmail.com designates 2607:f8b0:4864:20::434 as permitted sender) smtp.mailfrom=dwilde1@gmail.com X-Spamd-Result: default: False [-1.85 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; 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]; 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]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.05)[-1.052]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RECEIVED_SPAMHAUS_PBL(0.00)[184.101.51.28:received]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.19)[0.187]; NEURAL_HAM_LONG(-0.99)[-0.988]; TAGGED_RCPT(0.00)[]; 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::434:from]; HTTP_TO_IP(1.00)[]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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:39:08 -0000 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. > > > -- > 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? * ****************************************************