From owner-freebsd-questions@freebsd.org Mon Jul 6 10:59:56 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 1D45A363D21 for ; Mon, 6 Jul 2020 10:59:56 +0000 (UTC) (envelope-from SRS0=wW7S=AR=perdition.city=julien@bebif.be) Received: from orval.bbpf.belspo.be (orval.bbpf.belspo.be [193.191.208.90]) by mx1.freebsd.org (Postfix) with ESMTP id 4B0jJW3r7sz3d0X for ; Mon, 6 Jul 2020 10:59:55 +0000 (UTC) (envelope-from SRS0=wW7S=AR=perdition.city=julien@bebif.be) Received: from x1 (unknown [77.109.77.76]) by orval.bbpf.belspo.be (Postfix) with ESMTPSA id 854B11D4FC25; Mon, 6 Jul 2020 12:59:53 +0200 (CEST) Date: Mon, 6 Jul 2020 12:59:50 +0200 From: Julien Cigar To: Evilham Cc: freebsd-questions@freebsd.org Subject: Re: mpd5 link up Message-ID: <20200706105950.6qkk23ba2cgwv6w2@x1> Mail-Followup-To: Evilham , freebsd-questions@freebsd.org References: <20200706093639.64kx6wehespfqgnt@x1> <37ac95e3-8167-4f59-adb0-c87905825e28@yggdrasil.evilham.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <37ac95e3-8167-4f59-adb0-c87905825e28@yggdrasil.evilham.com> X-Rspamd-Queue-Id: 4B0jJW3r7sz3d0X X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of SRS0=wW7S=AR=perdition.city=julien@bebif.be designates 193.191.208.90 as permitted sender) smtp.mailfrom=SRS0=wW7S=AR=perdition.city=julien@bebif.be X-Spamd-Result: default: False [-2.21 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.976]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.02)[-1.018]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_NA(0.00)[perdition.city]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.82)[-0.817]; RCPT_COUNT_TWO(0.00)[2]; FORGED_SENDER(0.30)[julien@perdition.city,SRS0=wW7S=AR=perdition.city=julien@bebif.be]; RCVD_NO_TLS_LAST(0.10)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2611, ipnet:193.191.192.0/19, country:BE]; FROM_NEQ_ENVFROM(0.00)[julien@perdition.city,SRS0=wW7S=AR=perdition.city=julien@bebif.be]; RCVD_COUNT_TWO(0.00)[2] 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: Mon, 06 Jul 2020 10:59:56 -0000 On Mon, Jul 06, 2020 at 12:28:13PM +0200, Evilham wrote: > On dl., jul. 06 2020, Evilham wrote: > > > On dl., jul. 06 2020, Julien Cigar wrote: > > > > > Hello, > > > > > > I switched from base ppp to mpd5 for my "home" router/firewall > > > (small > > > APU2C4) as ppp consumes a lot of CPU usage (100% CPU in fact) > > > and is > > > unable to use multiple cores for a single PPPOE connection. It > > > works > > > well but as I have a dynamic IP and a DYNDNS-like hostname I > > > don't see > > > any option in mpd5 to execute a script whenever the IP address > > > changes. > > > There is set "iface up-script xxx.sh" but it is called only when > > > the > > > interface changes it's state to UP (first connection). > > > > > > This is my configuration: > > > https://gist.github.com/silenius/0a40de647b48829fd76c5dec098188e3 > > > > > > Any idea if I missed something in the documentation? > > > Otherwise, is there a way to detect an address IP changes in > > > devd? > > > > > > Thanks! > > > > > > Julien > > > > Hi Julien, > > > > I actually recently did precisely that as well (also on an APU > > :-)). > > > > This is documented with the port in: > > /usr/local/share/doc/mpd5/mpd28.html > > > > Cheers, and enjoy the *much* better performance :-) > > > Crap, hit send too quickly, you already have that; sorry! > > I don't recall seeing something like that and my ISP provides static > addresses so didn't hit that issue. > > My approach when I used to have these issues was to have a cron job that > took care of that :-/. yes.. I wanted to avoid using cron for that but if there is no other way I'll use it. > -- > Evilham > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced.