diff --git a/plist b/plist
index 3984e04aa..6ba2a87dc 100644
--- a/plist
+++ b/plist
@@ -374,11 +374,9 @@
/usr/local/opnsense/mvc/app/controllers/OPNsense/Unbound/Api/SettingsController.php
/usr/local/opnsense/mvc/app/controllers/OPNsense/Unbound/DnsblController.php
/usr/local/opnsense/mvc/app/controllers/OPNsense/Unbound/DotController.php
-/usr/local/opnsense/mvc/app/controllers/OPNsense/Unbound/MiscellaneousController.php
/usr/local/opnsense/mvc/app/controllers/OPNsense/Unbound/StatsController.php
/usr/local/opnsense/mvc/app/controllers/OPNsense/Unbound/forms/dialogDot.xml
/usr/local/opnsense/mvc/app/controllers/OPNsense/Unbound/forms/dnsbl.xml
-/usr/local/opnsense/mvc/app/controllers/OPNsense/Unbound/forms/miscellaneous.xml
/usr/local/opnsense/mvc/app/library/Google/API/Drive.php
/usr/local/opnsense/mvc/app/library/OPNsense/Auth/API.php
/usr/local/opnsense/mvc/app/library/OPNsense/Auth/AuthenticationFactory.php
@@ -601,7 +599,6 @@
/usr/local/opnsense/mvc/app/views/OPNsense/TrafficShaper/statistics.volt
/usr/local/opnsense/mvc/app/views/OPNsense/Unbound/dnsbl.volt
/usr/local/opnsense/mvc/app/views/OPNsense/Unbound/dot.volt
-/usr/local/opnsense/mvc/app/views/OPNsense/Unbound/miscellaneous.volt
/usr/local/opnsense/mvc/app/views/OPNsense/Unbound/stats.volt
/usr/local/opnsense/mvc/app/views/layout_partials/base_dialog.volt
/usr/local/opnsense/mvc/app/views/layout_partials/base_dialog_processing.volt
@@ -834,9 +831,9 @@
/usr/local/opnsense/scripts/systemhealth/logformats/squid.py
/usr/local/opnsense/scripts/systemhealth/logformats/syslog.py
/usr/local/opnsense/scripts/systemhealth/queryLog.py
+/usr/local/opnsense/scripts/unbound/blocklists.py
/usr/local/opnsense/scripts/unbound/cache.sh
/usr/local/opnsense/scripts/unbound/check.sh
-/usr/local/opnsense/scripts/unbound/download_blacklists.py
/usr/local/opnsense/scripts/unbound/start.sh
/usr/local/opnsense/scripts/unbound/wrapper.py
/usr/local/opnsense/service/conf/actions.d/actions_auth.conf
@@ -977,7 +974,7 @@
/usr/local/opnsense/service/templates/OPNsense/Syslog/syslog-ng-lockout.conf
/usr/local/opnsense/service/templates/OPNsense/Syslog/syslog-ng.conf
/usr/local/opnsense/service/templates/OPNsense/Unbound/core/+TARGETS
-/usr/local/opnsense/service/templates/OPNsense/Unbound/core/blacklists.conf
+/usr/local/opnsense/service/templates/OPNsense/Unbound/core/blocklists.conf
/usr/local/opnsense/service/templates/OPNsense/Unbound/core/dot.conf
/usr/local/opnsense/service/templates/OPNsense/Unbound/core/miscellaneous.conf
/usr/local/opnsense/service/templates/OPNsense/Unbound/core/root.min.hints
diff --git a/src/etc/inc/plugins.inc.d/unbound.inc b/src/etc/inc/plugins.inc.d/unbound.inc
index 1efb6bdb7..797d792c6 100644
--- a/src/etc/inc/plugins.inc.d/unbound.inc
+++ b/src/etc/inc/plugins.inc.d/unbound.inc
@@ -117,10 +117,6 @@ function unbound_generate_config()
mwexecf('/sbin/mount -t devfs devfs %s', '/var/unbound/dev');
}
- foreach (glob('/var/unbound/etc/*') as $file) {
- unlink($file);
- }
-
$optimization = unbound_optimization();
$dns64prefix = '';
@@ -374,8 +370,6 @@ EOD;
file_put_contents('/var/unbound/unbound.conf', $unboundconf);
configd_run('template reload OPNsense/Unbound/*');
- mwexecf('cp /usr/local/etc/unbound.opnsense.d/*.conf /var/unbound/etc/');
- mwexecf('/usr/sbin/chown -R unbound:unbound %s', '/var/unbound');
}
function unbound_cache_flush()
diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Unbound/MiscellaneousController.php b/src/opnsense/mvc/app/controllers/OPNsense/Unbound/MiscellaneousController.php
deleted file mode 100644
index b47c0ce54..000000000
--- a/src/opnsense/mvc/app/controllers/OPNsense/Unbound/MiscellaneousController.php
+++ /dev/null
@@ -1,40 +0,0 @@
-
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
- * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
- * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-namespace OPNsense\Unbound;
-
-use OPNsense\Base\IndexController;
-
-class MiscellaneousController extends IndexController
-{
- public function indexAction()
- {
- $this->view->miscellaneousForm = $this->getForm('miscellaneous');
- $this->view->pick('OPNsense/Unbound/miscellaneous');
- }
-}
diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Unbound/forms/dnsbl.xml b/src/opnsense/mvc/app/controllers/OPNsense/Unbound/forms/dnsbl.xml
index 45c236a63..a2f7f32ab 100644
--- a/src/opnsense/mvc/app/controllers/OPNsense/Unbound/forms/dnsbl.xml
+++ b/src/opnsense/mvc/app/controllers/OPNsense/Unbound/forms/dnsbl.xml
@@ -13,12 +13,12 @@
unbound.dnsbl.lists
-
+
select_multipletruetrue
- List of domains from where blacklist will be downloaded.
+ List of domains from where blocklist will be downloaded.unbound.dnsbl.whitelists
@@ -28,4 +28,12 @@
trueList of domains to whitelist. You can use regular expressions.
+
+ unbound.miscellaneous.privatedomain
+
+ select_multiple
+
+ true
+ List of domains to mark as private. You only need this for some DNSBL lists which resolve to private addresses.
+
diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Unbound/forms/miscellaneous.xml b/src/opnsense/mvc/app/controllers/OPNsense/Unbound/forms/miscellaneous.xml
deleted file mode 100644
index e8e968a03..000000000
--- a/src/opnsense/mvc/app/controllers/OPNsense/Unbound/forms/miscellaneous.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
diff --git a/src/opnsense/mvc/app/models/OPNsense/Unbound/ACL/ACL.xml b/src/opnsense/mvc/app/models/OPNsense/Unbound/ACL/ACL.xml
index 6b8ddc3d2..ccb5279a7 100644
--- a/src/opnsense/mvc/app/models/OPNsense/Unbound/ACL/ACL.xml
+++ b/src/opnsense/mvc/app/models/OPNsense/Unbound/ACL/ACL.xml
@@ -39,7 +39,7 @@
- Services: Unbound (mvc)
+ Services: Unbound (MVC)ui/unbound/*api/unbound/*
diff --git a/src/opnsense/mvc/app/models/OPNsense/Unbound/Menu/Menu.xml b/src/opnsense/mvc/app/models/OPNsense/Unbound/Menu/Menu.xml
index f80337e02..4d0c98a08 100644
--- a/src/opnsense/mvc/app/models/OPNsense/Unbound/Menu/Menu.xml
+++ b/src/opnsense/mvc/app/models/OPNsense/Unbound/Menu/Menu.xml
@@ -10,9 +10,8 @@
-
-
-
+
+
diff --git a/src/opnsense/mvc/app/views/OPNsense/Unbound/miscellaneous.volt b/src/opnsense/mvc/app/views/OPNsense/Unbound/miscellaneous.volt
deleted file mode 100644
index 7c9c8f1ca..000000000
--- a/src/opnsense/mvc/app/views/OPNsense/Unbound/miscellaneous.volt
+++ /dev/null
@@ -1,60 +0,0 @@
-{#
- # Copyright (c) 2019-2020 Deciso B.V.
- # Copyright (c) 2019 Michael Muenz
- # All rights reserved.
- #
- # Redistribution and use in source and binary forms, with or without modification,
- # are permitted provided that the following conditions are met:
- #
- # 1. Redistributions of source code must retain the above copyright notice,
- # this list of conditions and the following disclaimer.
- #
- # 2. Redistributions in binary form must reproduce the above copyright notice,
- # this list of conditions and the following disclaimer in the documentation
- # and/or other materials provided with the distribution.
- #
- # THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
- # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
- # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- # AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
- # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- # POSSIBILITY OF SUCH DAMAGE.
- #}
-
-
-
-