opnsense / core

OPNsense GUI, API and systems backend
https://opnsense.org/
BSD 2-Clause "Simplified" License
3.28k stars 727 forks source link

Unbound: Make it easier to enable or disable blocklists #7532

Open robled opened 3 months ago

robled commented 3 months ago

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.

With DNS adblocking it's common to want to temporarily disable all blocklists to access a website. Other DNS adblocking solutions allow you to toggle the setting via the UI or API, or even just disable it for some time interval (e.g. 5 minutes to allow you to access a specific site for a quick task).

Currently it's cumbersome to have to log into the web UI and drill into the Unbound configuration to disable the blocklists. It is possible to use the API to do this (example), but the API call not only requires the enable/disable boolean, but also the rest of the blocklist config, which means that you cannot easily use the API to do this without the risk of nuking the rest of your blocklist config.

Describe the solution you like

An API call with a boolean enable/disable value which doesn't affect other blocklist configuration would be helpful. Additionally, an option to disable the adblocking for some amount of time and then turn it back on again would be further useful.

Finally, the UI could support this as well via a quick dashboard button. For example:

PiHoleDisable_1

Describe alternatives you considered

A clear and concise description of any alternative solutions or features you considered.

Additional context

Add any other context or screenshots about the feature request here or links to relevant forum thread or similar