Merge pull request #1 from AladW/patch-1

Add dnscrypt
This commit is contained in:
Jack L. Frost 2014-07-21 20:18:12 +04:00
commit df253ac6be
4 changed files with 43 additions and 0 deletions

15
conf.d/dnscrypt-backup.sh Normal file
View File

@ -0,0 +1,15 @@
# dnscrypt config - backup
local_ip='127.0.0.2'
local_port='53'
local_user='nobody'
resolver_ip='176.56.237.171'
resolver_port='443'
provider_name='2.dnscrypt-cert.resolver1.dnscrypt.eu'
provider_key='67C0:0F2C:21C5:5481:45DD:7CB4:6A27:1AF2:EB96:9931:40A3:09B6:2B8D:1653:1185:9C66'
service_args="--local-address=${local_ip}:${local_port} \
--resolver-address=${resolver_ip}:${resolver_port} \
--provider-name=${provider_name} \
--provider-key=${provider_key} \
--user=${local_user}"

15
conf.d/dnscrypt.sh Normal file
View File

@ -0,0 +1,15 @@
# dnscrypt config - main
local_ip='127.0.0.1'
local_port='53'
local_user='nobody'
resolver_ip='77.66.84.233'
resolver_port='443'
provider_name='2.dnscrypt-cert.resolver2.dnscrypt.eu'
provider_key='3748:5585:E3B9:D088:FD25:AD36:B037:01F5:520C:D648:9E9A:DD52:1457:4955:9F0A:9955'
service_args="--local-address=${local_ip}:${local_port} \
--resolver-address=${resolver_ip}:${resolver_port} \
--provider-name=${provider_name} \
--provider-key=${provider_key} \
--user=${local_user}"

8
init.d/dnscrypt Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env watchman
# soft depend, OR return 1 for hard depend
depends dnscrypt-backup
service_respawn='true'
service_command='/usr/bin/dnscrypt-proxy'
service_logfile='/var/log/dnscrypt.log'

5
init.d/dnscrypt-backup Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env watchman
service_respawn='true'
service_command='/usr/bin/dnscrypt-proxy'
service_logfile='/var/log/dnscrypt-bak.log'