Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
[SOLVED] 21.7RC2 Unbound adv. configuration files not surviving service restart
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] 21.7RC2 Unbound adv. configuration files not surviving service restart (Read 5093 times)
_richii
Newbie
Posts: 7
Karma: 1
[SOLVED] 21.7RC2 Unbound adv. configuration files not surviving service restart
«
on:
July 17, 2021, 12:20:55 am »
After the Unbound custom options were removed in RC2, I tried to apply my custom configuration through the "new" way described here:
https://docs.opnsense.org/manual/unbound.html#advanced-configurations
But after a Unbound service restart via GUI all added configuration files in the directory /var/unbound/etc/ got deleted.
I even tried out the template generation variant, even though I don't use a memory file system for /var in my configuration.
After the command "configctl template reload sampleuser/Unbound" the template custom configuration file gets indeed added, but after another Unbound service restart it gets deleted again.
It seems there is a bug that removes all non default configuration files on Unbound service start.
«
Last Edit: July 17, 2021, 11:25:02 am by _richii
»
Logged
opnfwb
Sr. Member
Posts: 331
Karma: 47
Re: 21.7-RC2 Unbound advanced configuration files not surviving service restart
«
Reply #1 on:
July 17, 2021, 05:36:56 am »
The hint for me was in the new release for RC2:
https://forum.opnsense.org/index.php?topic=23926.0
If you place the custom.conf in this folder it should survive service restarts and system reboots:
Code:
[Select]
/usr/local/etc/unbound.opnsense.d
I've tested the above running an RC2 VM in my lab and it is working as expected.
Logged
mimugmail
Hero Member
Posts: 6765
Karma: 494
Re: 21.7-RC2 Unbound advanced configuration files not surviving service restart
«
Reply #2 on:
July 17, 2021, 06:29:56 am »
https://github.com/opnsense/docs/blob/master/source/manual/unbound.rst
Docs are already updated but get released with 21.7
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
_richii
Newbie
Posts: 7
Karma: 1
Re: 21.7-RC2 Unbound advanced configuration files not surviving service restart
«
Reply #3 on:
July 17, 2021, 11:23:39 am »
Oh, it seems I missed that hint in the release notes.
It is working now, Thank You!
May I suggest a versioning in the Sphinx docs at docs.opnsense.org?
That way you could select the development release there and be apprised of all changes that comes with it without having to check out Github for documentation changes.
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: [SOLVED] 21.7RC2 Unbound adv. configuration files not surviving service restart
«
Reply #4 on:
July 17, 2021, 02:37:57 pm »
We have discussed branches in the docs but haven't concluded splitting it up per release because of limited resources.
The move of the configuration directory was necessary for DNSBL data to be available at boot for /var MFS users since /var/unbound is also on the MFS because of it and there the contents would be cleared on boot anyway.
It's a bit more consistent now.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
[SOLVED] 21.7RC2 Unbound adv. configuration files not surviving service restart