<?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=2802&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Devuan and WireGuard / Mullvad VPN]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2802</link>
		<description><![CDATA[The most recent posts in Devuan and WireGuard / Mullvad VPN.]]></description>
		<lastBuildDate>Wed, 29 Dec 2021 16:32:09 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33550#p33550</link>
			<description><![CDATA[<p>Greetings!</p><p>Mullvad&#039;s philosophy is spot on: both accessible and permissive in exactly the sense a privacy application should be. </p><p>Please find here simpler SysVinit script which either runs the binary, hangs up, or employs devuan&#039;s init-functions to query the status.&#160; &#160;</p><p>1 install Mullvad&#039;s .deb package<br />2 create this /etc/init.d/mullvad</p><div class="codebox"><pre class="vscroll"><code>#! /bin/sh 

### BEGIN INIT INFO
# Provides:             mullvad-daemon
# Required-Start:
# Required-Stop:
# Default-Start:        2 3 4 5
# Default-Stop:
# Short-Description:    Start and stop mullvad-daemon
# Description:          A simple init for Mullvad VPN
### END INIT INFO

. /lib/lsb/init-functions
name=${0##*/}
bin=/opt/Mullvad\ VPN/resources/mullvad-daemon

case &quot;$1&quot; in
        start)
                &quot;$bin&quot; &amp;
                ;;
        stop)
                start-stop-daemon --stop --exec &quot;$bin&quot; --
                ;;
        status)
                status_of_proc &quot;mullvad-daemon&quot; &quot;$name&quot;
                ;;
          *)
                log_action_msg &quot;Usage: $0 {start|stop|status}&quot;
                ;;
