freebsd-ports/dns/dnscrypt-proxy2/pkg-message
Danilo G. Baio 6b55b90b6b Add dns/dnscrypt-proxy2: Flexible DNS proxy with support for encrypted protocols
A flexible DNS proxy, with support for modern encrypted DNS protocols such as
DNSCrypt v2 and DNS-over-HTTP/2.

WWW: https://github.com/jedisct1/dnscrypt-proxy

Without a repocopy because it's a new port, rewritten from scratch.

PR:		225821
Submitted by:	Vinícius Zavam <egypcio@googlemail.com>
Differential Revision:	https://reviews.freebsd.org/D14319
2018-03-25 14:46:17 +00:00

46 lines
1.2 KiB
Text

=====================================================================
Version 2 of dnscrypt-proxy is written in Go and in FreeBSD it's
not capable to drop root privileges after binding a low port (53),
Go issue [1][2].
For default dnscrypt-proxy2 is listening in port 5353 using username
_dnscrypt-proxy.
You can change your rc.conf/config to use port 53 and root but it's
not recommended.
It's needed some tweaks to use dnscrypt-proxy2 on port 5353 on your
machine, some examples below to redirect localhost port 53 to 5353:
[ipfw]
ipfw nat 1 config if lo0 reset same_ports \
redirect_port tcp 127.0.0.1:5353 53 \
redirect_port udp 127.0.0.1:5353 53
ipfw add nat 1 ip from any to 127.0.0.1 via lo0
/etc/rc.conf:
firewall_nat_enable="YES"
/etc/sysctl.conf:
net.inet.ip.fw.one_pass=0
[pf]
rdr pass on lo0 proto { tcp udp } from any to port 53 -> 127.0.0.1 port 5353
[unbound]
server:
interface: 127.0.0.1
do-not-query-localhost: no
hide-identity: yes
hide-version: yes
forward-zone:
name: "."
forward-addr: 127.0.0.1@5353
[1] - https://github.com/jedisct1/dnscrypt-proxy/issues/199
[2] - https://github.com/golang/go/issues/13838
=====================================================================