From owner-freebsd-questions@freebsd.org Mon May 4 08:07:31 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 8AA902C8772 for ; Mon, 4 May 2020 08:07:31 +0000 (UTC) (envelope-from jacques+freebsd@foucry.net) Received: from mithril.localdomain (dontpanic.foucry.net [80.67.176.134]) by mx1.freebsd.org (Postfix) with ESMTP id 49FwSf3Gycz3Mnh for ; Mon, 4 May 2020 08:07:30 +0000 (UTC) (envelope-from jacques+freebsd@foucry.net) Received: from mithril.foucry.net (mithril.foucry.net [127.0.0.1]) by mithril.localdomain (Postfix) with ESMTP id 79E641833B for ; Mon, 4 May 2020 10:07:28 +0200 (CEST) Date: Mon, 4 May 2020 10:07:28 +0200 From: Jacques Foucry To: freebsd-questions@freebsd.org Subject: Re: Local_unbound and (opn)vpn Message-ID: <20200504080728.GC73151@mithril.foucry.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <20200504054312.GA73151@mithril.foucry.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200504054312.GA73151@mithril.foucry.net> X-Rspamd-Queue-Id: 49FwSf3Gycz3Mnh X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=foucry.net (policy=none) X-Spamd-Result: default: False [-1.61 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.994,0]; DMARC_POLICY_SOFTFAIL(0.10)[foucry.net : No valid SPF, No valid DKIM,none]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; HFILTER_HELO_IP_A(1.00)[mithril.localdomain]; HFILTER_HELO_NORES_A_OR_MX(0.30)[mithril.localdomain]; IP_SCORE(-1.02)[ipnet: 80.67.160.0/19(-2.84), asn: 20766(-2.24), country: FR(-0.00)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:20766, ipnet:80.67.160.0/19, country:FR]; TAGGED_FROM(0.00)[freebsd]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2020 08:07:31 -0000 Le lundi 04 mai 2020 à 07:43:12 (+0200), Jacques Foucry à écrit: > Dear All, Well forgot my question. The solution was in this mail :-) I was thinking duriong writing but not testing before sending it. The conf.d/ is used for local configuration ans should not be changed where local_unbound start. Sorry to have diatrib you from your important job for such idiot question. > > I need your advice and experience about local_unbound aشs vpn (in my case it's > openvpn). > > When local_unbound it use the /var/unbound/forward.conf file to learn the DNS > server to query for the zone ".". > > When I launch the vpn (all the internet traffic DOES NOT GO THROUG THE VPN), I > need to forward query for the compagny internal zone to the internal DNS. > > I can modify the file /var/unbound/forward.conf like this: > > forward-zone: > name: "." > forward-addr: 192.168.1.113 # this ひs my pihole address > forward-zone: > name: "cie.local" > forward-addr: 192.168.127.23 > forward-addr: 192.168.127.46 > > And restart local_unboound and it's works. > > > But when I restart mや laptop, the start process of local_unbound is to > rewrite the forward.conf file and my add is overwrite. > > There is a conf.d folder inside /var/unbound. I suppose I can use it in order > to make my forward zone persistant. I don't find anything about the format of > those files I can put in (may be the same as forward.conf) of the name of the > file (cie.conf in this case?). > > > So I need your experience and advice. > > Thanks in advance and take care. > > -- > Jacques Foucry > _______________________________________________ > 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" ---end quoted text--- -- Jacques Foucry