<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4735&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / HOWTO: Install dnscrypt-proxy in Devuan?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4735</link>
		<description><![CDATA[The most recent posts in HOWTO: Install dnscrypt-proxy in Devuan?.]]></description>
		<lastBuildDate>Thu, 23 Dec 2021 23:17:46 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: HOWTO: Install dnscrypt-proxy in Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33425#p33425</link>
			<description><![CDATA[<p>that&#039;s for Debian systems. Devuan already includes a forked dnscrypt-proxy version with a working init script, and proper configuration. all you need to do in Devuan is : </p><div class="codebox"><pre><code>apt install dnscrypt-proxy</code></pre></div><p>maybe tweak /etc/dnscrypt-proxy/dnscrypt-proxy.toml a bit if you like...( eg. change default cloudflare, listen address, etc...)</p><p>p.s. some history/info about the forked package : <a href="https://bugs.devuan.org/cgi/bugreport.cgi?bug=306" rel="nofollow">https://bugs.devuan.org/cgi/bugreport.cgi?bug=306</a><br />couple of years late, but thanks to Mark H. for forking it <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (xinomilo)]]></author>
			<pubDate>Thu, 23 Dec 2021 23:17:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33425#p33425</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Install dnscrypt-proxy in Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33419#p33419</link>
			<description><![CDATA[<p>Hi zzzzzz,</p><p>It seems the .deb in the repositories no longer include the files and postinst scripts to install on a sysvinit system. Very lazy on the part of debian/upsteam.</p><p>As I never wrote the init that I use myself I assume that I originally installed it from a .deb that did.</p><p>I was mistakenly assuming that that your question related to how you set up the configuration as I thought it would still install the init correctly.</p><p>To install on a sysvinit OS you need an init file. </p><p>The init file (<strong>/etc/init.d/dnscrypt-proxy</strong>) I&#039;m using is this:</p><div class="codebox"><pre class="vscroll"><code>#!/bin/sh
### BEGIN INIT INFO
# Provides:          dnscrypt-proxy
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: DNSCrypt client proxy
# Description:       Encrypted/authenticated DNS proxy
### END INIT INFO

cmd=&quot;/usr/sbin/dnscrypt-proxy -config /etc/dnscrypt-proxy/dnscrypt-proxy.toml&quot;

name=$(basename $(readlink -f $0))
pid_file=&quot;/var/run/$name.pid&quot;
stdout_log=&quot;/var/log/$name.log&quot;
stderr_log=&quot;/var/log/$name.err&quot;

get_pid() {
    cat &quot;$pid_file&quot;
}

is_running() {
    [ -f &quot;$pid_file&quot; ] &amp;&amp; ps $(get_pid) &gt; /dev/null 2&gt;&amp;1
}

case &quot;$1&quot; in
    start)
        if is_running; then
            echo &quot;Already started&quot;
        else
            echo &quot;Starting $name&quot;
	    if  [ ! -d /var/cache/dnscrypt-proxy/ ]; then
		mkdir /var/cache/dnscrypt-proxy
	    fi
            cd &#039;/root&#039;
            $cmd &gt;&gt; &quot;$stdout_log&quot; 2&gt;&gt; &quot;$stderr_log&quot; &amp;
            echo $! &gt; &quot;$pid_file&quot;
            if ! is_running; then
                echo &quot;Unable to start, see $stdout_log and $stderr_log&quot;
                exit 1
            fi
        fi
    ;;
    stop)
        if is_running; then
            echo -n &quot;Stopping $name..&quot;
            kill $(get_pid)
            for i in $(seq 1 10)
            do
                if ! is_running; then
                    break
                fi
                echo -n &quot;.&quot;
                sleep 1
            done
            echo
            if is_running; then
                echo &quot;Not stopped; may still be shutting down or shutdown may have failed&quot;
                exit 1
            else
                echo &quot;Stopped&quot;
                if [ -f &quot;$pid_file&quot; ]; then
                    rm &quot;$pid_file&quot;
                fi
            fi
        else
            echo &quot;Not running&quot;
        fi
    ;;
    force-reload|restart)
        $0 stop
        if is_running; then
            echo &quot;Unable to stop, will not attempt to start&quot;
            exit 1
        fi
        $0 start
    ;;
    status)
        if is_running; then
            echo &quot;Running&quot;
        else
            echo &quot;Stopped&quot;
            exit 1
        fi
    ;;
    *)
    echo &quot;Usage: $0 {start|stop|restart|status}&quot;
    exit 1
    ;;
