From nobody Tue Jan 17 17:11:16 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 4NxFm61Cmrz2spLh for ; Tue, 17 Jan 2023 17:11:18 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: from mail.antonovs.family (mail.antonovs.family [100.25.240.195]) (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 "mail.antonovs.family", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NxFm54gTtz3Khg for ; Tue, 17 Jan 2023 17:11:17 +0000 (UTC) (envelope-from ihor@antonovs.family) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=antonovs.family header.s=20200215 header.b=0XV3R35e; spf=pass (mx1.freebsd.org: domain of ihor@antonovs.family designates 100.25.240.195 as permitted sender) smtp.mailfrom=ihor@antonovs.family; dmarc=pass (policy=none) header.from=antonovs.family DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antonovs.family; s=20200215; t=1673975472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gG8bSdYcgAHrTaNgWfUVi28+CcLWqUQB2n8k/WVMXD0=; b=0XV3R35easOvo8Rk7AtlSilvoDDFI2shztEi7DCMI60ngORnVFxFR97cHpmMHkHiWpvK1o vnSMGkg3sy5+iAe2UInknudu6TKTGXZEyjvx+4zj4eMNwyPUhc5W2i7qs0aZlbqz63ZYdo puihZQPysaOosLiZU2NzRGGSdpCCMck= Received: by mail.antonovs.family (OpenSMTPD) with ESMTPSA id e0921ecc (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 17 Jan 2023 17:11:11 +0000 (UTC) Message-ID: <50ca9367-f2dc-8634-403b-c6fd033b0ddf@antonovs.family> Date: Tue, 17 Jan 2023 09:11:16 -0800 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: local-unbound regression Content-Language: en-US From: User Ngor To: freebsd-current@freebsd.org References: <6d204b08-5f67-6a0c-4982-93c5f9da8bf5@antonovs.family> In-Reply-To: <6d204b08-5f67-6a0c-4982-93c5f9da8bf5@antonovs.family> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[antonovs.family,none]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[antonovs.family:s=20200215]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[antonovs.family:+]; ASN(0.00)[asn:14618, ipnet:100.24.0.0/13, country:US]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4NxFm54gTtz3Khg X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N 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=1838dec31895fd4752fa8631322ab93be0705a66     /* 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 -- Ihor Antonov