<?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=6365&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / How the heck do I get wireguard to be always on?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6365</link>
		<description><![CDATA[The most recent posts in How the heck do I get wireguard to be always on?.]]></description>
		<lastBuildDate>Fri, 14 Jun 2024 16:59:29 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: How the heck do I get wireguard to be always on?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=50524#p50524</link>
			<description><![CDATA[<p>my /etc/init.d/wg0</p><div class="codebox"><pre class="vscroll"><code>cat wg0              
#!/bin/sh -eu
# checkconfig: 2345 30 70
# description: set up a WireGuard interface simply
### BEGIN INIT INFO
# Provides: wg-quick
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Default-Start:	2 3 4 5
# Default-Stop:		0 1 6
# Short-Description: set up a WireGuard interface simply
### END INIT INFO

command=/usr/bin/wg-quick
interface=wg0
description=&quot;wg-quick on $interface&quot;
logfile=/var/log/$interface.log

status() {
    /usr/bin/wg show $interface
}

start() {
    touch $logfile &amp;&amp; date &gt;&gt;$logfile
    echo &quot;starting $description ...&quot; | tee -a $logfile
    $command up $interface &gt;&gt;$logfile 2&gt;&amp;1
    echo &quot;... started $description&quot; | tee -a $logfile
}

stop() {
    touch $logfile &amp;&amp; date &gt;&gt;$logfile
    echo &quot;stopping $description ...&quot; | tee -a $logfile
    $command down $interface &gt;&gt;$logfile 2&gt;&amp;1
    echo &quot;... stopped $description&quot; | tee -a $logfile
}

case &quot;${1-}&quot; in
    status) status ;;
    start) start ;;
    restart) stop || true; start ;;
    stop) stop ;;
    *) echo &quot;usage: $0 {status|start|restart|stop}&quot; ;;
