Skip to content

Installation pfsense

Frank Denis edited this page Apr 10, 2018 · 5 revisions

Installation on pfsense

Installation

Example with FreeBSD/arm and version 2.0.9. Change accordingly.

cd /tmp
fetch -m https://github.com/jedisct1/dnscrypt-proxy/releases/download/2.0.9/dnscrypt-proxy-freebsd_arm-2.0.9.tar.gz
mkdir dnscrypt-proxy-freebsd_arm-2.0.9
tar -zxf dnscrypt-proxy-freebsd_arm-2.0.9.tar.gz -C dnscrypt-proxy-freebsd_arm-2.0.9
mv dnscrypt-proxy-freebsd_arm-2.0.9/freebsd-arm/dnscrypt-proxy /usr/local/bin/dnscrypt-proxy
chown root:wheel /usr/local/bin/dnscrypt-proxy
chmod +x /usr/local/bin/dnscrypt-proxy
mkdir -p /usr/local/etc/dnscrypt-proxy
cp dnscrypt-proxy-freebsd_arm-2.0.9/freebsd-arm/example-dnscrypt-proxy.toml /usr/local/etc/dnscrypt-proxy/dnscrypt-proxy.toml

Adapt the configuration /usr/local/etc/dnscrypt-proxy/dnscrypt-proxy.toml to your need.

Launching dnscrypt-proxy at boot

Add this script to /usr/local/etc/rc.d/dnscrypt-proxy.sh and set execution permissions chmod +x /usr/local/etc/rc.d/dnscrypt-proxy.sh

#!/bin/sh

# REQUIRE: NETWORKING

set -e

exec /usr/local/bin/dnscrypt-proxy -config /usr/local/etc/dnscrypt-proxy/dnscrypt-proxy.toml
Clone this wiki locally
You can’t perform that action at this time.