diff options
| author | Ian Bashford <ianbashford@gmail.com> | 2020-03-26 21:34:20 +0000 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2020-03-26 22:12:23 +0000 |
| commit | ae8a8ebdae962d40e0afa9c56fdcc78e644612b0 (patch) | |
| tree | a3fc4aa3db4cedab569139d29bfdd3c724da2867 /community/dnscrypt-proxy/config-full-paths.patch | |
| parent | e9f050615af5846f0e3c1b4d341fb6336cf3745c (diff) | |
| download | aports-ae8a8ebdae962d40e0afa9c56fdcc78e644612b0.tar.bz2 aports-ae8a8ebdae962d40e0afa9c56fdcc78e644612b0.tar.xz | |
community/dnscrypt-proxy: upgrade to 2.0.42
Diffstat (limited to 'community/dnscrypt-proxy/config-full-paths.patch')
| -rw-r--r-- | community/dnscrypt-proxy/config-full-paths.patch | 74 |
1 files changed, 49 insertions, 25 deletions
diff --git a/community/dnscrypt-proxy/config-full-paths.patch b/community/dnscrypt-proxy/config-full-paths.patch index b5c0d773bb..6f8e3c3431 100644 --- a/community/dnscrypt-proxy/config-full-paths.patch +++ b/community/dnscrypt-proxy/config-full-paths.patch @@ -27,10 +27,12 @@ index 0000000..6f4282a +## Servers from the "public-resolvers" source (see down below) can +## be viewed here: https://dnscrypt.info/public-servers +## -+## If this line is commented, all registered servers matching the require_* filters -+## will be used. ++## The proxy will automatically pick working servers from this list. ++## Note that the require_* filters do NOT apply when using this setting. ++## ++## By default, this list is empty and all registered servers matching the ++## require_* filters will be used instead. +## -+## The proxy will automatically pick the fastest, working servers from the list. +## Remove the leading # first to enable this; lines starting with # are ignored. + +# server_names = ['scaleway-fr', 'google', 'yandex', 'cloudflare'] @@ -198,12 +200,12 @@ index 0000000..6f4282a +## They will never be used if lists have already been cached, and if stamps +## don't include host names without IP addresses. +## They will not be used if the configured system DNS works. -+## Resolver supporting DNSSEC are recommended. ++## Resolvers supporting DNSSEC are recommended. +## +## People in China may need to use 114.114.114.114:53 here. +## Other popular options include 8.8.8.8 and 1.1.1.1. +## -+## If more than one resolver are specified, they will be tried in sequence. ++## If more than one resolver is specified, they will be tried in sequence. + +fallback_resolvers = ['9.9.9.9:53', '8.8.8.8:53'] + @@ -245,8 +247,10 @@ index 0000000..6f4282a +## These strings will be added as TXT records to queries. +## Do not use, except on servers explicitly asking for extra data +## to be present. ++## encrypted-dns-server can be configured to use this for access control ++## in the [access_control] section + -+# query_meta = ["key1:value1", "key2:value2", "key3:value3"] ++# query_meta = ["key1:value1", "key2:value2", "token:MySecretToken"] + + +## Automatic log files rotation @@ -269,7 +273,7 @@ index 0000000..6f4282a +## Note: if you are using dnsmasq, disable the `dnssec` option in dnsmasq if you +## configure dnscrypt-proxy to do any kind of filtering (including the filters +## below and blacklists). -+## But you can still choose resolvers that do DNSSEC validation. ++## You can still choose resolvers that do DNSSEC validation. + + +## Immediately respond to IPv6-related queries with an empty response @@ -301,9 +305,7 @@ index 0000000..6f4282a +# Route queries for specific domains to a dedicated set of servers # +################################################################################## + -+## Example map entries (one entry per line): -+## example.com 9.9.9.9 -+## example.net 9.9.9.9,8.8.8.8,1.1.1.1 ++## See `/usr/share/dnscrypt-proxy/example-forwarding-rules.txt` file for an example + +# forwarding_rules = '/etc/dnscrypt-proxy/forwarding-rules.txt' + @@ -317,9 +319,7 @@ index 0000000..6f4282a +## In addition to acting as a HOSTS file, it can also return the IP address +## of a different name. It will also do CNAME flattening. +## -+## Example map entries (one entry per line) -+## example.com 10.1.1.1 -+## www.google.com forcesafesearch.google.com ++## See `/usr/share/dnscrypt-proxy/example-cloaking-rules.txt` file for an example + +# cloaking_rules = '/etc/dnscrypt-proxy/cloaking-rules.txt' + @@ -403,7 +403,7 @@ index 0000000..6f4282a +[query_log] + + ## Path to the query log file (absolute, or relative to the same directory as the config file) -+ ## Non non-Windows systems, can be /dev/stdout to log to the standard output (and set log_files_max_size to 0) ++ ## On non-Windows systems, can be /dev/stdout to log to the standard output (also set log_files_max_size to 0) + + # file = '/var/log/dnscrypt-proxy/query.log' + @@ -541,8 +541,7 @@ index 0000000..6f4282a +## +## For example, the following rule in a blacklist file: +## *.youtube.* @time-to-sleep -+## would block access to YouTube only during the days, and period of the days -+## define by the 'time-to-sleep' schedule. ++## would block access to YouTube during the times defined by the 'time-to-sleep' schedule. +## +## {after='21:00', before= '7:00'} matches 0:00-7:00 and 21:00-0:00 +## {after= '9:00', before='18:00'} matches 9:00-18:00 @@ -583,7 +582,7 @@ index 0000000..6f4282a +## must include the prefixes. +## +## If the `urls` property is missing, cache files and valid signatures -+## must be already present; This doesn't prevent these cache files from ++## must already be present. This doesn't prevent these cache files from +## expiring after `refresh_delay` hours. + +[sources] @@ -623,7 +622,6 @@ index 0000000..6f4282a + + + -+ +######################################### +# Servers with known bugs # +######################################### @@ -632,12 +630,31 @@ index 0000000..6f4282a + +# Cisco servers currently cannot handle queries larger than 1472 bytes, and don't +# truncate reponses larger than questions as expected by the DNSCrypt protocol. -+# This prevents large responses from being received, and breaks relaying. -+# A workaround for the first issue will be applied to servers in list below. -+# Do not change that list until the bugs are fixed server-side. ++# This prevents large responses from being received over UDP and over relays. ++# ++# The `dnsdist` server software drops client queries larger than 1500 bytes. ++# They are aware of it and are working on a fix. ++# ++# The list below enables workarounds to make non-relayed usage more reliable ++# until the servers are fixed. ++ ++fragments_blocked = ['cisco', 'cisco-ipv6', 'cisco-familyshield', 'cisco-familyshield-ipv6', 'quad9-dnscrypt-ip4-filter-alt', 'quad9-dnscrypt-ip4-filter-pri', 'quad9-dnscrypt-ip4-nofilter-alt', 'quad9-dnscrypt-ip4-nofilter-pri', 'quad9-dnscrypt-ip6-filter-alt', 'quad9-dnscrypt-ip6-filter-pri', 'quad9-dnscrypt-ip6-nofilter-alt', 'quad9-dnscrypt-ip6-nofilter-pri', 'cleanbrowsing-adult', 'cleanbrowsing-family-ipv6', 'cleanbrowsing-family', 'cleanbrowsing-security'] ++ ++ ++ ++ ++################################ ++# TLS Client Authentication # ++################################ ++ ++# This is only useful if you are operating your own, private DoH server(s). ++# (for DNSCrypt, see the `query_meta` feature instead) + -+broken_query_padding = ['cisco', 'cisco-ipv6', 'cisco-familyshield'] ++[tls_client_auth] + ++# creds = [ ++# { server_name='myserver', client_cert='client.crt', client_key='client.key' } ++# ] + + + @@ -661,13 +678,13 @@ index 0000000..6f4282a +## +## !!! THESE ARE JUST EXAMPLES !!! +## -+## Review the list of available relays from the "relays.md` file, and, for each ++## Review the list of available relays from the "relays.md" file, and, for each +## server you want to use, define the relays you want connections to go through. +## -+## Carefully choose relays and servers so that the are run by different entities. ++## Carefully choose relays and servers so that they are run by different entities. +## +## "server_name" can also be set to "*" to define a default route, but this is not -+## recommended. if you do so, keep "server_names" short and distinct from relays. ++## recommended. If you do so, keep "server_names" short and distinct from relays. + +# routes = [ +# { server_name='example-server-1', via=['anon-example-1', 'anon-example-2'] }, @@ -675,6 +692,13 @@ index 0000000..6f4282a +# ] + + ++# skip resolvers incompatible with anonymization instead of using them directly ++ ++skip_incompatible = false ++ ++ ++ ++ +## Optional, local, static list of additional servers +## Mostly useful for testing your own servers. + |
