Skip to content

Commit

Permalink
Updated dnscrypt-proxy settings for 2.0.42
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbeans committed Apr 11, 2020
1 parent 4b77f98 commit 191d75f
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 3 deletions.
15 changes: 14 additions & 1 deletion SimpleDnsCrypt/Helper/PatchHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using SimpleDnsCrypt.Config;
using SimpleDnsCrypt.Models;

namespace SimpleDnsCrypt.Helper
Expand Down Expand Up @@ -60,8 +62,14 @@ public static bool Patch()
if (version.Equals("0.7.1"))
{
//changed: ignore_system_dns = true
//changed: block_unqualified = true
//changed: block_undelegated = true
//added: broken_implementations
//added: fallback_resolvers (instead of fallback_resolver)
DnscryptProxyConfigurationManager.DnscryptProxyConfiguration.ignore_system_dns = true;
DnscryptProxyConfigurationManager.DnscryptProxyConfiguration.block_unqualified = true;
DnscryptProxyConfigurationManager.DnscryptProxyConfiguration.block_undelegated = true;
DnscryptProxyConfigurationManager.DnscryptProxyConfiguration.fallback_resolvers = new ObservableCollection<string>(Global.DefaultFallbackResolvers);
var sources = DnscryptProxyConfigurationManager.DnscryptProxyConfiguration.sources;
if (!sources.ContainsKey("relays"))
{
Expand All @@ -79,7 +87,12 @@ public static bool Patch()
DnscryptProxyConfigurationManager.DnscryptProxyConfiguration.broken_implementations =
new BrokenImplementations
{
broken_query_padding = new List<string> { "cisco", "cisco-ipv6", "cisco-familyshield" }
//broken_query_padding = new List<string> { "cisco", "cisco-ipv6", "cisco-familyshield" },
fragments_blocked = new List<string> { "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" }
};
return DnscryptProxyConfigurationManager.SaveConfiguration();
}
Expand Down
25 changes: 25 additions & 0 deletions SimpleDnsCrypt/Models/DnscryptProxyConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ public class AnonymizedDns : PropertyChangedBase
}

private List<Route> _routes;
private bool _skip_incompatible;

public List<Route> routes
{
Expand All @@ -799,6 +800,19 @@ public List<Route> routes
NotifyOfPropertyChange(() => _routes);
}
}

/// <summary>
/// skip resolvers incompatible with anonymization instead of using them directly.
/// </summary>
public bool skip_incompatible
{
get => _skip_incompatible;
set
{
_skip_incompatible = value;
NotifyOfPropertyChange(() => skip_incompatible);
}
}
}

public class BrokenImplementations : PropertyChangedBase
Expand All @@ -811,6 +825,7 @@ public class BrokenImplementations : PropertyChangedBase
}

private List<string> _broken_query_padding;
private List<string> _fragments_blocked;

public List<string> broken_query_padding
{
Expand All @@ -821,6 +836,16 @@ public List<string> broken_query_padding
NotifyOfPropertyChange(() => broken_query_padding);
}
}

public List<string> fragments_blocked
{
get => _fragments_blocked;
set
{
_fragments_blocked = value;
NotifyOfPropertyChange(() => fragments_blocked);
}
}
}

public class Route : PropertyChangedBase
Expand Down
3 changes: 3 additions & 0 deletions SimpleDnsCrypt/SimpleDnsCrypt.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,9 @@
<PackageReference Include="helper-net">
<Version>0.2.0</Version>
</PackageReference>
<PackageReference Include="libsodium-net">
<Version>0.10.0</Version>
</PackageReference>
<PackageReference Include="MahApps.Metro">
<Version>1.6.5</Version>
</PackageReference>
Expand Down
1 change: 0 additions & 1 deletion SimpleDnsCrypt/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ public void OnClose(CancelEventArgs cancelEventArgs)
}
}



/// <summary>
/// The title of the window.
Expand Down
3 changes: 2 additions & 1 deletion SimpleDnsCrypt/dnscrypt-proxy/dnscrypt-proxy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ format = 'ltsv'
[ip_blacklist]

[broken_implementations]
broken_query_padding = ['cisco', 'cisco-ipv6', 'cisco-familyshield']
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']

[anonymized_dns]
skip_incompatible = false

[sources]

Expand Down
Binary file modified img/preview/querylog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 191d75f

Please sign in to comment.