{"id":847,"date":"2018-10-31T10:29:00","date_gmt":"2018-10-31T06:29:00","guid":{"rendered":"http:\/\/blog.5flor.ru\/?p=847"},"modified":"2019-01-09T14:58:34","modified_gmt":"2019-01-09T10:58:34","slug":"dnscrypt-proxy-%d0%bd%d0%b0-mint","status":"publish","type":"post","link":"https:\/\/blog.5flor.ru\/?p=847","title":{"rendered":"dnscrypt-proxy \u043d\u0430 mint"},"content":{"rendered":"<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<p>add-apt-repository ppa:shevchuk\/dnscrypt-proxy<\/p>\n<p>apt update<\/p>\n<p>apt install\u00a0dnscrypt-proxy<\/p>\n<p>\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/dnsproxy-crypt\/dnsproxy-crypt.toml \u0440\u0430\u0441\u0441\u043a\u043e\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 c \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438 server_names.<\/p>\n<p>\u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c dns 127.0.2.1<\/p>\n<h3 class=\"first\"><a href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=270777#p1478541\">Mint 19 DNSCrypt Install Tutorial<\/a><\/h3>\n<ul class=\"post-buttons\">\n<li><\/li>\n<\/ul>\n<div class=\"inner\">\n<div class=\"postbody\">\n<div id=\"post_content1478541\">\n<p class=\"author\"><a class=\"unread\" title=\"Post\" href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?p=1478541&amp;sid=d83a2f094e76e86f0619410249265e99#p1478541\"> <i class=\"icon fa-file fa-fw icon-lightgray icon-md\" aria-hidden=\"true\"><\/i><span class=\"sr-only\">Post<\/span> <\/a> <span class=\"responsive-hide\">by <strong><a class=\"username\" href=\"https:\/\/forums.linuxmint.com\/memberlist.php?mode=viewprofile&amp;u=86987&amp;sid=d83a2f094e76e86f0619410249265e99\">JeffF73<\/a><\/strong> \u00bb <\/span>Fri Jun 08, 2018 4:12 am<\/p>\n<div class=\"content\">Finally after fighting with DNSCrypt-proxy installs not working I found a solution that has worked well for me on several different installs and systems. Running Linux Mint Cinnamon 19<\/p>\n<p>Here is the website that I give credit to for step by step instructions that helped me get to a working state with DNSCrypt with some step by step modifications and changes below.<br \/>\n<a class=\"postlink\" href=\"http:\/\/www.ubuntubuzz.com\/2017\/11\/how-to-install-dnscrypt-on-ubuntu-1710.html\">http:\/\/www.ubuntubuzz.com\/2017\/11\/how-t &#8230; -1710.html<\/a><\/p>\n<p><strong class=\"text-strong\">Before proceeding you might want to Backup with Timeshift for safety and fast way to get back if there is a problem<\/strong><\/p>\n<p><strong class=\"text-strong\">#1. Install DNSCrypt<\/strong><\/p>\n<div class=\"codebox\" translate=\"no\">\n<p>Code: <a href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=270777#\">Select all<\/a><\/p>\n<pre><code>sudo apt-get install dnscrypt-proxy -y<\/code><\/pre>\n<\/div>\n<p><strong class=\"text-strong\">#2. Install your favorite text editor<\/strong><\/p>\n<div class=\"codebox\" translate=\"no\">\n<p>Code: <a href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=270777#\">Select all<\/a><\/p>\n<pre><code>sudo apt-get install xed -y<\/code><\/pre>\n<\/div>\n<p><strong class=\"text-strong\">#3. Change Resolver to &#8216;cisco&#8217;<\/strong><br \/>\nChange the text &#171;ResolverName fvz-anyone&#187; to ResolverName cisco<br \/>\nIf you have issues with this code changing the ResolverName like I did you can use sudo xed \/etc\/dnscrypt-proxy\/dnscrypt-proxy.conf and manually change it to your prefrerence<\/p>\n<div class=\"codebox\" translate=\"no\">\n<p>Code: <a href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=270777#\">Select all<\/a><\/p>\n<pre><code>sudo sed -i 's\/fvz-anyone\/cisco\/g' \/etc\/dnscrypt-proxy\/dnscrypt-proxy.conf<\/code><\/pre>\n<\/div>\n<p><strong class=\"text-strong\">#4. Change DNSCrypt Local IP and Port<\/strong><br \/>\nThese codes Change 127.0.2.1 to 127.0.0.1 on both sockets in dnscrypt-proxy.socket.<br \/>\nIf you have issues with these codes changing the DNS and port like I did you can use sudo xed \/lib\/systemd\/system\/dnscrypt-proxy.socket and manually change it to your prefrerence Credit to the fixed code goes to naishoya @ <a class=\"postlink\" href=\"https:\/\/gist.github.com\/anonymous\/a8e04f03bdcab5b598aee18cbfedd60a\">https:\/\/gist.github.com\/anonymous\/a8e04 &#8230; 8cbfedd60a<\/a><\/p>\n<div class=\"codebox\" translate=\"no\">\n<p>Code: <a href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=270777#\">Select all<\/a><\/p>\n<pre><code>sudo grep '127' \/lib\/systemd\/system\/dnscrypt-proxy.socket\nsudo sed -i 's\/127.0.2.1:53\/127.0.0.1:53\/g' \/lib\/systemd\/system\/dnscrypt-proxy.socket\nsudo grep '127' \/lib\/systemd\/system\/dnscrypt-proxy.socket<\/code><\/pre>\n<\/div>\n<p><strong class=\"text-strong\">#5. Reload Daemon for DNSCrypt Configuration<\/strong><\/p>\n<div class=\"codebox\" translate=\"no\">\n<p>Code: <a href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=270777#\">Select all<\/a><\/p>\n<pre><code>sudo systemctl daemon-reload<\/code><\/pre>\n<\/div>\n<p><strong class=\"text-strong\">#6. Restart DNSCrypt Service<\/strong><\/p>\n<div class=\"codebox\" translate=\"no\">\n<p>Code: <a href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=270777#\">Select all<\/a><\/p>\n<pre><code>sudo systemctl stop dnscrypt-proxy.socket\nsudo systemctl start dnscrypt-proxy<\/code><\/pre>\n<\/div>\n<p><strong class=\"text-strong\">#7. Disable Default System&#8217;s DNS Service<\/strong><\/p>\n<div class=\"codebox\" translate=\"no\">\n<p>Code: <a href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=270777#\">Select all<\/a><\/p>\n<pre><code>sudo systemctl disable systemd-resolved.service\nsudo rm -v \/etc\/resolv.conf\nsudo systemctl stop systemd-resolved.service<\/code><\/pre>\n<\/div>\n<p><strong class=\"text-strong\">#8. Network Manager will recreate \/etc\/resolv.conf after a restart. This issue will prevent DNSCrypt working after a restart. <\/strong><br \/>\nThe fix was posted on the previous website in the comments section. Credit goes to genzj and Ngalim Siregar<br \/>\nTo prevent Network Manager create \/etc\/resolv.conf after restart you can add dns=none in \/etc\/NetworkManager\/NetworkManager.conf in [main].<\/p>\n<div class=\"codebox\" translate=\"no\">\n<p>Code: <a href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=270777#\">Select all<\/a><\/p>\n<pre><code>sudo xed \/etc\/NetworkManager\/NetworkManager.conf<\/code><\/pre>\n<\/div>\n<p><strong class=\"text-strong\">#9. Now go to your Network Manager &#171;Wifi or Ethernet connection&#187;<\/strong><br \/>\nTo edit your connection and go to &#171;IPV4 Settings&#187; Tab<br \/>\nMethod: Change from &#171;Automatic (DHCP)&#187; to &#171;Automatic (DHCP) Address Only&#187;<br \/>\nGo down to DNS Servers: Add &#171;127.0.0.1&#187; without quotes (Note: If you changed the DNS IP to your own preferred preference in step #4. Change DNSCrypt Local IP you will need to match it here in Network Manager)<\/p>\n<p><strong class=\"text-strong\">#10. Restart Network Manager<\/strong><\/p>\n<div class=\"codebox\" translate=\"no\">\n<p>Code: <a href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=270777#\">Select all<\/a><\/p>\n<pre><code>sudo service dnscrypt-proxy start\nsudo service network-manager restart\nsudo systemctl restart NetworkManager.service\n<\/code><\/pre>\n<\/div>\n<p>Restart Cinnamon should work for the first time. If not do a full system restart<\/p>\n<p>If you have no network connection after following all the steps above go back to step #4. Change DNSCrypt Local IP and Port to something like 127.0.0.1:53 or 127.0.0.2:53 sudo xed \/lib\/systemd\/system\/dnscrypt-proxy.socket Also go back to step #9 and change your Network DNS to the one you choose to change it to above.<\/p>\n<p>Go to<br \/>\ndnsleaktest.com and do a test. All should work fine<br \/>\nYou can also go to <a class=\"postlink\" href=\"https:\/\/welcome.opendns.com\/\">https:\/\/welcome.opendns.com\/<\/a> to check if Opendns is working properly<\/p>\n<p><strong class=\"text-strong\">Bash Code<\/strong><\/p>\n<div class=\"codebox\" translate=\"no\">\n<p>Code: <a href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=270777#\">Select all<\/a><\/p>\n<pre><code>#!\/bin\/bash\nsudo apt-get install dnscrypt-proxy -y\nsudo sed -i 's\/fvz-anyone\/cisco\/g' \/etc\/dnscrypt-proxy\/dnscrypt-proxy.conf\nsudo apt-get install xed -y\nsudo grep '127' \/lib\/systemd\/system\/dnscrypt-proxy.socket\nsudo sed -i 's\/127.0.2.1:53\/127.0.0.1:53\/g' \/lib\/systemd\/system\/dnscrypt-proxy.socket\nsudo grep '127' \/lib\/systemd\/system\/dnscrypt-proxy.socket\nsudo systemctl daemon-reload\nsudo systemctl stop dnscrypt-proxy.socket\nsudo systemctl start dnscrypt-proxy\nsudo systemctl disable systemd-resolved.service\nsudo rm -v \/etc\/resolv.conf\nsudo systemctl stop systemd-resolved.service\n\n# Add \"dns=none\" in \/etc\/NetworkManager\/NetworkManager.conf in [main] section without the quotes.\nsudo xed \/etc\/NetworkManager\/NetworkManager.conf\n\nsudo service dnscrypt-proxy start\nsudo service network-manager restart\nsudo systemctl restart NetworkManager.service\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"back2top\"><a class=\"top\" title=\"Top\" href=\"https:\/\/forums.linuxmint.com\/viewtopic.php?t=270777#top\"> \u00a0 <\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b: add-apt-repository ppa:shevchuk\/dnscrypt-proxy apt update apt install\u00a0dnscrypt-proxy \u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/dnsproxy-crypt\/dnsproxy-crypt.toml \u0440\u0430\u0441\u0441\u043a\u043e\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 c \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438 server_names. \u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c dns 127.0.2.1 Mint 19 DNSCrypt Install Tutorial Post by JeffF73 \u00bb Fri Jun 08, &hellip; <a href=\"https:\/\/blog.5flor.ru\/?p=847\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-847","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/847"}],"collection":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=847"}],"version-history":[{"count":0,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/847\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}