diff --git a/dns/dnscrypt-proxy/pkg-descr b/dns/dnscrypt-proxy/pkg-descr index 14035109a..76d19e885 100644 --- a/dns/dnscrypt-proxy/pkg-descr +++ b/dns/dnscrypt-proxy/pkg-descr @@ -8,6 +8,7 @@ Plugin Changelog 1.13 * Add necessary hooks to allow the plugin to be used as a standalone core DNS server +* Changed default listening addresses to 0.0.0.0/:: for new users 1.12 diff --git a/dns/dnscrypt-proxy/src/etc/inc/plugins.inc.d/dnscryptproxy.inc b/dns/dnscrypt-proxy/src/etc/inc/plugins.inc.d/dnscryptproxy.inc index 2bb3c7192..aeb8ef1ff 100644 --- a/dns/dnscrypt-proxy/src/etc/inc/plugins.inc.d/dnscryptproxy.inc +++ b/dns/dnscrypt-proxy/src/etc/inc/plugins.inc.d/dnscryptproxy.inc @@ -2,6 +2,7 @@ /* * Copyright (C) 2018 Michael Muenz + * Copyright (C) 2023 Franco Fichtner * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -51,7 +52,7 @@ function dnscryptproxy_services() $ports = []; /* - * DNS service is eligable for core use when both 127.0.0.1 and ::1 are set. + * DNS service is eligable for core use when both 0.0.0.0 and :: are set. * In order to provide dual stack ports we need to intersect the resulting * ports for each address family. */ @@ -59,9 +60,9 @@ function dnscryptproxy_services() $localhost6 = []; foreach (explode(',', (string)$model->listen_addresses) as $addrport) { - if (preg_match('/^127\.0\.0\.1:([\d]+)$/', $addrport, $matches)) { + if (preg_match('/^0\.0\.0\.0:([\d]+)$/', $addrport, $matches)) { $localhost4[$matches[1]] = 1; - } elseif (preg_match('/^\[::1\]:([\d]+)$/', $addrport, $matches)) { + } elseif (preg_match('/^\[::\]:([\d]+)$/', $addrport, $matches)) { $localhost6[$matches[1]] = 1; } } diff --git a/dns/dnscrypt-proxy/src/opnsense/mvc/app/controllers/OPNsense/Dnscryptproxy/forms/general.xml b/dns/dnscrypt-proxy/src/opnsense/mvc/app/controllers/OPNsense/Dnscryptproxy/forms/general.xml index 9243e2372..7f5d0e853 100644 --- a/dns/dnscrypt-proxy/src/opnsense/mvc/app/controllers/OPNsense/Dnscryptproxy/forms/general.xml +++ b/dns/dnscrypt-proxy/src/opnsense/mvc/app/controllers/OPNsense/Dnscryptproxy/forms/general.xml @@ -11,7 +11,7 @@ select_multiple true - Set the IP address and port combinations this service should listen on, e.g 127.0.0.1:5353 and/or [::1]:5353 + Set the IP address/port combinations this service should listen on. general.allowprivileged diff --git a/dns/dnscrypt-proxy/src/opnsense/mvc/app/models/OPNsense/Dnscryptproxy/General.xml b/dns/dnscrypt-proxy/src/opnsense/mvc/app/models/OPNsense/Dnscryptproxy/General.xml index 3d47b93fd..4dd48bdfd 100644 --- a/dns/dnscrypt-proxy/src/opnsense/mvc/app/models/OPNsense/Dnscryptproxy/General.xml +++ b/dns/dnscrypt-proxy/src/opnsense/mvc/app/models/OPNsense/Dnscryptproxy/General.xml @@ -1,15 +1,15 @@ //OPNsense/dnscryptproxy/general dnscrypt-proxy configuration - 0.1.1 + 0.1.2 0 Y - 127.0.0.1:5353,[::1]:5353 - N + 0.0.0.0:5353,[::]:5353 + Y 0