<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Wireguard in a Bastille jail - getting if_wg_load to work?]]></title><description><![CDATA[<p dir="auto">Gentlefolk,</p>
<p dir="auto">I am trying to set up a wireguard client inside a Bastille jail - both the host and the jail are on FreeBSD 15.1.</p>
<p dir="auto">I have encountered an error (SIOCIFCREATE2 (wg0): Invalid argument) when I try to bring up the interface.</p>
<p dir="auto">Apparently this is because, while the host system has access to the kernel module that enables wireguard, the jail does not.</p>
<p dir="auto">After a bit of research, it seems that the way to handle this is to put the declaration<br />
if_wg_load="YES"<br />
into /boot/loader.conf, or perhaps into a file inside /boot/loader.conf.d.</p>
<p dir="auto">However, Bastille sets up /boot as a read-only filesystem.</p>
<p dir="auto">Hence the only way I can see to fix this is to edit the fstab for this jail and change the flags for /boot to rw from ro, restart the jail, edit the necessary files, and then go back out to the host and reset the flags in fstab.</p>
<p dir="auto">Now, call me an optimist, but I suspect the good folks behind Bastille will already have seen this problem and worked out a less awkward solution - I just can't find it anywhere. Am I missing something?</p>
<p dir="auto">Many thanks as ever,</p>
<p dir="auto">---WBTD.</p>
]]></description><link>https://billboard.bsd.cafe/topic/318/wireguard-in-a-bastille-jail-getting-if_wg_load-to-work</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 05:20:16 GMT</lastBuildDate><atom:link href="https://billboard.bsd.cafe/topic/318.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Aug 2026 16:57:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wireguard in a Bastille jail - getting if_wg_load to work? on Mon, 03 Aug 2026 17:40:10 GMT]]></title><description><![CDATA[<p dir="auto">...and it was an idiot error. I had to enable wg in the host kernel. I knew it was built into the kernel these days...I just hadn't realised I needed to <em>enable</em> it.  --&gt;facepalm&lt;--</p>
]]></description><link>https://billboard.bsd.cafe/post/926</link><guid isPermaLink="true">https://billboard.bsd.cafe/post/926</guid><dc:creator><![CDATA[yetiinabox]]></dc:creator><pubDate>Mon, 03 Aug 2026 17:40:10 GMT</pubDate></item><item><title><![CDATA[Reply to Wireguard in a Bastille jail - getting if_wg_load to work? on Mon, 03 Aug 2026 17:24:53 GMT]]></title><description><![CDATA[<p dir="auto">&lt;sigh/&gt; The awkward solution does not appear to work, either. Any suggestions?</p>
]]></description><link>https://billboard.bsd.cafe/post/925</link><guid isPermaLink="true">https://billboard.bsd.cafe/post/925</guid><dc:creator><![CDATA[yetiinabox]]></dc:creator><pubDate>Mon, 03 Aug 2026 17:24:53 GMT</pubDate></item></channel></rss>