esac
exit 0</code></pre></div><p>In the above code the cmd= line points to where my executable (<strong>/usr/sbin/dnscrypt-proxy</strong>) and configuration file (<strong>/etc/dnscrypt-proxy/dnscrypt-proxy.toml</strong>) are installed. <br />&#160; <br />Create a file named <strong>/etc/init.d/dnscrypt-proxy</strong> and with this content and make it executable:</p><div class="codebox"><pre><code>sudo chmod +x /etc/init.d/dnscrypt-proxy</code></pre></div><p>and </p><div class="codebox"><pre><code>sudo chown root:root /etc/init.d/dnscrypt-proxy</code></pre></div><p>In order to get this to work you&#039;ll also need to run: </p><div class="codebox"><pre><code>sudo update-rc.d dnscrypt-proxy defaults</code></pre></div><p>to create the symbolic links to this file from /etc/rc02..rc06.</p><p>And to start the program:</p><div class="codebox"><pre><code>sudo service dnscrypt-proxy start</code></pre></div><p>This will first download a default list of upstream doh and dnscrypt servers (public.resolvers.md), which you can then, for example, filter (I only use unfiltered, non-logging DNSSEC servers) using the control parameters in the config file.</p><p>Which server is chosen from the filtered list at any one time can be controlled but the default is that you get the nearest.</p><p>To update the list (servers do come and go) force a restart.</p><div class="codebox"><pre><code>sudo service dnscrypt-proxy restart</code></pre></div><p>There are a number of other (optional) .txt files that are referenced but commented out in the default config file, such as blocking and allow lists. If you enable these I suggest you keep these in <strong>/etc/dnscrypt-proxy</strong>, however I put my log files in the usual place <strong>var/log/dnscrypt-proxy.log</strong>.</p><p>There are a few example .txt files in the .deb that are placed in <strong>/usr/share/dnscrypt-proxy/examples/</strong>.</p><p>You can check the program runs without using it for live dns lookups, so long as your resolv.conf doesn&#039;t point to it.</p><p>My resolv.conf is:</p><div class="codebox"><pre><code># Not from Network Manager
#
# bypass nameserver, uncomment to bypass dnscrypt-proxy
# nameserver 1.1.1.1
#
# dnscrypt-proxy nameserver
nameserver 127.0.0.1
options edns0</code></pre></div><p>My solution to Network Manager trying to overwrite this is to make <strong>/etc/resolv.conf</strong> a symbolic link to<strong> /etc/dnscrypt-proxy/resolv.conf</strong>.</p><p>Hoping this is helpful.</p>]]></description>
			<author><![CDATA[dummy@example.com (Marjorie)]]></author>
			<pubDate>Thu, 23 Dec 2021 19:30:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33419#p33419</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Install dnscrypt-proxy in Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33414#p33414</link>
			<description><![CDATA[<div class="quotebox"><cite>Marjorie wrote:</cite><blockquote><div><p><a href="https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Installation-on-Debian-and-Ubuntu" rel="nofollow">https://github.com/DNSCrypt/dnscrypt-pr … and-Ubuntu</a>?</p></div></blockquote></div><p>That is horrendous &quot;advice&quot;. The dnscrypt-proxy package in the stable repository is covered by the Security Team and should be preferred.</p><p>Adding testing/unstable repositories is a good way to break stable systems, even with the moronic pinning outlined in the link.</p><p>@OP: try</p><div class="codebox"><pre><code># apt install dnscrypt-proxy</code></pre></div><p>But please *do not* add any repositories.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 23 Dec 2021 13:55:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33414#p33414</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Install dnscrypt-proxy in Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33413#p33413</link>
			<description><![CDATA[<div class="quotebox"><cite>Marjorie wrote:</cite><blockquote><div><p>Have you had a look at <br /><a href="https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Installation-on-Debian-and-Ubuntu" rel="nofollow">https://github.com/DNSCrypt/dnscrypt-pr … and-Ubuntu</a>?</p><p>There&#039;s more information about installation and configuration in the wiki (see right panel on that page)</p><p>The versions in the devuan repositories are <em>reasonably</em> up to date (2.0.19 in Beowulf) but you can update to the latest version from Github as long you also get the latest configuration to use the additional features.</p><p>If you need more information I run dnscrypt-proxy myself (my version is 2.0.44).</p></div></blockquote></div><p>It&#039;s `systemd` tutorial. I&#039;m looking for a `systemd-free` one.</p><p>Could you share here how you manage to properly do it?</p>]]></description>
			<author><![CDATA[dummy@example.com (zzzzzz)]]></author>
			<pubDate>Thu, 23 Dec 2021 13:36:14 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33413#p33413</guid>
		</item>
		<item>
			<title><![CDATA[Re: HOWTO: Install dnscrypt-proxy in Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33381#p33381</link>
			<description><![CDATA[<p>Have you had a look at <br /><a href="https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Installation-on-Debian-and-Ubuntu" rel="nofollow">https://github.com/DNSCrypt/dnscrypt-pr … and-Ubuntu</a>?</p><p>There&#039;s more information about installation and configuration in the wiki (see right panel on that page)</p><p>The versions in the devuan repositories are <em>reasonably</em> up to date (2.0.19 in Beowulf) but you can update to the latest version from Github as long you also get the latest configuration to use the additional features.</p><p>If you need more information I run dnscrypt-proxy myself (my version is 2.0.44).</p>]]></description>
			<author><![CDATA[dummy@example.com (Marjorie)]]></author>
			<pubDate>Tue, 21 Dec 2021 10:21:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33381#p33381</guid>
		</item>
		<item>
			<title><![CDATA[HOWTO: Install dnscrypt-proxy in Devuan?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33380#p33380</link>
			<description><![CDATA[<p>Any tutorial?</p>]]></description>
			<author><![CDATA[dummy@example.com (zzzzzz)]]></author>
			<pubDate>Tue, 21 Dec 2021 04:59:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33380#p33380</guid>
		</item>
	</channel>
</rss>
