From nobody Tue Jan 17 17:28:55 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NxG8X63Y4z2srKL for ; Tue, 17 Jan 2023 17:29:00 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NxG8X5Ywlz3MwJ; Tue, 17 Jan 2023 17:29:00 +0000 (UTC) (envelope-from otis@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673976540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YYB9QLhopcg72+f8Xriso2em+fkt/xqruj/RJ4v4azI=; b=X7GYlGedca/sDI6WyXexeQU6DjruXKWgWf39HvnZwhiCpPegKf5NhBCN9FuznsNghu0fPd 4Q4HLu9Bztn2ZsdNcLXYKkOkLzJtXNDk5RnaiJORq7YboFb5MVVP7mJfEIPXzuAQjtSqHc raKt3lYa9gTKa+U+HQ5BitiUQugHNXHfg2yQfxBLe5Bx8WaWXi5AzSgABcRtnkCnkWwuJa ZDKpXb/+Q9GEoAKxZ8jaBBq6NkOpIl1i2KEzf0RepzaxfCL6Px8TwNwXQcSBZZovAl3Ydd rz37JhMJcjblqzyvpr9t2SPemIaKjLhIsxOWlk8JvMo2s965qlR/8JBc+Qgk/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673976540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YYB9QLhopcg72+f8Xriso2em+fkt/xqruj/RJ4v4azI=; b=A5aFDB/mF2n4MVv9+x8qmJsVy99ne8A2ZFLunmlLHHwyNUZROVVt1CKhSmRMKJL3f/cflr NAVNdU2n9omX54Ca74uT8QjTZY2A8CI6NW56zMxQEBY/UsMPLE34TyEfyMmqdiHsUC9El4 oshGpeWYYZhwh2egJrCfd7d2n3lBNJqOF8zr4U9nkqi0vVKygiMDZz/EJX3CGeqdGwylG1 hU25ayBs6+FiEU1khnD5BY/N4EykxpC805Iqt6g1h9QvTAiyywYovTyDZEuFoYGsAcBtVt RaLxQ+2O5E7S8aMmVAq7QkyqaSO+ZITmLV4Tpc+cNy72G0Tjym9cjnIIHVrBZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673976540; a=rsa-sha256; cv=none; b=v27tcubXKEZzNCwHXdAgs+KgYVzY2nE8j7v0cgoyUarkHRMvjK2NeSYez1vkH+HeeBc+Ec 9PPJcHuDZmQWXk2aMO74F8ok5yyUkjd5A/a4+JDrsmBQTgX0fjPuxU/x++B0GJYm1gFl4f Taw4e+DphN0pWHUBk3qxJK6yyCIJ7RMLANJEvVubCCWt61WKKneQUvlcvCCPTPi5TVk9Fd XgyENJF5n8zt3LgHobrdDJ7ilJCHmXbY+sN63MflPhg7Z4Benr0vGS7T/TU80PgS10rrMa dXmLisEIjr7PbzgNcJE7VX0THBUtkYR93m7gE7HgCk24BVv1Q3UkwExI4avW5A== Received: from ns2.wilbury.net (ns2.wilbury.net [92.60.51.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "svc.wilbury.net", Issuer "R3" (verified OK)) (Authenticated sender: otis) by smtp.freebsd.org (Postfix) with ESMTPSA id 4NxG8X2yXDzvSg; Tue, 17 Jan 2023 17:29:00 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtpclient.apple (unknown [217.73.28.193]) (Authenticated sender: juraj@lutter.sk) by svc.wilbury.net (Postfix) with ESMTPSA id 9DD2245CEE8; Tue, 17 Jan 2023 18:28:56 +0100 (CET) From: Juraj Lutter Message-Id: <50B9F3E5-236E-47E1-850D-625801E6393B@FreeBSD.org> Content-Type: multipart/alternative; boundary="Apple-Mail=_75321E88-CBBC-4257-BBC0-9DD0579B35B1" List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: local-unbound regression Date: Tue, 17 Jan 2023 18:28:55 +0100 In-Reply-To: <50ca9367-f2dc-8634-403b-c6fd033b0ddf@antonovs.family> Cc: freebsd-current@freebsd.org To: User Ngor References: <6d204b08-5f67-6a0c-4982-93c5f9da8bf5@antonovs.family> <50ca9367-f2dc-8634-403b-c6fd033b0ddf@antonovs.family> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, MAY_BE_FORGED,RDNS_NONE,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on ns2.wilbury.net X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_75321E88-CBBC-4257-BBC0-9DD0579B35B1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, > On 17 Jan 2023, at 18:11, User Ngor wrote: >=20 > I discovered that recent unbound update broke my VPN scripts, after = some investigation I think I found the problem - default location of the = config file was reset to upstream value. My config file is at = /var/unbound/unbound.conf (as created by local-unbound-setup) but when I = use local-unbound-control I see this error message: >>=20 >>=20 >> # local-unbound-control flush_stats >> [1673972554] unbound-control[16206:0] error: Could not open = /usr/local/etc/unbound/unbound.conf: No such file or directory >> [1673972554] unbound-control[16206:0] fatal error: could not read = config file >>=20 >> I have not yet created bugzilla bug >>=20 >=20 > = https://cgit.freebsd.org/src/commit/?id=3D1838dec31895fd4752fa8631322ab93b= e0705a66 >=20 > /* Pathname to the Unbound configuration file */ > -#define CONFIGFILE "/var/unbound/unbound.conf" > +#define CONFIGFILE "/usr/local/etc/unbound/unbound.conf" >=20 >=20 > It looks like it was intentional, but then my local-unbound-setup = keeps creating configuration in the old destination... And it looks like = a POLA violation - I can imagine lot's of users might have configs in = /var/unbound I=E2=80=99ve opened a https://reviews.freebsd.org/D38106 = to see whether this can be fixed. =E2=80=94 Juraj Lutter otis@FreeBSD.org --Apple-Mail=_75321E88-CBBC-4257-BBC0-9DD0579B35B1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,

On 17 Jan 2023, at 18:11, User Ngor <ihor@antonovs.family> wrote:

I = discovered that recent unbound update broke my VPN scripts, after some = investigation I think I found the problem - default location of the = config file was reset to upstream value. My config file is at = /var/unbound/unbound.conf (as created by local-unbound-setup) but when I = use local-unbound-control I see this error message:


    # local-unbound-control flush_stats
    [1673972554] unbound-control[16206:0] = error: Could not open /usr/local/etc/unbound/unbound.conf: No such file = or directory
    [1673972554] = unbound-control[16206:0] fatal error: could not read config file

I have not yet created bugzilla bug


https://cgit.freebsd.org/src/commit/?id=3D1838dec31895fd4752fa8= 631322ab93be0705a66

    = /* Pathname to the Unbound configuration file */
    -#define CONFIGFILE = "/var/unbound/unbound.conf"
    +#define = CONFIGFILE "/usr/local/etc/unbound/unbound.conf"


It looks like it was intentional, but then my = local-unbound-setup keeps creating configuration in the old = destination... And it looks like a POLA violation - I can imagine lot's = of users might have configs in /var/unbound


I=E2=80=99ve opened a https://reviews.freebsd.org/D38106 to see whether = this can be fixed.


=E2=80=94
Juraj = Lutter

= --Apple-Mail=_75321E88-CBBC-4257-BBC0-9DD0579B35B1--