Support all resolvers
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
%html{lang: "en"}
|
||||
%head
|
||||
%meta{charset: "utf-8"}
|
||||
%title About DNSCrypt
|
||||
%title About DNSCrypt-OSXClient
|
||||
%style{type: "text/css"}
|
||||
:sass
|
||||
body
|
||||
@@ -12,32 +12,27 @@
|
||||
h1
|
||||
margin: 0
|
||||
%body
|
||||
%h1 About DNSCrypt
|
||||
%h1 About DNSCrypt-OSXClient
|
||||
%p
|
||||
This software encrypts and authenticates DNS packets between your computer
|
||||
and OpenDNS. This prevents man-in-the-middle attacks and snooping of DNS
|
||||
traffic by ISPs or others.
|
||||
and a DNS resolver using DNSCrypt.
|
||||
%p
|
||||
Tips:
|
||||
%ul
|
||||
%li If you have a firewall, open TCP and UDP ports 53 and 443.
|
||||
%li
|
||||
The "Fallback to insecure" feature automatically disables
|
||||
DNSCrypt when DNS queries are not able to reach OpenDNS. This usually
|
||||
happens on public WiFi networks that require going through a captive
|
||||
If you have a firewall, open TCP and UDP ports 53, 54, 443
|
||||
and 1053. These are the most common ports used for DNSCrypt.
|
||||
%li
|
||||
The "Automatically disable if blocked" feature automatically disables
|
||||
DNSCrypt when DNS queries are not able to reach the DNSCrypt
|
||||
resolver. This can
|
||||
happen on public WiFi networks that require going through a captive
|
||||
portal before you can access external networks.
|
||||
This function is only provided for conveniency.
|
||||
When enabled, the protocol can be easily downgraded by
|
||||
third-parties. In other words, when the "Fallback to
|
||||
insecure" feature is enabled, this software doesn't
|
||||
third-parties. In other words, when the "Automatically
|
||||
disable if blocked" feature is enabled, this software doesn't
|
||||
provide any security at all against active attackers, but it can
|
||||
still be useful against passive attackers and in order to bypass
|
||||
DNS censorship. Don't enable it unless you are frequently
|
||||
roaming and you don't want to manually disable/enable DNSCrypt.
|
||||
%li
|
||||
The FamilyShield service blocks pornographic content,
|
||||
including OpenDNS "Pornography", "Tasteless" and "Sexuality"
|
||||
categories, in addition to proxies and anonymizers (which can render
|
||||
filtering useless). It also blocks phishing and some malware.
|
||||
%p
|
||||
Please help by providing feedback!
|
||||
|
||||
@@ -1,52 +1,48 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang='en'>
|
||||
<head>
|
||||
<meta charset='utf-8' />
|
||||
<title>About DNSCrypt</title>
|
||||
<meta charset='utf-8'>
|
||||
<title>About DNSCrypt-OSXClient</title>
|
||||
<style type='text/css'>
|
||||
body {
|
||||
font-family: arial, helvetica, sans-serif;
|
||||
margin: 0; }
|
||||
|
||||
h1 {
|
||||
margin: 0; }
|
||||
<style>
|
||||
body {
|
||||
font-family: arial, helvetica, sans-serif;
|
||||
margin: 0; }
|
||||
|
||||
h1 {
|
||||
margin: 0; }
|
||||
</style>
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>About DNSCrypt</h1>
|
||||
<h1>About DNSCrypt-OSXClient</h1>
|
||||
<p>
|
||||
This software encrypts and authenticates DNS packets between your computer
|
||||
and OpenDNS. This prevents man-in-the-middle attacks and snooping of DNS
|
||||
traffic by ISPs or others.
|
||||
and a DNS resolver using DNSCrypt.
|
||||
</p>
|
||||
<p>
|
||||
Tips:
|
||||
<ul>
|
||||
<li>If you have a firewall, open TCP and UDP ports 53 and 443.</li>
|
||||
<li>
|
||||
The "Fallback to insecure" feature automatically disables
|
||||
DNSCrypt when DNS queries are not able to reach OpenDNS. This usually
|
||||
happens on public WiFi networks that require going through a captive
|
||||
If you have a firewall, open TCP and UDP ports 53, 54, 443
|
||||
and 1053. These are the most common ports used for DNSCrypt.
|
||||
</li>
|
||||
<li>
|
||||
The "Automatically disable if blocked" feature automatically disables
|
||||
DNSCrypt when DNS queries are not able to reach the DNSCrypt
|
||||
resolver. This can
|
||||
happen on public WiFi networks that require going through a captive
|
||||
portal before you can access external networks.
|
||||
This function is only provided for conveniency.
|
||||
When enabled, the protocol can be easily downgraded by
|
||||
third-parties. In other words, when the "Fallback to
|
||||
insecure" feature is enabled, this software doesn't
|
||||
third-parties. In other words, when the "Automatically
|
||||
disable if blocked" feature is enabled, this software doesn't
|
||||
provide any security at all against active attackers, but it can
|
||||
still be useful against passive attackers and in order to bypass
|
||||
DNS censorship. Don't enable it unless you are frequently
|
||||
roaming and you don't want to manually disable/enable DNSCrypt.
|
||||
</li>
|
||||
<li>
|
||||
The FamilyShield service blocks pornographic content,
|
||||
including OpenDNS "Pornography", "Tasteless" and "Sexuality"
|
||||
categories, in addition to proxies and anonymizers (which can render
|
||||
filtering useless). It also blocks phishing and some malware.
|
||||
</li>
|
||||
</ul>
|
||||
</p>
|
||||
<p>
|
||||
Please help by providing feedback!
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
h1
|
||||
margin: 0
|
||||
%body
|
||||
%h1 Help(advanced settings)
|
||||
%h1 Help (advanced settings)
|
||||
%section
|
||||
%h2 Static DNS servers
|
||||
%p
|
||||
@@ -57,9 +57,6 @@
|
||||
%h2 Names blocking
|
||||
%p
|
||||
This is a list of domain names to be blocked.
|
||||
%p
|
||||
It doesn't affect your OpenDNS network settings. This is a
|
||||
local blacklist, applied in addition to your OpenDNS settings.
|
||||
%p
|
||||
"example.com" will only match this specific name, not
|
||||
"www.example.com".
|
||||
@@ -77,7 +74,7 @@
|
||||
%p
|
||||
This feature is only enabled when using DNSCrypt.
|
||||
%section
|
||||
%h2 Exceptions - bypassing OpenDNS for some specific names
|
||||
%h2 Exceptions - bypassing DNSCrypt for some specific names
|
||||
%p
|
||||
Some domain names should not be resolved by a third-party DNS
|
||||
resolver, that may not know about them.
|
||||
|
||||
@@ -1,22 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang='en'>
|
||||
<head>
|
||||
<meta charset='utf-8' />
|
||||
<meta charset='utf-8'>
|
||||
<title>Help (advanced settings)</title>
|
||||
<style type='text/css'>
|
||||
html {
|
||||
background: #e4e4e4; }
|
||||
|
||||
body {
|
||||
font-family: arial, helvetica, sans-serif;
|
||||
margin: 1em; }
|
||||
|
||||
h1 {
|
||||
margin: 0; }
|
||||
<style>
|
||||
html {
|
||||
background: #e4e4e4; }
|
||||
|
||||
body {
|
||||
font-family: arial, helvetica, sans-serif;
|
||||
margin: 1em; }
|
||||
|
||||
h1 {
|
||||
margin: 0; }
|
||||
</style>
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Help(advanced settings)</h1>
|
||||
<h1>Help (advanced settings)</h1>
|
||||
<section>
|
||||
<h2>Static DNS servers</h2>
|
||||
<p>
|
||||
@@ -73,10 +75,6 @@
|
||||
<p>
|
||||
This is a list of domain names to be blocked.
|
||||
</p>
|
||||
<p>
|
||||
It doesn't affect your OpenDNS network settings. This is a
|
||||
local blacklist, applied in addition to your OpenDNS settings.
|
||||
</p>
|
||||
<p>
|
||||
"example.com" will only match this specific name, not
|
||||
"www.example.com".
|
||||
@@ -100,7 +98,7 @@
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
<h2>Exceptions - bypassing OpenDNS for some specific names</h2>
|
||||
<h2>Exceptions - bypassing DNSCrypt for some specific names</h2>
|
||||
<p>
|
||||
Some domain names should not be resolved by a third-party DNS
|
||||
resolver, that may not know about them.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
%html{lang: "en"}
|
||||
%head
|
||||
%meta{charset: "utf-8"}
|
||||
%title Release notes for the user interface
|
||||
%title Release notes for DNSCrypt-OSXClient by AlterStep
|
||||
%style{type: "text/css"}
|
||||
:sass
|
||||
body
|
||||
@@ -19,129 +19,17 @@
|
||||
font:
|
||||
style: italic
|
||||
%body
|
||||
%h1 Release Notes for the user interface
|
||||
%h1 Release Notes for DNSCrypt-OSXclient by AlterStep
|
||||
|
||||
%article
|
||||
%h2 Version 0.21 by AlterStep
|
||||
%time Thu, 17 Apr 2014
|
||||
%ul
|
||||
%li Mavericks support
|
||||
%li dnscrypt-proxy 1.4.0
|
||||
|
||||
%article
|
||||
%h2 Version 0.19
|
||||
%time Wed, 10 Oct 2012
|
||||
%ul
|
||||
%li dnscrypt-proxy has been updated to version 1.2.0.
|
||||
%li Detection of IPv6 connectivity is now faster and more reliable.
|
||||
%li
|
||||
AAAA queries are filtered out on networks with no IPv6
|
||||
connectivity in order to significantly reduce latency.
|
||||
%article
|
||||
%h2 Version 0.18
|
||||
%time Wed, 3 Oct 2012
|
||||
%ul
|
||||
%li
|
||||
freebox.fr has been added to the default list of domains
|
||||
for which DNSCrypt should be bypassed.
|
||||
%li
|
||||
If a static resolvers set has been specified, this will now be
|
||||
used for exceptions instead of DHCP-provided servers.
|
||||
%li
|
||||
Minor cosmetic fixes and documentation improvements have been
|
||||
made.
|
||||
|
||||
%article
|
||||
%h2 Version 0.17
|
||||
%time Fri, 28 Sep 2012
|
||||
%ul
|
||||
%li dnscrypt-proxy has been updated to 1.1.0-final.
|
||||
%li The uninstaller is now bundled with the preference pane.
|
||||
%li
|
||||
Static default DNS resolvers can now be used instead of
|
||||
having them provided by a DHCP server.
|
||||
%li
|
||||
Logging: outgoing queries can now be logged and displayed in
|
||||
real time.
|
||||
%li
|
||||
IP-based blocking: DNS responses containing IP addresses
|
||||
present in a user-defined set of addresses can be blocked.
|
||||
%li
|
||||
Pattern-based name blocking: block domain names matching
|
||||
suffixes, prefixes and substrings.
|
||||
%li
|
||||
A list of exceptions that should bypass DNSCrypt and be
|
||||
resolved by a local server can be now specified.
|
||||
|
||||
%article
|
||||
%h2 Version 0.16 released!
|
||||
%time Wed, 19 Sep 2012
|
||||
%ul
|
||||
%li dnscrypt-proxy has been updated to 1.1.0-RC2.
|
||||
%li Support for plugins has been added.
|
||||
%li
|
||||
The system DNS cache is now flushed after a network configuration
|
||||
change.
|
||||
%li
|
||||
The startup scripts can now handle plugins, static DNS
|
||||
configurations and user-defined exceptions lists. These new
|
||||
settings are not accessible through the user interface yet, but can
|
||||
be configured using control files.
|
||||
|
||||
%article
|
||||
%h2 Version 0.15 released!
|
||||
%time Fri, 07 Sep 2012
|
||||
%ul
|
||||
%li dnscrypt-proxy has been updated to 1.1.0-RC1
|
||||
%li
|
||||
Queries for nowtv.com and fritz.com are now bypassing dnscrypt.
|
||||
%li
|
||||
The user interface doesn't update the DNS settings any more when
|
||||
using an interactive shell.
|
||||
|
||||
%article
|
||||
%h2 Version 0.14 released!
|
||||
%time Wed, 08 Aug 2012
|
||||
%ul
|
||||
%li The preference pane can now run on OSX 10.6.
|
||||
|
||||
%article
|
||||
%h2 Version 0.13 released!
|
||||
%time Wed, 08 Aug 2012
|
||||
%ul
|
||||
%li The DNS cache is now flushed after a configuration change.
|
||||
%li
|
||||
The release notes are now bundled with the preference pane.
|
||||
This reduces the startup time and ensures that these notes are
|
||||
consistent with the currently running version.
|
||||
|
||||
%article
|
||||
%h2 Version 0.12 released!
|
||||
%time Mon, 06 Aug 2012
|
||||
%ul
|
||||
%li
|
||||
The "fallback to insecure" mode now properly copes with captive
|
||||
portals and firewalls.
|
||||
%li
|
||||
The TCP/443 checkbox is gone. When the dnscrypt box is
|
||||
checked, it tries everything in parallel and keeps whatever
|
||||
works best.
|
||||
%li
|
||||
IPv6 is fully supported (and automatic. If that works using
|
||||
IPv6, IPv6 is used)
|
||||
%li
|
||||
Familyshield is supported, with and without dnscrypt.
|
||||
%li
|
||||
OpenDNS/DNSCrypt/Familyshield/Fallback settings can be set
|
||||
from the menu bar.
|
||||
%li
|
||||
Internal domain names like routerlogin.net are directly sent
|
||||
to the router or to whatever DNS resolvers the DHCP server provides.
|
||||
%li
|
||||
Packages are signed for Mountain Lion.
|
||||
%li
|
||||
The interface passively watches for network changes according to the
|
||||
current network configuration and the current Wifi access
|
||||
point. It doesn't constantly poll for changes any more.
|
||||
%li
|
||||
The proxy has been updated to version 1.0.1.
|
||||
%h2 Version 1.0 by AlterStep
|
||||
%time Thu, 21 Apr 2014
|
||||
%p
|
||||
This is my first release, based on the source code of the beta
|
||||
version written by OpenDNS.
|
||||
%p
|
||||
It has only been tested on OSX 10.9.
|
||||
%p
|
||||
It includes dnscrypt-proxy 1.4.0, libsodium 0.4.5, libldns 1.6.17.
|
||||
%p
|
||||
Contact me on Github: https://github.com/alterstep/dnscrypt-osx-client
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html lang='en'>
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<title>Release notes for the user interface</title>
|
||||
<title>Release notes for DNSCrypt-OSXClient by AlterStep</title>
|
||||
<style type='text/css'>
|
||||
<style>
|
||||
body {
|
||||
@@ -24,164 +24,23 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Release Notes for the user interface</h1>
|
||||
<h1>Release Notes for DNSCrypt-OSXclient by AlterStep</h1>
|
||||
<article>
|
||||
<h2>Version 0.21 by AlterStep</h2>
|
||||
<time>Thu, 17 Apr 2014</time>
|
||||
<ul>
|
||||
<li>Mavericks support</li>
|
||||
<li>dnscrypt-proxy 1.4.0</li>
|
||||
</ul>
|
||||
</article>
|
||||
<article>
|
||||
<h2>Version 0.19</h2>
|
||||
<time>Wed, 10 Oct 2012</time>
|
||||
<ul>
|
||||
<li>dnscrypt-proxy has been updated to version 1.2.0.</li>
|
||||
<li>Detection of IPv6 connectivity is now faster and more reliable.</li>
|
||||
<li>
|
||||
AAAA queries are filtered out on networks with no IPv6
|
||||
connectivity in order to significantly reduce latency.
|
||||
</li>
|
||||
</ul>
|
||||
</article>
|
||||
<article>
|
||||
<h2>Version 0.18</h2>
|
||||
<time>Wed, 3 Oct 2012</time>
|
||||
<ul>
|
||||
<li>
|
||||
freebox.fr has been added to the default list of domains
|
||||
for which DNSCrypt should be bypassed.
|
||||
</li>
|
||||
<li>
|
||||
If a static resolvers set has been specified, this will now be
|
||||
used for exceptions instead of DHCP-provided servers.
|
||||
</li>
|
||||
<li>
|
||||
Minor cosmetic fixes and documentation improvements have been
|
||||
made.
|
||||
</li>
|
||||
</ul>
|
||||
</article>
|
||||
<article>
|
||||
<h2>Version 0.17</h2>
|
||||
<time>Fri, 28 Sep 2012</time>
|
||||
<ul>
|
||||
<li>dnscrypt-proxy has been updated to 1.1.0-final.</li>
|
||||
<li>The uninstaller is now bundled with the preference pane.</li>
|
||||
<li>
|
||||
Static default DNS resolvers can now be used instead of
|
||||
having them provided by a DHCP server.
|
||||
</li>
|
||||
<li>
|
||||
Logging: outgoing queries can now be logged and displayed in
|
||||
real time.
|
||||
</li>
|
||||
<li>
|
||||
IP-based blocking: DNS responses containing IP addresses
|
||||
present in a user-defined set of addresses can be blocked.
|
||||
</li>
|
||||
<li>
|
||||
Pattern-based name blocking: block domain names matching
|
||||
suffixes, prefixes and substrings.
|
||||
</li>
|
||||
<li>
|
||||
A list of exceptions that should bypass DNSCrypt and be
|
||||
resolved by a local server can be now specified.
|
||||
</li>
|
||||
</ul>
|
||||
</article>
|
||||
<article>
|
||||
<h2>Version 0.16 released!</h2>
|
||||
<time>Wed, 19 Sep 2012</time>
|
||||
<ul>
|
||||
<li>dnscrypt-proxy has been updated to 1.1.0-RC2.</li>
|
||||
<li>Support for plugins has been added.</li>
|
||||
<li>
|
||||
The system DNS cache is now flushed after a network configuration
|
||||
change.
|
||||
</li>
|
||||
<li>
|
||||
The startup scripts can now handle plugins, static DNS
|
||||
configurations and user-defined exceptions lists. These new
|
||||
settings are not accessible through the user interface yet, but can
|
||||
be configured using control files.
|
||||
</li>
|
||||
</ul>
|
||||
</article>
|
||||
<article>
|
||||
<h2>Version 0.15 released!</h2>
|
||||
<time>Fri, 07 Sep 2012</time>
|
||||
<ul>
|
||||
<li>dnscrypt-proxy has been updated to 1.1.0-RC1</li>
|
||||
<li>
|
||||
Queries for nowtv.com and fritz.com are now bypassing dnscrypt.
|
||||
</li>
|
||||
<li>
|
||||
The user interface doesn't update the DNS settings any more when
|
||||
using an interactive shell.
|
||||
</li>
|
||||
</ul>
|
||||
</article>
|
||||
<article>
|
||||
<h2>Version 0.14 released!</h2>
|
||||
<time>Wed, 08 Aug 2012</time>
|
||||
<ul>
|
||||
<li>The preference pane can now run on OSX 10.6.</li>
|
||||
</ul>
|
||||
</article>
|
||||
<article>
|
||||
<h2>Version 0.13 released!</h2>
|
||||
<time>Wed, 08 Aug 2012</time>
|
||||
<ul>
|
||||
<li>The DNS cache is now flushed after a configuration change.</li>
|
||||
<li>
|
||||
The release notes are now bundled with the preference pane.
|
||||
This reduces the startup time and ensures that these notes are
|
||||
consistent with the currently running version.
|
||||
</li>
|
||||
</ul>
|
||||
</article>
|
||||
<article>
|
||||
<h2>Version 0.12 released!</h2>
|
||||
<time>Mon, 06 Aug 2012</time>
|
||||
<ul>
|
||||
<li>
|
||||
The "fallback to insecure" mode now properly copes with captive
|
||||
portals and firewalls.
|
||||
</li>
|
||||
<li>
|
||||
The TCP/443 checkbox is gone. When the dnscrypt box is
|
||||
checked, it tries everything in parallel and keeps whatever
|
||||
works best.
|
||||
</li>
|
||||
<li>
|
||||
IPv6 is fully supported (and automatic. If that works using
|
||||
IPv6, IPv6 is used)
|
||||
</li>
|
||||
<li>
|
||||
Familyshield is supported, with and without dnscrypt.
|
||||
</li>
|
||||
<li>
|
||||
OpenDNS/DNSCrypt/Familyshield/Fallback settings can be set
|
||||
from the menu bar.
|
||||
</li>
|
||||
<li>
|
||||
Internal domain names like routerlogin.net are directly sent
|
||||
to the router or to whatever DNS resolvers the DHCP server provides.
|
||||
</li>
|
||||
<li>
|
||||
Packages are signed for Mountain Lion.
|
||||
</li>
|
||||
<li>
|
||||
The interface passively watches for network changes according to the
|
||||
current network configuration and the current Wifi access
|
||||
point. It doesn't constantly poll for changes any more.
|
||||
</li>
|
||||
<li>
|
||||
The proxy has been updated to version 1.0.1.
|
||||
</li>
|
||||
</ul>
|
||||
<h2>Version 1.0 by AlterStep</h2>
|
||||
<time>Thu, 21 Apr 2014</time>
|
||||
<p>
|
||||
This is my first release, based on the source code of the beta
|
||||
version written by OpenDNS.
|
||||
</p>
|
||||
<p>
|
||||
It has only been tested on OSX 10.9.
|
||||
</p>
|
||||
<p>
|
||||
It includes dnscrypt-proxy 1.4.0, libsodium 0.4.5, libldns 1.6.17.
|
||||
</p>
|
||||
<p>
|
||||
Contact me on Github: https://github.com/alterstep/dnscrypt-osx-client
|
||||
</p>
|
||||
</article>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 362 B |
@@ -9,8 +9,8 @@ try_resolution() {
|
||||
|
||||
try_http_query() {
|
||||
exec alarmer 5 curl -L --max-redirs 5 -4 -m 5 \
|
||||
http://guide.opendns.com/main 2>/dev/null | \
|
||||
fgrep -ic OpenDNS > /dev/null 2>&1
|
||||
http://www.apple.com 2>/dev/null | \
|
||||
fgrep -c Apple > /dev/null 2>&1
|
||||
}
|
||||
|
||||
try_everything() {
|
||||
|
||||
@@ -10,9 +10,8 @@ DNSCRYPT_PROXY_BASE_DIR="${DNSCRYPT_VAR_BASE_DIR}/dnscrypt-proxy"
|
||||
PROXY_PID_FILE="/var/run/dnscrypt-proxy.pid"
|
||||
STATES_DIR="${DNSCRYPT_VAR_BASE_DIR}/states"
|
||||
|
||||
DNSCRYPT_RESOLVER_NAME_FILE="${CONTROL_DIR}/dnscrypt-resolver-name"
|
||||
DNSCRYPT_FILE="${CONTROL_DIR}/dnscrypt"
|
||||
FAMILYSHIELD_FILE="${CONTROL_DIR}/familyshield"
|
||||
INSECURE_OPENDNS_FILE="${CONTROL_DIR}/insecure-opendns"
|
||||
FALLBACK_FILE="${CONTROL_DIR}/fallback"
|
||||
HANDLERS_LOCK_FILE="/var/run/dnscrypt-handlers.lock"
|
||||
DNSCRYPT_PROXY_PLUGINS_BASE_FILE="${CONTROL_DIR}/plugin"
|
||||
@@ -30,6 +29,8 @@ BLACKLIST_DOMAINS_TMP_FILE="${BLACKLIST_DOMAINS_FILE}.tmp"
|
||||
EXCEPTIONS_FILE="${CONTROL_DIR}/exceptions"
|
||||
EXCEPTIONS_TMP_FILE="${EXCEPTIONS_FILE}.tmp"
|
||||
|
||||
DEFAULT_RESOLVER_NAME='opendns'
|
||||
|
||||
INTERFACE_UNBOUND="127.0.0.53"
|
||||
INTERFACE_UNBOUND_MASK="24"
|
||||
INTERFACE_PROXY="127.0.0.54"
|
||||
@@ -37,9 +38,6 @@ INTERFACE_PROXY_MASK="24"
|
||||
INTERFACE_PROBES="127.0.0.55"
|
||||
INTERFACE_PROBES_MASK="24"
|
||||
|
||||
PROVIDER_NAME='2.dnscrypt-cert.opendns.com'
|
||||
PROVIDER_KEY='B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79'
|
||||
|
||||
DOMAINS_EXCEPTIONS='
|
||||
freebox.fr fritz.box intranet lan localdomain nowtv.com private routerlogin.net l
|
||||
'
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
#! /bin/sh
|
||||
|
||||
. ./common.inc
|
||||
|
||||
[ -r "$DNSCRYPT_RESOLVER_NAME_FILE" ] && \
|
||||
sed 's/[^a-zA-Z0-9.-]/_/g' < "$DNSCRYPT_RESOLVER_NAME_FILE" && exit 0
|
||||
echo "$DEFAULT_RESOLVER_NAME"
|
||||
exit 0
|
||||
@@ -1,9 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
. ./common.inc
|
||||
|
||||
if [ -e "$FAMILYSHIELD_FILE" ]; then
|
||||
echo 'yes'
|
||||
else
|
||||
echo 'no'
|
||||
fi
|
||||
@@ -1,9 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
. ./common.inc
|
||||
|
||||
if [ -e "$INSECURE_OPENDNS_FILE" ]; then
|
||||
echo 'yes'
|
||||
else
|
||||
echo 'no'
|
||||
fi
|
||||
@@ -10,24 +10,6 @@ name='None'
|
||||
level=0
|
||||
while read resolver; do
|
||||
case "$resolver" in
|
||||
208.67.222.123|208.67.220.123)
|
||||
if [ $level -le 70 ]; then
|
||||
name='FamilyShield'
|
||||
level=70
|
||||
fi
|
||||
;;
|
||||
208.67.*)
|
||||
if [ $level -le 40 ]; then
|
||||
name='OpenDNS'
|
||||
level=40
|
||||
fi
|
||||
;;
|
||||
2620:0:*)
|
||||
if [ $level -le 50 ]; then
|
||||
name='OpenDNS IPv6'
|
||||
level=50
|
||||
fi
|
||||
;;
|
||||
127.0.0.5*)
|
||||
if [ $level -le 80 ]; then
|
||||
name='DNSCrypt'
|
||||
@@ -48,7 +30,7 @@ while read resolver; do
|
||||
;;
|
||||
*)
|
||||
if [ $level -le 10 ]; then
|
||||
name='Insecure'
|
||||
name='Default'
|
||||
level=10
|
||||
fi
|
||||
;;
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
. ./common.inc
|
||||
|
||||
opendns='no'
|
||||
dnscrypt_proxy_used='no'
|
||||
upstream_resolvers=''
|
||||
while read resolver; do
|
||||
case "$resolver" in
|
||||
127.0.0.5*)
|
||||
opendns='yes'
|
||||
dnscrypt_proxy_used='yes'
|
||||
;;
|
||||
esac
|
||||
if [ x"$upstream_resolvers" = 'x' ]; then
|
||||
@@ -17,7 +17,7 @@ while read resolver; do
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$opendns" = 'yes' \
|
||||
if [ "$dnscrypt_proxy_used" = 'yes' \
|
||||
-a -r "${STATES_DIR}/dnscrypt-proxy-description" ]; then
|
||||
cat "${STATES_DIR}/dnscrypt-proxy-description" && exit 0
|
||||
fi
|
||||
|
||||
@@ -14,9 +14,6 @@ if [ -r "$STATIC_RESOLVERS_FILE" ]; then
|
||||
[ -z "$servers" ] && servers='empty'
|
||||
fi
|
||||
|
||||
[ -e "$INSECURE_OPENDNS_FILE" ] && servers='208.67.220.220'
|
||||
[ -e "$FAMILYSHIELD_FILE" ] && servers='208.67.220.123'
|
||||
|
||||
exec networksetup -listallnetworkservices 2>/dev/null | \
|
||||
fgrep -v '*' | while read x ; do
|
||||
networksetup -setdnsservers "$x" $servers
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
#! /bin/sh
|
||||
|
||||
. ./common.inc
|
||||
|
||||
[ $# -lt 1 ] && exit 1
|
||||
|
||||
resolver_name="$1"
|
||||
|
||||
if [ "$resolver_name" = "" ]; then
|
||||
rm -f "$DNSCRYPT_RESOLVER_NAME_FILE"
|
||||
else
|
||||
echo "$resolver_name" | sed 's/^ *//;s/ *$//' \
|
||||
> "$DNSCRYPT_RESOLVER_NAME_FILE"
|
||||
fi
|
||||
@@ -22,6 +22,8 @@ mkdir -p -- "$DESCRIPTIONS_DIR" || exit 1
|
||||
PID_DIR="${PROBES_BASE_DIR}/pids" || exit 1
|
||||
mkdir -p -- "$PID_DIR" || exit 1
|
||||
|
||||
RESOLVER_NAME=$(./get-dnscrypt-resolver-name.sh) || exit 1
|
||||
|
||||
try_resolver() {
|
||||
local priority="$1"
|
||||
shift
|
||||
@@ -32,14 +34,14 @@ try_resolver() {
|
||||
|
||||
rm -f "${RES_DIR}/${priority}"
|
||||
exec alarmer 3 dnscrypt-proxy --pid="$pid_file" \
|
||||
--provider-name="$PROVIDER_NAME" --provider-key="$PROVIDER_KEY" \
|
||||
--resolver-name="$RESOLVER_NAME" \
|
||||
--local-address="${INTERFACE_PROBES}:${priority}" $args 2>&1 | \
|
||||
while read line; do
|
||||
case "$line" in
|
||||
*Proxying\ from\ *)
|
||||
answers=$(exec dig +time=1 +short +tries=2 -p $priority \
|
||||
TXT @"$INTERFACE_PROBES" debug.opendns.com. 2> /dev/null | \
|
||||
fgrep -ic 'dnscrypt enabled')
|
||||
@"$INTERFACE_PROBES" www.apple.com. 2> /dev/null | \
|
||||
egrep -ic '^[0-9.:]+$')
|
||||
[ -r "$pid_file" ] && kill $(cat -- "$pid_file")
|
||||
if [ $answers -gt 0 ]; then
|
||||
echo "$args" > "${RES_DIR}/${priority}"
|
||||
@@ -73,49 +75,14 @@ if [ x"$DISABLE_IPV6" = "xno" ]; then
|
||||
[ $? = 0 ] && ipv6_supported="yes"
|
||||
fi
|
||||
|
||||
familyshield_wanted="no"
|
||||
[ -r "$FAMILYSHIELD_FILE" ] && familyshield_wanted="yes"
|
||||
|
||||
wait_pids=""
|
||||
if [ x"$familyshield_wanted" = "xyes" ]; then
|
||||
try_resolver 4000 'FamilyShield using DNSCrypt on UDP port 443' \
|
||||
"--resolver-address=208.67.220.123:443" &
|
||||
wait_pids="$wait_pids $!"
|
||||
try_resolver 4001 'FamilyShield using DNSCrypt on UDP port 53' \
|
||||
"--resolver-address=208.67.220.123:53" &
|
||||
wait_pids="$wait_pids $!"
|
||||
try_resolver 4002 'FamilyShield using DNSCrypt on TCP port 443' \
|
||||
"--resolver-address=208.67.220.123:443 --tcp-only" &
|
||||
wait_pids="$wait_pids $!"
|
||||
try_resolver 4003 'FamilyShield using DNSCrypt on TCP port 53' \
|
||||
"--resolver-address=208.67.220.123:53 --tcp-only" &
|
||||
wait_pids="$wait_pids $!"
|
||||
fi
|
||||
if [ x"$ipv6_supported" = "xyes" ]; then
|
||||
try_resolver 5000 'OpenDNS IPv6 using DNSCrypt on UDP port 443' \
|
||||
"--resolver-address=[2620:0:ccc::2]:443" &
|
||||
wait_pids="$wait_pids $!"
|
||||
try_resolver 5001 'OpenDNS IPv6 using DNSCrypt on UDP port 53' \
|
||||
"--resolver-address=[2620:0:ccc::2]:53" &
|
||||
wait_pids="$wait_pids $!"
|
||||
try_resolver 5002 'OpenDNS IPv6 using DNSCrypt on TCP port 443' \
|
||||
"--resolver-address=[2620:0:ccc::2]:443 --tcp-only" &
|
||||
wait_pids="$wait_pids $!"
|
||||
try_resolver 5003 'OpenDNS IPv6 using DNSCrypt on TCP port 53' \
|
||||
"--resolver-address=[2620:0:ccc::2]:53 --tcp-only" &
|
||||
wait_pids="$wait_pids $!"
|
||||
fi
|
||||
try_resolver 5004 'OpenDNS using DNSCrypt on UDP port 443' \
|
||||
"--resolver-address=208.67.220.220:443" &
|
||||
|
||||
try_resolver 5004 "${RESOLVER_NAME} using DNSCrypt on UDP" \
|
||||
"--resolver-name=$RESOLVER_NAME" &
|
||||
wait_pids="$wait_pids $!"
|
||||
try_resolver 5005 'OpenDNS using DNSCrypt on UDP port 53' \
|
||||
"--resolver-address=208.67.220.220:53" &
|
||||
wait_pids="$wait_pids $!"
|
||||
try_resolver 5006 'OpenDNS using DNSCrypt on TCP port 443' \
|
||||
"--resolver-address=208.67.220.220:443 --tcp-only" &
|
||||
wait_pids="$wait_pids $!"
|
||||
try_resolver 5007 'OpenDNS using DNSCrypt on TCP port 53' \
|
||||
"--resolver-address=208.67.220.220:53 --tcp-only" &
|
||||
|
||||
try_resolver 5005 "${RESOLVER_NAME} using DNSCrypt on TCP" \
|
||||
"--resolver-name=$RESOLVER_NAME --tcp-only" &
|
||||
wait_pids="$wait_pids $!"
|
||||
|
||||
for pid in $wait_pids; do
|
||||
@@ -136,7 +103,7 @@ fi
|
||||
best_args=$(cat "${RES_DIR}/${best_file}")
|
||||
|
||||
eval dnscrypt-proxy $best_args --local-address="$INTERFACE_PROXY" \
|
||||
--provider-name="$PROVIDER_NAME" --provider-key="$PROVIDER_KEY" \
|
||||
--resolver-name="$RESOLVER_NAME" \
|
||||
--pidfile="$PROXY_PID_FILE" --user=daemon --daemonize $plugin_args
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
@@ -148,7 +115,7 @@ if [ $? != 0 ]; then
|
||||
killall -9 dnscrypt-proxy
|
||||
sleep 1
|
||||
eval dnscrypt-proxy $best_args --local-address="$INTERFACE_PROXY" \
|
||||
--provider-name="$PROVIDER_NAME" --provider-key="$PROVIDER_KEY" \
|
||||
--resolver-name="$RESOLVER_NAME" \
|
||||
--pidfile="$PROXY_PID_FILE" --user=daemon --daemonize $plugin_args || \
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
. ./common.inc
|
||||
|
||||
rm -f "$FAMILYSHIELD_FILE"
|
||||
@@ -1,5 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
. ./common.inc
|
||||
|
||||
touch "$FAMILYSHIELD_FILE"
|
||||
@@ -1,5 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
. ./common.inc
|
||||
|
||||
rm -f "$INSECURE_OPENDNS_FILE"
|
||||
@@ -1,5 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
. ./common.inc
|
||||
|
||||
touch "$INSECURE_OPENDNS_FILE"
|
||||
@@ -8,7 +8,8 @@ if [ ! -s "$BLACKLIST_DOMAINS_TMP_FILE" ]; then
|
||||
fi
|
||||
|
||||
tr -s '[:blank:]' '\n' < "$BLACKLIST_DOMAINS_TMP_FILE" | \
|
||||
egrep -vi 'opendns[.]com$' > "${BLACKLIST_DOMAINS_TMP_FILE}~" &&
|
||||
egrep -vi '^(apple[.]com|resolver1[.]opendns[.]com)$' > \
|
||||
"${BLACKLIST_DOMAINS_TMP_FILE}~" &&
|
||||
mv "${BLACKLIST_DOMAINS_TMP_FILE}~" "$BLACKLIST_DOMAINS_FILE"
|
||||
|
||||
exec ./switch-blacklists-on.sh
|
||||
|
||||
Reference in New Issue
Block a user