esac
exit 0</code></pre></div><p>3 update-rc.d mullvad defaults </p><p>The daemon will now run at startup. Configure wireguard or anything as a normal user with mullvad(1) client program. </p><p>All the best,</p>]]></description>
			<author><![CDATA[dummy@example.com (user068681)]]></author>
			<pubDate>Wed, 29 Dec 2021 16:32:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33550#p33550</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17248#p17248</link>
			<description><![CDATA[<p>For anyone else needing help, unless I&#039;m missing something, just add</p><p>wg-quick up wg0&#160; &#160;</p><p>to&#160; &#160;/etc/rc.local&#160; &#160;before the &quot;exit 0&quot; line. That will run it on startup.</p>]]></description>
			<author><![CDATA[dummy@example.com (paulxx)]]></author>
			<pubDate>Wed, 24 Jul 2019 22:34:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17248#p17248</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15679#p15679</link>
			<description><![CDATA[<p>I solved it using OpenVPN instead of WireGuard ;-)</p>]]></description>
			<author><![CDATA[dummy@example.com (pota)]]></author>
			<pubDate>Tue, 23 Apr 2019 09:00:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15679#p15679</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15662#p15662</link>
			<description><![CDATA[<div class="quotebox"><cite>pota wrote:</cite><blockquote><div><p>I don&#039;t have the necessary skills</p></div></blockquote></div><p>Me neither, that&#039;s why it didn&#039;t work <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><div class="quotebox"><cite>pota wrote:</cite><blockquote><div><p>Is it possible to remove what we have done so far?</p></div></blockquote></div><p>Of course: just run</p><div class="codebox"><pre><code># update-rc.d -f wireguard remove
# rm /etc/init.d/wireguard</code></pre></div><div class="quotebox"><cite>pota wrote:</cite><blockquote><div><p>excuse the trouble</p></div></blockquote></div><p>That&#039;s OK, it was no trouble at all.</p><p>Sorry I couldn&#039;t get it working for you.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 22 Apr 2019 16:37:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15662#p15662</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15660#p15660</link>
			<description><![CDATA[<p>I&#039;m sorry, but I don&#039;t have the necessary skills.<br />I start it manually. <br />Is it possible to remove what we have done so far?<br />thanks. excuse the trouble</p>]]></description>
			<author><![CDATA[dummy@example.com (pota)]]></author>
			<pubDate>Mon, 22 Apr 2019 16:16:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15660#p15660</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15655#p15655</link>
			<description><![CDATA[<p>In which case check the <span class="bbs">journal</span> logs to find out what&#039;s going wrong and then fiddle with the service file to get it to work.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 22 Apr 2019 14:19:14 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15655#p15655</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15648#p15648</link>
			<description><![CDATA[<p>Thank you. done but not working. does not start automatically</p>]]></description>
			<author><![CDATA[dummy@example.com (pota)]]></author>
			<pubDate>Mon, 22 Apr 2019 12:38:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15648#p15648</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15647#p15647</link>
			<description><![CDATA[<div class="codebox"><pre><code># chmod +x /etc/init.d/wireguard</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 22 Apr 2019 12:20:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15647#p15647</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15646#p15646</link>
			<description><![CDATA[<div class="codebox"><pre><code>update-rc.d wireguard defaults
insserv: script wireguard is not an executable regular file, skipped!</code></pre></div><p>Releases me this error. </p><p>(I thought you were asking me not to mention long fragments of conversation. now I have not mentioned anything. excuse me.)</p>]]></description>
			<author><![CDATA[dummy@example.com (pota)]]></author>
			<pubDate>Mon, 22 Apr 2019 11:43:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15646#p15646</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15644#p15644</link>
			<description><![CDATA[<p>Yes.</p><p>Thinking about this a bit more: you may have to add <em>networking</em> to the <em>Required-Start</em> line to get the network up before the VPN is started but I&#039;m not really sure.</p><p>I can&#039;t believe you full-quoted me again though (and even included the request to stop full-quoting in the quote). Ah well.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 22 Apr 2019 11:30:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15644#p15644</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15643#p15643</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>pota wrote:</cite><blockquote><div><p>with the extension .ini</p></div></blockquote></div><p>No &quot;extension&quot; is needed, that&#039;s a Windows thing. And .ini-style files are what systemd uses.</p><p>Also, please don&#039;t full quote for a straight reply, it reduces the readability of the thread.</p></div></blockquote></div><p>Okay. Sorry. So I&#039;m giving this command:</p><div class="codebox"><pre><code>nano /etc/init.d/wireguard</code></pre></div><p>I insert the text you posted to me. and finally activate it with the command:</p><div class="codebox"><pre><code>update-rc.d wireguard defaults</code></pre></div><p>right?</p>]]></description>
			<author><![CDATA[dummy@example.com (pota)]]></author>
			<pubDate>Mon, 22 Apr 2019 11:27:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15643#p15643</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15642#p15642</link>
			<description><![CDATA[<div class="quotebox"><cite>pota wrote:</cite><blockquote><div><p>with the extension .ini</p></div></blockquote></div><p>No &quot;extension&quot; is needed, that&#039;s a Windows thing. And .ini-style files are what systemd uses.</p><p>Also, please don&#039;t full quote for a straight reply, it reduces the readability of the thread.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 22 Apr 2019 10:22:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15642#p15642</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15641#p15641</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>The wgquick@.service unit file uses the .ini style (&#039;cos the devs love Windows, presumably) and so cannot be used with sysvinit, you will need to convert it to a shell script instead.</p><p>Something like this executable file in /etc/init.d/wireguard might work:</p><div class="codebox"><pre class="vscroll"><code>#!/bin/sh -e
### BEGIN INIT INFO
# Provides:          wireguard
# Required-Start:    mountkernfs $local_fs
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: WireGuard via wg-quick(8)  
### END INIT INFO

. /lib/init/vars.sh
. /lib/lsb/init-functions

do_start() {
   /usr/bin/wg-quick up mullvad-se4
}
do_stop() {
   /usr/bin/wg-quick down mullvad-se4
}

case $1 in
(start|restart|reload|force-reload)
   do_invoke start
   ;;
(stop)
   do_invoke stop
   ;;
(*)
   echo &gt;&amp;2 &quot;Usage: $0 {start|stop|restart|reload|force-reload}&quot;
   exit 3
   ;;
esac</code></pre></div><p>Enable it with</p><div class="codebox"><pre><code># update-rc.d wireguard defaults</code></pre></div><p>Disclaimer: I&#039;m crap with sysvinit scripts so perhaps wait for somebody to point out my mistakes before trying this.</p></div></blockquote></div><p>so. summarizing. I have to create a &quot;blank file&quot; in /etc/init.d/wireguard with the extension .ini named as I want. I paste into it the content of the text you provided me. I make it executable and active with the command </p><div class="codebox"><pre><code># update-rc.d wireguard defaults</code></pre></div><p>okay?<br />Sorry again and thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (pota)]]></author>
			<pubDate>Mon, 22 Apr 2019 09:50:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15641#p15641</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15640#p15640</link>
			<description><![CDATA[<p>The wgquick@.service unit file uses the .ini style (&#039;cos the devs love Windows, presumably) and so cannot be used with sysvinit, you will need to convert it to a shell script instead.</p><p>Something like this executable file in /etc/init.d/wireguard might work:</p><div class="codebox"><pre class="vscroll"><code>#!/bin/sh -e
### BEGIN INIT INFO
# Provides:          wireguard
# Required-Start:    mountkernfs $local_fs
# Required-Stop:     $local_fs
# Default-Start:     S
# Default-Stop:      0 6
# Short-Description: WireGuard via wg-quick(8)  
### END INIT INFO

. /lib/init/vars.sh
. /lib/lsb/init-functions

do_start() {
   /usr/bin/wg-quick up mullvad-se4
}
do_stop() {
   /usr/bin/wg-quick down mullvad-se4
}

case $1 in
(start|restart|reload|force-reload)
   do_invoke start
   ;;
(stop)
   do_invoke stop
   ;;
(*)
   echo &gt;&amp;2 &quot;Usage: $0 {start|stop|restart|reload|force-reload}&quot;
   exit 3
   ;;
esac</code></pre></div><p>Enable it with</p><div class="codebox"><pre><code># update-rc.d wireguard defaults</code></pre></div><p>Disclaimer: I&#039;m crap with sysvinit scripts so perhaps wait for somebody to point out my mistakes before trying this.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 22 Apr 2019 08:53:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15640#p15640</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan and WireGuard / Mullvad VPN]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=15639#p15639</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Here is the unit file:</p><p><a href="https://git.zx2c4.com/WireGuard/plain/src/tools/systemd/wg-quick@.service" rel="nofollow">https://git.zx2c4.com/WireGuard/plain/s … k@.service</a></p><p>The ExecStart line is the command that is executed by the unit file, replace %i with <em>mullvad-se4</em> and incorporate it into a boot script for sysvinit.</p></div></blockquote></div><p>Thank you for your answer.<br />in which folder do I find the file unit to be edited?<br />excuse ignorance</p>]]></description>
			<author><![CDATA[dummy@example.com (pota)]]></author>
			<pubDate>Mon, 22 Apr 2019 08:18:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=15639#p15639</guid>
		</item>
	</channel>
</rss>
