BSD Ports

dns/dnscrypt-proxy2 2.1.15_10 FreeBSD

Flexible DNS proxy with support for encrypted protocols

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d81b7ba3c3
License
ISCL
Categories
dns, security
Package size
4023.0 KiB, 13035.0 KiB installed

Description

A flexible DNS proxy with support for modern encrypted DNS protocols such as DNSCrypt v2 and DNS-over-HTTP/2.

In the other systems

SystemPortVersion
FreeBSDdns/dnscrypt-proxy22.1.15_10
NetBSDnet/dnscrypt-proxy22.0.45nb62
DragonFlydns/dnscrypt-proxy22.1.5_10

Install

Binary package:

pkg install dnscrypt-proxy2

From the ports tree:

cd /usr/ports/dns/dnscrypt-proxy2/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	dnscrypt-proxy2>0:dns/dnscrypt-proxy2

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.1.15_92.1.15_9-2.1.5_152.1.15_9
FreeBSD:14:quarterly2.1.15_92.1.15_9n/a2.1.5_132.1.15_9
FreeBSD:15:latest2.1.15_92.1.15_9n/a-2.1.5_15
FreeBSD:15:quarterly2.1.15_92.1.15_9n/an/an/a
FreeBSD:16:latest2.1.15_82.1.15_9n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

No port depends on this one.

Configuration

Options name: dns_dnscrypt-proxy

OptionDefaultDescription
DOCSoffBuild and/or install documentation
EXAMPLESoffBuild and/or install examples
USES
go:modules
Service scripts
dnscrypt-proxy
Conflicts with
dnscrypt-proxy

Message after installing

Version 2 of dnscrypt-proxy is written in Go. by default, this port's daemon
will listen on port 5353 (TCP/UDP) as the _dnscrypt-proxy user.

It's possible to bind it and listen on port 53 (TCP/UDP) with mac_portacl(4)
kernel module (network port access control policy). For this add
dnscrypt_proxy_mac_portacl_enable=YES in your rc.conf. The dnscrypt-proxy
startup script will load mac_portacl and add a rule where _dnscrypt-proxy user will
be able to bind on port 53 (TCP/UDP). This port can be changed by
dnscrypt_proxy_mac_portacl_port variable in your rc.conf. You also need to
change dnscrypt-proxy config file to use port 53.

Below are a few examples on how to redirect local connections from port
5353 to 53.

[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_enable="YES"
    firewall_nat_enable="YES"

  /etc/sysctl.conf:
    net.inet.ip.fw.one_pass=0

[pf]

  set skip on lo0
  rdr pass on lo0 proto { tcp udp } from any to port 53 -> 127.0.0.1 port 5353

  /etc/rc.conf:
    pf_enable="YES"

[unbound]

  /etc/rc.conf:
    local_unbound_enable="YES"

  /var/unbound/unbound.conf:
    server:
      interface: 127.0.0.1
      do-not-query-localhost: no

  /var/unbound/forward.conf:
    forward-zone:
      name: "."
      forward-addr: 127.0.0.1@5353

  If you are using local_unbound, DNSSEC is enabled by default. You should
  comment the "auto-trust-anchor-file" line or change dnscrypt-proxy to use
  servers with DNSSEC support only.

Files

pkg-plist 3
  • @dir(,) etc/dnscrypt-proxy
  • @sample etc/dnscrypt-proxy2/dnscrypt-proxy.toml.sample
  • sbin/dnscrypt-proxy
distinfo 1
FileSizeSHA256
DNSCrypt-dnscrypt-proxy-2.1.15_GH0.tar.gz4.058547e+0657da91dd2a3992a1528e764bcfe9b48088c63c933c0c571a2cac3d27ac8c7546

Commit history 6

DateCommitCreditsLog message
d81b7ba3c3 Dag-Erling Smørgrav various: Bump Go ports for Go 1.26.10 / 1.27.3
031fc6bfbf Dag-Erling Smørgrav various: Bump Go ports
dd0905142a Adam Weinberger many: Bump go ports for 1.26.8 and 1.27.1
4867821cd6 Dag-Erling Smørgrav various: Bump go ports for go-1.25.14 / 1.26.7
6d39dcf04e Dag-Erling Smørgrav various: Bump go ports for go-1.25.13 / 1.26.6

The latest 5 of 6 in the history this site was built from.