You are not logged in.

#1 2012-02-20 05:06:44

DasFox
Member
Registered: 2010-11-24
Posts: 107

Using dnscrypt-proxy With unbound, Do I have It Correct?

This is my /etc/unvound/unbound.conf
     
    server:
      username: "unbound"
      directory: "/etc/unbound"
      use-syslog: yes
      do-not-query-localhost: no
      forward-zone:
      name: "."
      forward-addr: 127.0.0.1@40
     
     
    And this is what I have in /etc/conf.d/dnscrypt-proxy
     
    DNSCRYPT_LOCALIP=127.0.0.1
    DNSCRYPT_LOCALPORT=40
    #DNSCRYPT_LOCALPORT=53
    DNSCRYPT_USER=nobody
     
    From what I read you are to start it for port 40
     
    dnscrypt-proxy --local-port=40 --daemonize
     
    But since I have that listed in etc/conf.d/dnscrypt-proxy I'm assuming this is correct?
     
    My two configs are ok?
     
    On the GIT for dnscrypt it mentions this;
     
    Both can safely run on the same machine as long as they are listening to different IP addresses (preferred) or different ports.
     
    On the same box how do I have them listen on different IPs if this the best method?
     
     
    THANKS


12 Year Linux Vet, Don't Let The Post Count Fool Ya! But Sure I Don't Know Everything, Who Does? That's Why I Ask. smile

Offline

#2 2012-12-16 07:00:10

pjnsmb
Member
From: Solihull.U.K
Registered: 2009-02-05
Posts: 29

Re: Using dnscrypt-proxy With unbound, Do I have It Correct?

A late reply so I do not know how you are doing with running both of these programmes together.

Both my files you ask about are just about the same except :

I add the line
verbosity: 2
and #use-syslog: yes

verbosity lets me see that unbound is working ok in /var/log/everything.log
# out syslog as nothing shows

If you use the command :

lsof -i -n -P from terminal you should see that they are running on different ports

this is my output :

COMMAND   PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
unbound   291 unbound    3u  IPv6   8819      0t0  UDP [::1]:53
unbound   291 unbound    4u  IPv6   8820      0t0  TCP [::1]:53 (LISTEN)
unbound   291 unbound    5u  IPv4   8821      0t0  UDP 127.0.0.1:53
unbound   291 unbound    6u  IPv4   8822      0t0  TCP 127.0.0.1:53 (LISTEN)
dnscrypt- 418  nobody    8u  IPv4  11707      0t0  UDP 127.0.0.1:40
dnscrypt- 418  nobody    9u  IPv4  11708      0t0  UDP *:35689
dnscrypt- 418  nobody   10u  IPv4  11709      0t0  TCP 127.0.0.1:40 (LISTEN


I used to use the command :

dnscrypt-proxy --logfile=/home/peter/Desktop/dnscrypt --local-address=127.0.0.1:40  --daemonize to start

your command is now slightly out of date, have a look at the following :

https://github.com/opendns/dnscrypt-pro … E.markdown

I am now using systemd with both services enabled at boot , so do not need this command any longer .


cheers


pjnsmb

Man is still the most extraordinary computer of all.
Kennedy, John F.

Offline

Board footer

Powered by FluxBB