From owner-freebsd-net@freebsd.org Mon Nov 20 13:25:13 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 67FC9DEBAA3 for ; Mon, 20 Nov 2017 13:25:13 +0000 (UTC) (envelope-from agapon@gmail.com) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ED7D17DF0E for ; Mon, 20 Nov 2017 13:25:12 +0000 (UTC) (envelope-from agapon@gmail.com) Received: by mail-lf0-f47.google.com with SMTP id m1so10059598lfj.9 for ; Mon, 20 Nov 2017 05:25:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MqksTrEXwzoAtV/qSewGwqOSkZLRD3yxWgC/qhH42o0=; b=rjEFosLGAqGQdLwBwk5iw4fc0w1vy4YICkSvkS0l+IfUzvSsbIgzsnYKgHR1aFy1mp WMgDchI26oa4CiKNGC0agjm3JM6UVJxEMkiWsv3Mat4bwvxTWhAUeXGQ5L56FWXMhAnV xkHUFPThhRg/MTTIYdiT14a6QC9Aa997ZsI4bBuSta0Ryc0mAR+/Ud9grVQN1n6Zez73 4JAG4MudD3bml+fWDlKzhEI64E3Gui1aaNwhd3BqLgcoHDl7earoeICuTn/jJVaIMmn1 tZWAyr3wedhtjszDzrNrVcLLoip8/jVPDCWVk8YhqygxJMGwmye5XYQXI75CeGX0M5Cy o4lg== X-Gm-Message-State: AJaThX7XN67hn1b3Q9SO5UKxio30hsfoRbw8gjIKGnLZb4dcEUohaDfz YCbwQukPpiBXlRjzK3ZNyjTy7y3p X-Google-Smtp-Source: AGs4zMZ9Y6xeFd6mqAdeABRIWw8LJwcPDO7cC7BKa3jnmIOYOEa8hLCmPn69iRadXwa1e6iTCrEskA== X-Received: by 10.46.71.133 with SMTP id u127mr2771022lja.52.1511184304402; Mon, 20 Nov 2017 05:25:04 -0800 (PST) Received: from [192.168.0.88] (east.meadow.volia.net. [93.72.151.96]) by smtp.googlemail.com with ESMTPSA id z6sm2301868ljc.8.2017.11.20.05.25.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Nov 2017 05:25:03 -0800 (PST) Subject: Re: local_unbound, resolvconf, vpn To: Alexander Zagrebin , freebsd-net@freebsd.org References: <5689438f-6734-6b57-b700-d70ee2b7578a@FreeBSD.org> <20171108151713.413d28c4@vm2.home.zagrebin.ru> From: Andriy Gapon Message-ID: <7b016084-adf9-2d9e-bb04-c6a964cd6a0f@FreeBSD.org> Date: Mon, 20 Nov 2017 15:25:02 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171108151713.413d28c4@vm2.home.zagrebin.ru> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2017 13:25:13 -0000 On 08/11/2017 14:17, Alexander Zagrebin wrote: > This message appears because you are using chroot. > You have to edit /var/unbound/unbound.conf and add a trailing slash to > value of the 'directory' parameter: That did it! > server: > ... > chroot: /var/unbound > directory: /var/unbound/ > ... > > When unbound uses chroot, it determines the directory name, that it will > be use for chdir call, taking in account the value of 'chroot' > parameter. If 'chroot' equals 'directory' the unbound will call > chdir(''), which will cause an error. Thank you very much for the advice and for the explanation behind it. -- Andriy Gapon