esac</code></pre></div><p>copied with small changes from <br /><a href="https://www.procustodibus.com/blog/2021/06/wireguard-sysv-init-script/" rel="nofollow">https://www.procustodibus.com/blog/2021 … it-script/</a></p><p>Once done run </p><div class="codebox"><pre><code>update-rc.d /etc/init.d/wg0 defaults</code></pre></div><p>server listens at ipv4 and ipv6 :51820<br />At the moment pinging is possible.<br />Once this solution has survived some testing, I will add a logrotate file.</p><p>If someone has the friendliness to file a bug against the package with this solution, or to complete the missing init-script package ?<br />(I have problems with reportbug.)</p>]]></description>
			<author><![CDATA[dummy@example.com (bai4Iej2need)]]></author>
			<pubDate>Fri, 14 Jun 2024 16:59:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=50524#p50524</guid>
		</item>
		<item>
			<title><![CDATA[Re: How the heck do I get wireguard to be always on?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47564#p47564</link>
			<description><![CDATA[<p>That helps a lot.<br />Thank you, friend.<br />I&#039;ll try it tomorrow and leave an update here<br /><img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (DavidRLTG)]]></author>
			<pubDate>Mon, 22 Jan 2024 22:59:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47564#p47564</guid>
		</item>
		<item>
			<title><![CDATA[Re: How the heck do I get wireguard to be always on?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47563#p47563</link>
			<description><![CDATA[<p>From the link above,</p><div class="quotebox"><blockquote><div><p>Save the above sysvinit script as /etc/init.d/wg0</p></div></blockquote></div><p> or &quot;&lt;your-name&gt;&quot; for the script.&#160; Make it executable.</p><p>Change this line in the script, or keep it as is:</p><div class="quotebox"><blockquote><div><p>interface=wg0</p></div></blockquote></div><p>- or -</p><div class="quotebox"><blockquote><div><p>interface=&lt;your-name&gt;</p></div></blockquote></div><p>Follow the instructions on adding the symlinks.&#160; Then try to use the usual service commands to start/stop/status:<br />service &lt;your-name&gt; start/stop/status</p><p>Put your wireguard profile file in /etc/wireguard .&#160; Give it your preferred name, maybe &quot;wg0&quot; or &lt;your-name&gt;.&#160; The name you give it should be the same through the sysvinit script, and the profile name, I think.</p>]]></description>
			<author><![CDATA[dummy@example.com (nixer)]]></author>
			<pubDate>Mon, 22 Jan 2024 22:58:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47563#p47563</guid>
		</item>
		<item>
			<title><![CDATA[Re: How the heck do I get wireguard to be always on?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47557#p47557</link>
			<description><![CDATA[<p>No idea how to add my config to the script. I know, I&#039;m dumb, i just don&#039;t see where.<br />Would you guys be willing to help a complete newbie? 😂<br />I gotta somehow add wg-quick up wgcf-profile to it. Which lines should I edlt? And where?<br />No idea how to get stuff like this working, I used to use warp-cli.</p>]]></description>
			<author><![CDATA[dummy@example.com (DavidRLTG)]]></author>
			<pubDate>Mon, 22 Jan 2024 22:19:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47557#p47557</guid>
		</item>
		<item>
			<title><![CDATA[Re: How the heck do I get wireguard to be always on?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47554#p47554</link>
			<description><![CDATA[<p>openrc is nothing but some sort of overhead on sysvinit. Give those scripts a try, I guess they will work alright.</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Mon, 22 Jan 2024 22:13:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47554#p47554</guid>
		</item>
		<item>
			<title><![CDATA[Re: How the heck do I get wireguard to be always on?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47553#p47553</link>
			<description><![CDATA[<p>Crap. How do I use it?<br />Sorry, I&#039;m easily confused, Not really the most experienced linux user here.<br />Either way, thanks a bunch!</p>]]></description>
			<author><![CDATA[dummy@example.com (DavidRLTG)]]></author>
			<pubDate>Mon, 22 Jan 2024 22:09:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47553#p47553</guid>
		</item>
		<item>
			<title><![CDATA[Re: How the heck do I get wireguard to be always on?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47552#p47552</link>
			<description><![CDATA[<p>please see this post... for a conversion script.</p><p><a href="https://dev1galaxy.org/viewtopic.php?id=4865" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=4865</a></p><p>beware of the start and stop levels after converting to suit your situation.</p><p>I haven&#039;t tested on wireguard... but I have had success with others.</p><p>all the best.</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Mon, 22 Jan 2024 22:07:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47552#p47552</guid>
		</item>
		<item>
			<title><![CDATA[Re: How the heck do I get wireguard to be always on?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47537#p47537</link>
			<description><![CDATA[<p>Hey! I don&#039;t think the script works on OpenRC <img src="https://dev1galaxy.org/img/smilies/sad.png" width="15" height="15" alt="sad" /><br />Besides, sorry for being a newbie, But I&#039;m unsure where to put it or how to<br />add my own config onto it. Any tips?</p>]]></description>
			<author><![CDATA[dummy@example.com (DavidRLTG)]]></author>
			<pubDate>Mon, 22 Jan 2024 17:23:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47537#p47537</guid>
		</item>
		<item>
			<title><![CDATA[Re: How the heck do I get wireguard to be always on?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47521#p47521</link>
			<description><![CDATA[<p>Thank you friend, I&#039;ll try it out later!</p>]]></description>
			<author><![CDATA[dummy@example.com (DavidRLTG)]]></author>
			<pubDate>Mon, 22 Jan 2024 12:49:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47521#p47521</guid>
		</item>
		<item>
			<title><![CDATA[Re: How the heck do I get wireguard to be always on?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47520#p47520</link>
			<description><![CDATA[<p>Does openrc use sysvinit scripts?&#160; I am not too familiar with openrc/runit/s6, yet, so if I am totally incorrect, please forgive me.</p><p>I used this info to create a sysvinit start script using my own wireguard profile config.&#160; I hope it helps.</p><p><a href="https://www.procustodibus.com/blog/2021/06/wireguard-sysv-init-script/" rel="nofollow">https://www.procustodibus.com/blog/2021 … it-script/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (nixer)]]></author>
			<pubDate>Mon, 22 Jan 2024 12:48:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47520#p47520</guid>
		</item>
		<item>
			<title><![CDATA[How the heck do I get wireguard to be always on?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=47454#p47454</link>
			<description><![CDATA[<p>I know, I know, I&#039;m sorry, I am unsure if this the right place to ask this question on but<br />Really! I couldn&#039;t find much help anywhere. I&#039;m on Devuan OpenRC, using the wgcf (wireguard cloudflare) config.<br />Is there some way to get the config to load every time I boot up (something similar to the command below):</p><div class="codebox"><pre><code>wg-quick up wgcf-profile</code></pre></div><p>It would really help a lot. Thanks lads, I appreciate any help given.</p>]]></description>
			<author><![CDATA[dummy@example.com (DavidRLTG)]]></author>
			<pubDate>Sat, 20 Jan 2024 19:49:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=47454#p47454</guid>
		</item>
	</channel>
</rss>
