Skip to content

Instantly share code, notes, and snippets.

@devasia2112
Created November 24, 2019 06:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save devasia2112/c6df31855fcdcc094c125bb96c01abe1 to your computer and use it in GitHub Desktop.
Save devasia2112/c6df31855fcdcc094c125bb96c01abe1 to your computer and use it in GitHub Desktop.
steps to get your dnscrypt working with .ovpn files.
SETUP DNSCRYPT - Arch Linux
---
STEP 1
Install DNSCRYPT using your package manager or compiling from source.
STEP 2
Configure the file `/etc/dnscrypt-proxy/dnscrypt-proxy.toml`, add your own public/private DNS,
enable logs, etc..
STEP 3
Enable dnscrypt-proxy in your system
`systemctl enable --now dnscrypt-proxy.service`
STEP 4
Start you dnscrypt-proxy installation with systemctl
`sudo systemctl start dnscrypt-proxy`
STEP 5
Test your configuration with this command
`dnscrypt-proxy -resolve <website>` or
`dig <website>`
STEP 6
change file `/etc/resolvconf.conf` and add this line `name_servers=127.0.0.1`
STEP 7
check if file `/etc/resolv.conf` show your local DNS ip like this `cat /etc/resolv.conf`
It must show something like this:
` # Generated by resolvconf
nameserver 127.0.0.1 `
STEP 8
Check your logs and learn if dnscrypt-proxy is fully working.
`cat /var/log/dnscrypt-proxy/dnscrypt-proxy.log`
* log name was specified with `dnscrypt-proxy.toml` file.
VPN
---
On your .ovpn files comment the following instruction
#push "block-outside-dns"
Add this line if it is not there:
push "dhcp-option DNS 127.0.0.1"
From now on you can connect to your VPN and use your own local DNS.
You can even use Tor on top of everything.
@update: 2019NOV23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment