new (ver7) unbound config file Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
manilx
Posts: 133
Joined: Mon Dec 07, 2020 11:02 am

new (ver7) unbound config file

Post by manilx »

Hi

I have been able to install and configure Unbound under ver 6, with helps from @MichaIng and @Joulinar (viewtopic.php?p=30143#p30143)

I have a modified this config file.

Now that ver 7 is released I find this in the release notes:
"DietPi-Software - Unbound
On new installs, by default access is now granted to all private IPv4 and IPv6 address ranges instead of to the 192.168.0.0/16 subnet only, which includes VPNs, containers and cases of multiple local networks the server is attached to."

I'd like these new modifications applied to my config file. The link for the default file in github is dead.
Can you please provide me with the default (ver7) config file so that I can adapt it?

Thanks in advance!
User avatar
Joulinar
Posts: 5927
Joined: Sat Nov 16, 2019 12:49 am

Re: new (ver7) unbound config file

Post by Joulinar »

there you go

https://github.com/MichaIng/DietPi/blob ... bound.conf

but it should be same file
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
manilx
Posts: 133
Joined: Mon Dec 07, 2020 11:02 am

Re: new (ver7) unbound config file

Post by manilx »

Thank You.

Those entries were new:
access-control: ::/0 refuse
access-control: ::1/128 allow
access-control: fd00::/8 allow
access-control: fe80::/10 allow

Last question: when I update to ver 7 the new cron job to update to keep the root hints file updated is added during the update, right?
User avatar
Joulinar
Posts: 5927
Joined: Sat Nov 16, 2019 12:49 am

Re: new (ver7) unbound config file

Post by Joulinar »

As far as I know, this happen during new installation and/or reinstallation only.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
manilx
Posts: 133
Joined: Mon Dec 07, 2020 11:02 am

Re: new (ver7) unbound config file

Post by manilx »

OK.

Can you please provide me with the manual steps for doing this?

Much appreciated!
User avatar
Joulinar
Posts: 5927
Joined: Sat Nov 16, 2019 12:49 am

Re: new (ver7) unbound config file

Post by Joulinar »

Code: Select all

echo -e '#!/bin/dash\n# Update Unbound root hints\ncurl -sSfL https://www.internic.net/domain/named.root -o /var/lib/unbound/root.hints' > /etc/cron.monthly/dietpi-unbound
G_EXEC chmod +x /etc/cron.monthly/dietpi-unbound
https://github.com/MichaIng/DietPi/blob ... 4299-L4301
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
manilx
Posts: 133
Joined: Mon Dec 07, 2020 11:02 am

Re: new (ver7) unbound config file

Post by manilx »

Thank You!
Post Reply