How to install DNSCrypt

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
tommyb.

Re: How to install DNSCrypt

Post by tommyb. »

.
WHERE are the *.deb files?
.
.
Seems like the link leads to an empty github repository (files on github are gone) and on "dnscrypt.org" i find only some for compilation :cry:
.
.
.
I guess i keep using the old ones then ....
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: How to install DNSCrypt

Post by xenopeek »

Thanks tommyb., I've updated the first post in this topic to reflect that the tutorial is currently not usable due to the missing .deb files. Compiling from source should work (and is detailed on their website), but it's not high on my priority list to figure this all out right now. Might get around to it later :wink:
Image
metalbolic

Re: How to install DNSCrypt

Post by metalbolic »

Good afternoon!!!

Guys, I follow the tutorial to the letter, but I received various messages of errors, like that:

The script you are attempting to invoke has been converted to an Upstart
job, but --daemonize is not supported for Upstart jobs.

start: Unknown job: dnscrypt-proxy

How do resolve this?

thanks, in advance!!
tommyb.

Re: How to install DNSCrypt

Post by tommyb. »

xenopeek wrote:Thanks tommyb., I've updated the first post in this topic to reflect that the tutorial is currently not usable due to the missing .deb files. Compiling from source should work (and is detailed on their website), but it's not high on my priority list to figure this all out right now. Might get around to it later :wink:
Ok, for those interested i have the needed files in my dropbox public folder (dnscrypt 1.10, 0.94, 0.12) https://www.dropbox.com/sh/n14ywb4kqbbhaso/QoDHgovZX6. Just installed them on LinuxMint14 Mate 64bit :)
jdthood

Re: How to install DNSCrypt

Post by jdthood »

10. Reconfigure Network Manager to use DNSCrypt
Open Network Connections from the menu. On the Wired or Wireless tab highlight your active Internet connection. Click "Edit". On the IPv4 Settings tab, set Method to "Automatic (DHCP) addresses only" and set DNS servers to "127.0.0.1". Click "Save". Click "Close".
This is not how the "DNS servers" field is supposed to be used. The DNS server addresses listed in that field are supposed to be the addresses of servers accessible over that connection.

What you really want to do is to reconfigure the resolver so that it only uses dnscrypt-proxy and not any other nameservers known to the system, including nameservers known to NetworkManager.

Sooner or later dnscrypt-proxy will be packaged for Debian (http://bugs.debian.org/692320) and shortly there will be support for dnscrypt-proxy in dnsmasq (ugs.debian.org/709179).

Until that work is done, on a system with resolvconf, the best thing to do is to put

Code: Select all

nameserver 127.0.0.2  # dnscrypt-proxy's listen address
in /etc/resolvconf/resolv.conf.d/head.
T3(h_Fr34k

Re: How to install DNSCrypt

Post by T3(h_Fr34k »

Anyone tried this with Mint 15?

EDIT: Yes it works perfect on Mint 15 Cinnamon, Thanks tommyb. for the files!
mnt

Re: How to install DNSCrypt

Post by mnt »

NOTE: Tested on LM 13 (Maya) MATE-edition!

By using the PPA for dnscrypt-proxy (and its libsodium dependency), insttalling becomes as easy as:

Code: Select all

sudo apt-add-repository ppa:shnatsel/dnscrypt
sudo apt-get update
sudo apt-get install dnscrypt-proxy
After reboot:

Code: Select all

 sudo nano /etc/dnsmasq.conf
and add the following to the newly created file:

Code: Select all

server=127.0.0.2#53
Thereafter one needs to disconnect from the active connection, add 127.0.0.2 as the DNS server, and then reconnect.

To test if everything works fine, refer to number 11. of the original post: http://forums.linuxmint.com/viewtopic.php?f=42&t=107096#p603578

HTH
ronoverdrive

Re: How to install DNSCrypt

Post by ronoverdrive »

Has anyone gotten this to work on Mint 15? I for the life of me can't get it to work.
tommyb.

Re: How to install DNSCrypt

Post by tommyb. »

ronoverdrive wrote:Has anyone gotten this to work on Mint 15? I for the life of me can't get it to work.
yes i have (using the instructions right above you on LM15 mate 64bit
ronoverdrive

Re: How to install DNSCrypt

Post by ronoverdrive »

tommyb. wrote:
ronoverdrive wrote:Has anyone gotten this to work on Mint 15? I for the life of me can't get it to work.
yes i have (using the instructions right above you on LM15 mate 64bit
Well it didn't work for me. Checked with Wireshark and only standard DNS traffic is appearing, nothing encrypted.
tommyb.

Re: How to install DNSCrypt

Post by tommyb. »

ronoverdrive wrote:
tommyb. wrote:
ronoverdrive wrote:Has anyone gotten this to work on Mint 15? I for the life of me can't get it to work.
yes i have (using the instructions right above you on LM15 mate 64bit
Well it didn't work for me. Checked with Wireshark and only standard DNS traffic is appearing, nothing encrypted.
.
Ok, but you get that openDNS welcome "checkmark"? In regards to wireshark: I'll check myself later, at this point everything is possible, but I only see 127.0.0.1 on netactviewer on the box which has dnscrypt installed "my" old way.
You have edited your network dns to 127.0.0.2 as required? use port 443 instead of 53 and see what happens.
.
.
I assume in my case all is fine - maybe somebody else can confirm: example (wireshark)
419 52.637116000 80.254.76.194 208.67.220.220 UDP 288 Source port: 45553 Destination port: https
425 52.925201000 208.67.220.220 80.254.76.194 UDP 460 Source port: https Destination port: 45553
.
I catch dns traffic that way on both boxes, indepently whether i used my method or the one above.
Enkouyami
Level 1
Level 1
Posts: 29
Joined: Sat May 28, 2011 9:21 pm

Re: How to install DNSCrypt

Post by Enkouyami »

On LinuxMint 16, I get the error

Code: Select all

E: Unable to locate package dnscrypt-proxy
when I try to install it.
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: How to install DNSCrypt

Post by xenopeek »

Enkouyami that's not a surprise. Please more carefully read the top of my first post in this topic:
xenopeek wrote:Update Dec 11 2013: Previous1 has added the steps to compile DNSCrypt yourself and get it working, see this topic: http://forums.linuxmint.com/viewtopic.php?f=42&t=152600. Please follow that tutorial instead, as the below no longer works.

Update Feb 8 2013: As noted by tommyb. in the comments, the DNSCrypt .deb file downloads are no longer available. This makes this tutorial currently not usable.
Image
tommyb.

Re: How to install DNSCrypt

Post by tommyb. »

Just tested my downloadable dnscrypt files from dropbox (yes: older .deb files) on Linux Mint 17 Mate 64bit -> seem to work.
mhinnes

Re: How to install DNSCrypt

Post by mhinnes »

@tommyb I just followed your HOWTO from your Dropbox files and it seems to work on Linux Mint 17 Cinnamon x64 .
Thank You!
tommyb.

Re: How to install DNSCrypt

Post by tommyb. »

mhinnes wrote:@tommyb I just followed your HOWTO from your Dropbox files and it seems to work on Linux Mint 17 Cinnamon x64 .
Thank You!
yw
tommyb.

Re: How to install DNSCrypt

Post by tommyb. »

Yesterday Andrew from webup8 published a post about DNScrypt incl. PPA (deb). If you like to use newer DNScrypt versions, that s your alternative :) http://www.webupd8.org/2014/08/encrypt- ... -with.html


PS: In case you wonder: Yes, it says Ubuntu, but since LinuxMint in its Standard flavors is Ubuntu based, there should not be a major problem. About "Andrew" and "Webup8" he s a well-known internet person and the site is up for long time and in my opinion trustworthy.
tommyb.

Re: How to install DNSCrypt

Post by tommyb. »

A few minutes ago an updated version of "Howto DNScrypt" on Ubuntu 14.x/L.M. has been published by webup8 ... link:http://www.webupd8.org/2014/08/encrypt- ... -with.html

I just followed the tut, changed my default dns provider, etc and it seems to work.
tommyb.

Re: How to install DNSCrypt

Post by tommyb. »

I just installed DNScrypt a "new" way successfully on Linux Mint 17.3 Mate 64-bit. :D

Code: Select all

wget https://raw.github.com/simonclausen/dnscrypt-autoinstall/master/dnscrypt-autoinstall.sh
chmod +x dnscrypt-autoinstall.sh
./dnscrypt-autoinstall.sh
First it will download a bunch of files, then on second install attempt the script did the actual installation (hence you may have to run ./dnscrypt-autoinstall.sh twice, don't use sudo). DNS list is short, but you maybe able to add others (haven't tried).
DNSCrypt is now installed.
You can run this script again to reconfigure, turn off, or uninstall it
Source:
https://github.com/simonclausen/dnscrypt-autoinstall
Post Reply

Return to “Tutorials”