Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unboundplus: move dnsbls from .conf to control #4528

Closed
wants to merge 7 commits into from

Conversation

kulikov-a
Copy link
Member

for #4518

@AdSchellevis AdSchellevis self-assigned this Dec 15, 2020
@AdSchellevis
Copy link
Member

I'm not sure this is the best approach either, not everybody uses the blacklists, in which case /var/unbound/etc/dnsbl.list wouldn't exists and some of the configd calls would crash now.

To be honest, if we do want to use some sort of lazy loading for the blacklists, I do think we should either integrate it into the python script and only try to load if there is anything configured or define some location where all lists we should process reside in. The complication there is we don't want to reload on boot, to avoid slowing down the boot process.

An option might be to allocate a directory in /usr/local/etc for unbound to include after load, but this would also require an update of the documentation (https://docs.opnsense.org/manual/unbound.html#advanced-configurations).

Since there are a couple of issues around the unbound setup, it's probably better to spend some time on designing before pulling different patches in.

@kulikov-a
Copy link
Member Author

kulikov-a commented Dec 16, 2020

@AdSchellevis
so we can add load_dnsbl.sh to /usr/local/opnsense/scripts/ubound/
with:
if [ -f /var/unbound/etc/dnsbl.list ]; then /usr/local/sbin/unbound-control -c /var/unbound/unbound.conf local_datas < /var/unbound/etc/dnsbl.list fi
and replace configd actions with this script?
I'm just trying to make the smallest changes to the overall logic so that nothing is ruined

@AdSchellevis
Copy link
Member

@kulikov-a we're going to postpone this for now, I understand that you would like to prepare the smallest fix, but we should also be careful for foot shooting in the near future if the fixes only cover part of the issue(s).

@kulikov-a
Copy link
Member Author

Ok. Thanks!
I really don't see a potential shot in the foot here, but again, i definitely don't know enough about the unbound issues.
just one more: when (and if) you come back to this, please also look at the DNSSEC check before trust anchor fetching.
(for my test VM if grep -q "auto-trust-anchor-file: /var/unbound/root.key" /var/unbound/unbound.conf before calling unbound-anchor works well)
Thanks again!
should i close this PR o leave as is?

@AdSchellevis
Copy link
Member

let's leave the PR open, I don't think we're going to change much on the intent of it, just don't want to rush into fixes at the moment.

@fichtner
Copy link
Member

fichtner commented Jul 9, 2021

different proposal via #4938

@fichtner fichtner closed this Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants