<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Sysadmin Tales</title>
    <link>https://blog.ssb-tech.net/</link>
    <description>Recent content on Sysadmin Tales</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 13 Oct 2026 12:39:05 -0400</lastBuildDate>
    <atom:link href="https://blog.ssb-tech.net/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Setting up Dozzle with OIDC via Authentik</title>
      <link>https://blog.ssb-tech.net/posts/dozzle-oidc-setup/</link>
      <pubDate>Tue, 13 Oct 2026 12:15:52 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/dozzle-oidc-setup/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://dozzle.dev&#34;&gt;Dozzle&lt;/a&gt; is a great little utility container to view logs, and potentially stop and start other containers.&lt;/p&gt;&#xA;&lt;p&gt;I had occasionally used it when in a more lengthy troubleshooting session in order to stop relying on just &lt;code&gt;docker logs -f&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;However, I decided yesterday to set up something a bit more permanent.&lt;/p&gt;&#xA;&lt;p&gt;Each of my Docker hosts runs a Traefik instance to terminate SSL, and it now has a dedicated path &lt;code&gt;/dozzle&lt;/code&gt; that takes me to the host&amp;rsquo;s logs.&lt;/p&gt;&#xA;&lt;p&gt;However, I didn&amp;rsquo;t want to just leave my logs out there for anyone who&amp;rsquo;s on my network to see, so I put it behind OIDC authentication.&lt;/p&gt;&#xA;&lt;p&gt;I was already using &lt;a href=&#34;https://goauthentik.io/&#34;&gt;Authentik&lt;/a&gt; for my self-hosted OIDC needs, so I wanted to use that.&lt;/p&gt;&#xA;&lt;p&gt;Dozzle themselves had some &lt;a href=&#34;https://dozzle.dev/guide/authentication/oidc#authentik&#34;&gt;guidance on setting up Authentik&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Dozzle requests a non-standard &amp;ldquo;roles&amp;rdquo; claim in addition to the normal &amp;ldquo;openid email profile&amp;rdquo; scopes.&lt;/p&gt;&#xA;&lt;p&gt;However, even with those docs it took some playing around to get this working. I will document what worked for me.&lt;/p&gt;&#xA;&lt;p&gt;If I remember I may also open a pull request to try and improve their docs.&lt;/p&gt;&#xA;&lt;p&gt;Create your Dozzle application and OIDC provider as normal in Authentik.&lt;/p&gt;&#xA;&lt;p&gt;Next, go into Customization &amp;gt; Property Mappings, and create a new Scope Mapping.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Screenshot&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/dozzle-oidc-setup/images/authentik-scopes.png&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;The expression, for easy copy and pasting.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-py&#34; data-lang=&#34;py&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;roles &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; []&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; request&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;user&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;ak_groups&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;filter(name&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;dozzle-admins&amp;#34;&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;exists():&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    roles&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;append(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;all&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;elif&lt;/span&gt; request&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;user&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;ak_groups&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;filter(name&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;dozzle-users&amp;#34;&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;exists():&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    roles&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;append(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;download&amp;#34;&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; {&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;dozzle_roles&amp;#34;&lt;/span&gt;: roles}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Go to your directory and ensure that you have at least a &amp;ldquo;dozzle-admins&amp;rdquo; group created.&lt;/p&gt;&#xA;&lt;p&gt;Your user account should be added into the group.&lt;/p&gt;&#xA;&lt;p&gt;Edit your Dozzle OIDC provider and add the custom property mapping you created earlier to your selected scopes under &amp;ldquo;Advanced Protocol Settings&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;This is also a good time to ensure that you have the correct Redirect URIs defined.&lt;/p&gt;&#xA;&lt;p&gt;I have a regex Authorization URI that looks like this:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;^https://[a-zA-Z0-9-]+\.lan\.example\.com/dozzle.*$&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You&amp;rsquo;ll need to add some environment variables to your Dozzle Docker Compose file.&lt;/p&gt;&#xA;&lt;p&gt;It should looks something like this:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;---&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;services&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;dozzle&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;amir20/dozzle:v11.3.1-alpine@sha256:55e5e0686c745314481fc24aef1aa99a741a99785b15bb0cb911b00380279429&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;container_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;dozzle&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;/var/run/docker.sock:/var/run/docker.sock&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;dozzle_data:/data&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;labels&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.dozzle.rule=Host(`docker01.{{ TRAEFIK_HOST_DOMAIN }}`) &amp;amp;&amp;amp; PathPrefix(`/dozzle`)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.enable=true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.dozzle.entrypoints=websecure&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.dozzle.service=dozzle&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.services.dozzle.loadbalancer.server.port=8080&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.dozzle.tls=true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;environment&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#75715e&#34;&gt;# - DOZZLE_ENABLE_ACTIONS=true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#75715e&#34;&gt;# Uncomment to allow access to container shells. See https://dozzle.dev/guide/shell&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#75715e&#34;&gt;# - DOZZLE_ENABLE_SHELL=true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#75715e&#34;&gt;# Uncomment to enable authentication. See https://dozzle.dev/guide/authentication&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#75715e&#34;&gt;# - DOZZLE_AUTH_PROVIDER=simple&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#75715e&#34;&gt;# Label this Dozzle instance (shown in the header and multi-host menu). See https://dozzle.dev/guide/hostname&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DOZZLE_HOSTNAME=docker01&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DOZZLE_BASE=/dozzle&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DOZZLE_AUTH_PROVIDER=oidc&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DOZZLE_AUTH_OIDC_ISSUER=https://{{ AUTHENTIK_HOST }}/application/o/dozzle/&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DOZZLE_AUTH_OIDC_CLIENT_ID={{ dozzle_oidc_id }}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DOZZLE_AUTH_OIDC_CLIENT_SECRET={{ dozzle_oidc_secret }}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DOZZLE_AUTH_OIDC_ROLES_CLAIM=dozzle_roles&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DOZZLE_AUTH_OIDC_SCOPES=roles&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;dozzle_data&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>New Theme Papermod</title>
      <link>https://blog.ssb-tech.net/posts/new-theme-papermod/</link>
      <pubDate>Fri, 02 Oct 2026 21:20:58 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/new-theme-papermod/</guid>
      <description>&lt;p&gt;Anyone who&amp;rsquo;s viewing this via the actual website rather than the &lt;a href=&#34;https://blog.ssb-tech.net/index.xml&#34;&gt;RSS feed&lt;/a&gt; will likely have noticed that things look a little different now.&lt;/p&gt;&#xA;&lt;p&gt;There was nothing really wrong with the old &lt;a href=&#34;https://github.com/vaga/hugo-theme-m10c&#34;&gt;m10c&lt;/a&gt; theme, but I was bored of it and it was missing some features that I wanted like tags and built in search.&lt;/p&gt;&#xA;&lt;p&gt;I quite like the look of the new theme, &lt;a href=&#34;https://github.com/adityatelange/hugo-PaperMod&#34;&gt;Hugo-Papermod&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve done my best to avoid any differences in the RSS XML that would result in your RSS readers showing &lt;em&gt;all&lt;/em&gt; of my posts as new, but if I screwed it up&amp;hellip; Sorry?&lt;/p&gt;&#xA;&lt;p&gt;&lt;del&gt;And I&amp;rsquo;ll do it again!&lt;/del&gt;&lt;/p&gt;&#xA;&lt;p&gt;I also added tags to all of the older posts to aid in discovery. (And also to find my own old posts when I need to, because a lot of these I use as a reference, especially my &lt;a href=&#34;https://blog.ssb-tech.net/posts/proxmox-setup-notes&#34;&gt;Proxmox setup guide&lt;/a&gt;.)&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Set up auto-renewing HTTPS certificates on a GLiNet KVM</title>
      <link>https://blog.ssb-tech.net/posts/glinet-tailscale-certs/</link>
      <pubDate>Fri, 02 Oct 2026 20:21:30 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/glinet-tailscale-certs/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m quite fond of the small little IP KVMs that have become more and more available lately.&lt;/p&gt;&#xA;&lt;p&gt;My favorites are the JetKVM and the GliNet Comet series.&lt;/p&gt;&#xA;&lt;p&gt;I have 2 of the Comets that I use internally, and I mostly access them via their Tailscale ts.net names.&lt;/p&gt;&#xA;&lt;p&gt;I &lt;em&gt;could&lt;/em&gt; do I what I usually do and put them behind a reverse proxy, but there&amp;rsquo;s one of these that I keep in my work bag and take with me onto client sites, so there&amp;rsquo;s no reverse proxy in that scenario.&lt;/p&gt;&#xA;&lt;p&gt;I could just ignore the certificate error, but where&amp;rsquo;s the fun in that when we can fix it?&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Activate and log into Tailscale on your device.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Ensure that HTTPS is enabled for your TailNet. This can be done &lt;a href=&#34;https://console.tailscale.com/admin/settings/general&#34;&gt;here.&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;SSH into the GliNet KVM.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Update Tailscale, you heathen.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;tailscale update&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Once Tailscale is updated, lets create the renewal script.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vi /etc/tailscale-cert-renew.sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And the contents of the script:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;#!/bin/sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;set -eu&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;HOSTNAME&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;your-kvm.your-tailnet.ts.net&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;CERT_DIR&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;/etc/kvmd/user/ssl&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;TMP_DIR&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;/tmp/tailscale-cert&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;RENEWAL_WINDOW&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1209600&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;# 14 days&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Exit if the existing certificate is valid for more than 14 days.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; openssl x509 &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    -checkend &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$RENEWAL_WINDOW&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    -noout &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    -in &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_DIR&lt;span style=&#34;color:#e6db74&#34;&gt;/server.crt&amp;#34;&lt;/span&gt; &amp;gt;/dev/null 2&amp;gt;&amp;amp;1; &lt;span style=&#34;color:#66d9ef&#34;&gt;then&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    exit &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;fi&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Certificate expires within 14 days. Renewing...&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rm -rf &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$TMP_DIR&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mkdir -p &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$TMP_DIR&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;CERT&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$TMP_DIR&lt;span style=&#34;color:#e6db74&#34;&gt;/server.crt&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;KEY&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$TMP_DIR&lt;span style=&#34;color:#e6db74&#34;&gt;/server.key&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;tailscale cert &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --cert-file&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    --key-file&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$KEY&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$HOSTNAME&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Make sure we actually received a valid certificate.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;openssl x509 &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    -in &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    -noout &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    -subject &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    -issuer &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    -dates&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Replace the existing certificate and key.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cp &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_DIR&lt;span style=&#34;color:#e6db74&#34;&gt;/server.crt&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cp &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$KEY&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_DIR&lt;span style=&#34;color:#e6db74&#34;&gt;/server.key&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rm -rf &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$TMP_DIR&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Restart the KVM&amp;#39;s nginx instance.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;/etc/init.d/S99kvmd-nginx restart&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Tailscale certificate renewed and nginx restarted.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Make the script executable.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;chmod &lt;span style=&#34;color:#ae81ff&#34;&gt;700&lt;/span&gt; /etc/tailscale-cert-renew.sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Run the script once to test it.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;/etc/tailscale-cert-renew.sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You should be able to reload the GLiNet web interface and see that you have a valid LetsEncrypt certificate for your Tailscale MagicDNS name.&lt;/p&gt;&#xA; &lt;div class=&#34;callout callout-aside&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Aside&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;Make sure you&amp;rsquo;re accessing the device at &lt;code&gt;your-kvm.yourtailnet.ts.net&lt;/code&gt; and not it&amp;rsquo;s IP address, or the certificate won&amp;rsquo;t validate.&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Now, lets create a cron job to run the script automatically. The GliNet KVMs already run a cron daemon (at least the ones that I&amp;rsquo;ve used do) - so you should be able to directly edit the crontab.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;crontab -e&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To run the script once a day at 0300:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;0 3 * * * /etc/tailscale-cert-renew.sh&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;You should now have a GliNet KVM that automatically renews your Tailscale certificates when needed. :)&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>RSS Feeds I Follow</title>
      <link>https://blog.ssb-tech.net/feeds/</link>
      <pubDate>Mon, 21 Sep 2026 21:54:00 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/feeds/</guid>
      <description>&lt;p&gt;The following is a list of RSS feeds I follow in &lt;a href=&#34;https://miniflux.app&#34;&gt;Miniflux&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ll try to remember to come back and update this on occasion.&lt;/p&gt;&#xA;&lt;h2 id=&#34;cybersecurity&#34;&gt;cybersecurity&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.badsectorlabs.com/&#34;&gt;Bad Sector Labs Blog&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://samcurry.net/&#34;&gt;Blog | Sam Curry&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://crankysec.com/&#34;&gt;CrankySec&lt;/a&gt; - Fuck InfoSec&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.ctrl.blog/&#34;&gt;Ctrl blog&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://cybermattlee.com/&#34;&gt;CyberMattLee&lt;/a&gt; - Rising tides raise all ships.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://krebsonsecurity.com/&#34;&gt;Krebs on Security&lt;/a&gt; - In-depth security news and investigation&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.mozilla.org/security&#34;&gt;Mozilla Security Blog&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.projectnightcrawler.dev/posts/&#34;&gt;Nightmare Eclipse&lt;/a&gt; - Recent content in Posts on PNC Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://risky.biz/&#34;&gt;Risky Bulletin&lt;/a&gt; - Regular cybersecurity news updates from the Risky Business team&amp;hellip;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://threatpost.com/&#34;&gt;Threatpost&lt;/a&gt; - The First Stop For Security News&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.vulncheck.com/blog&#34;&gt;VulnCheck Blog&lt;/a&gt; - Blog posts we have recently written or historic blog posts we have written in the past.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;development---open-source&#34;&gt;development - open source&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.1-800-rad-dude.com&#34;&gt;1-800-RAD-DUDE.com Blog&lt;/a&gt; - 1-800-rad-dude.com Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://popey.com/blog/&#34;&gt;Alan Pope&amp;rsquo;s blog&lt;/a&gt; - Recent content on Alan Pope&amp;rsquo;s blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.alistairshepherd.uk/&#34;&gt;Alistair Shepherd&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://antennapod.org/blog&#34;&gt;AntennaPod Blog&lt;/a&gt; - AntennaPod Blog posts&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://anubis.techaro.lol/blog&#34;&gt;Anubis Blog&lt;/a&gt; - Anubis Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.bigdinosaur.org/&#34;&gt;BigDino Blog&lt;/a&gt; - Tales of hacking and stomping on things, by Lee Hutchinson&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.linode.com&#34;&gt;Blog – Linode&lt;/a&gt; - Cloud Computing Services Developers Trust&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://restic.net/blog/&#34;&gt;Blog on restic&lt;/a&gt; - Recent content in Blog on restic&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://chriswiegman.com/&#34;&gt;Chris Wiegman - Notes&lt;/a&gt; - The full list of notes on this site.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.codeberg.org/&#34;&gt;Codeberg News&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.codinghorror.com/&#34;&gt;Coding Horror&lt;/a&gt; - programming and human factors&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://danb.me/blog/&#34;&gt;Danb Blog&lt;/a&gt; - Recent content on Danb Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://despairlabs.com/blog/&#34;&gt;despair labs&lt;/a&gt; - Recent content on despair labs&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.docker.com/blog&#34;&gt;Docker Blog&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://fasterthanli.me/&#34;&gt;fasterthanli.me&lt;/a&gt; - amos likes to tinker&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://fastmail.blog/&#34;&gt;FastMail blog&lt;/a&gt; - Blog posts from the Fastmail team&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://f-droid.org/en/&#34;&gt;F-Droid - Free and Open Source Android App Repository&lt;/a&gt; - F-Droid is an installable catalogue of FOSS (Free and Open Source Software) applications for the Android platform. The client makes it easy to browse, install,…&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://theorangeone.net/&#34;&gt;Feed :: TheOrangeOne&lt;/a&gt; - All pages&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://forgejo.org/&#34;&gt;Forgejo News&lt;/a&gt; - Forgejo is a self-hosted lightweight software forge. Easy to install and low maintenance, it just does the job.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://nickjanetakis.com/&#34;&gt;From Development to Production on Nick Janetakis&lt;/a&gt; - Recent content in From Development to Production on Nick Janetakis&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://grafana.com/blog/&#34;&gt;Grafana Labs Blog on Grafana Labs&lt;/a&gt; - Recent content in Grafana Labs blog on Grafana Labs&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.healthchecks.io/&#34;&gt;Healthchecks.io&lt;/a&gt; - The Joy of Building a Cron Monitoring Service&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://enchantedcode.co.uk/&#34;&gt;Home on Enchanted Code&lt;/a&gt; - Recent content in Home on Enchanted Code&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.ilja.space/&#34;&gt;ilja&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://immich.app/blog&#34;&gt;Immich Blog&lt;/a&gt; - Immich Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://info.linuxserver.io/&#34;&gt;Info :: LinuxServer.io&lt;/a&gt; - History&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://jakob.fun/&#34;&gt;Jakob.fun&lt;/a&gt; - The place where Jakob&amp;rsquo;s silly and serious thoughts coalesce into words roughly biannually&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://jonathanh.co.uk&#34;&gt;Jonathan Hodgson&lt;/a&gt; - Jonathan Hodgson&amp;rsquo;s Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://thesquareplanet.com/&#34;&gt;Jon Gjengset&lt;/a&gt; - PhD Student, Software Engineer and problem solver&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://lervag.github.io/&#34;&gt;lervag&amp;rsquo;s blog&lt;/a&gt; - Recent content on lervag&amp;rsquo;s blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://leshicodes.github.io/blog&#34;&gt;LeshiCodes Blog&lt;/a&gt; - LeshiCodes Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://kroah.com/log/&#34;&gt;Linux Kernel Monkey Log&lt;/a&gt; - Recent content on Linux Kernel Monkey Log&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.linuxserver.io/blog&#34;&gt;LinuxServer.io Blog&lt;/a&gt; - Posts n stuff&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://loadbearingtomato.com/&#34;&gt;Load-bearing Tomato&lt;/a&gt; - Revealing the unholy truths about game development.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://lobste.rs/&#34;&gt;lobste.rs&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://ludic.mataroa.blog/&#34;&gt;Ludicity&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.linuxgrrl.com/&#34;&gt;Máirín Duffy&lt;/a&gt; - Dearadh Oscailte Abú! (Open Design Forever!)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://matrix.org&#34;&gt;matrix.org&lt;/a&gt; - The Matrix.org Foundation&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://mwl.io/&#34;&gt;Michael W Lucas&lt;/a&gt; - I do everything wrong, but wrong works for me.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://isaaclyman.com/blog/&#34;&gt;Minimum Viable Blog&lt;/a&gt; - Recent content on Minimum Viable Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://mischavandenburg.com/&#34;&gt;Mischa van den Burg&lt;/a&gt; - Recent content in Home on Mischa van den Burg&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://linderud.dev/&#34;&gt;Morten Linderud&lt;/a&gt; - Recent content on Morten Linderud&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://openssf.org/&#34;&gt;Open Source Security Foundation&lt;/a&gt; - Linux Foundation Projects&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://opentofu.org/blog&#34;&gt;OpenTofu Blog&lt;/a&gt; - OpenTofu Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://pemonthly.com/&#34;&gt;Platform Engineering Monthly&lt;/a&gt; - A monthly newsletter on Platform Engineering topics.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://plausible.io/&#34;&gt;Plausible Analytics&lt;/a&gt; - Plausible is a lightweight and open-source Google Analytics alternative. Your website data is 100% yours and the privacy of your visitors is respected.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://jellyfin.org/posts/&#34;&gt;Posts on Jellyfin: The Free Software Media System&lt;/a&gt; - Jellyfin Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://stephango.com/&#34;&gt;Steph Ango (Obsidian Dev)&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://tailscale.dev/blog&#34;&gt;Tailscale Community&lt;/a&gt; - The official community site for developers building with Tailscale. Find how-tos, solutions, and integrations to build your own secure network that just works.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://taoofmac.com&#34;&gt;Tao of Mac&lt;/a&gt; - The Tao of Mac is the personal wiki of Rui Carmo, featuring a technology-oriented blog, links to articles, several compilations of resources around various key…&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.atuin.sh/&#34;&gt;The Atuin Blog&lt;/a&gt; - Updates and news about Atuin, the magical shell tool&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.cloudflare.com/&#34;&gt;The Cloudflare Blog&lt;/a&gt; - Get the latest news on how products at Cloudflare are built, technologies used, and join the teams helping to build a better Internet.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.digitalocean.com/&#34;&gt;The DigitalOcean Blog&lt;/a&gt; - The latest from DigitalOcean, the developer cloud for modern apps.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.thunderbird.net&#34;&gt;The Thunderbird Blog&lt;/a&gt; - News, previews, and guides from the Thunderbird Team&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.thechases.com&#34;&gt;Tim&amp;rsquo;s blog&lt;/a&gt; - Random ponderings&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://unixdigest.com/&#34;&gt;Unix Digest - Articles&lt;/a&gt; - Articles (occasional rants) about open source, BSD, GNU/Linux, system administration, programming, and other stuff - the pragmatic way&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://unixdigest.com/&#34;&gt;Unix Digest - Tutorials&lt;/a&gt; - Tutorials related to open source, BSD, GNU/Linux, system administration, programming, and other stuff - the pragmatic way&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.uptimerobot.com/&#34;&gt;Uptime Robot  - Blog&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://xeiaso.net/&#34;&gt;Xe Iaso&amp;rsquo;s blog&lt;/a&gt; - Thoughts and musings from Xe Iaso&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;gaming-and-multimedia&#34;&gt;gaming and multimedia&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://aftermath.site/&#34;&gt;Aftermath&lt;/a&gt; - A website about video games, internet culture &amp;amp; more&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.gamingonlinux.com/&#34;&gt;GamingOnLinux Latest Articles&lt;/a&gt; - The latest articles from GamingOnLinux&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.gematsu.com/&#34;&gt;Gematsu&lt;/a&gt; - Japanese Video Game News&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://kotaku.com/&#34;&gt;Kotaku&lt;/a&gt; - Gaming Reviews, News, Tips and More.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://maxutmost.com/&#34;&gt;Maximum Utmost&lt;/a&gt; - Eclectic Gaming Reviews, Articles, and Podcasts for the Boring Averse&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://nuclearmonster.com/&#34;&gt;Nuclear Monster&lt;/a&gt; - A New Internet Website About Video Games &amp;amp; More.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;home-automation&#34;&gt;home automation&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.home-assistant.io/&#34;&gt;Home Assistant&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.mylocalbytes.com/&#34;&gt;Local Bytes Blog&lt;/a&gt; - LocalBytes Blog&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;homelab---selfhosting&#34;&gt;homelab - selfhosting&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.alexsguardian.net/&#34;&gt;Alex&amp;rsquo;s Blog&lt;/a&gt; - Sometimes I blog about my homelab or other various things.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.apalrd.net/&#34;&gt;apalrd&amp;rsquo;s adventures blog&lt;/a&gt; - Recent content in Home on apalrd&amp;rsquo;s adventures&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://mark.apalrd.net/index.xml&#34;&gt;Apalrd&amp;rsquo;s Bookmarks&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.briancmoses.com/&#34;&gt;briancmoses.com (DIY NAS dude)&lt;/a&gt; - Brian&amp;rsquo;s blog about DIY NAS servers, homelab servers, 3D-design, 3D-printing, and anything else that captures Brian&amp;rsquo;s attention!&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.ppb1701.com/&#34;&gt;ByteHaven - Where I ramble about bytes&lt;/a&gt; - Latest posts from ByteHaven - Where I ramble about bytes&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://chrispro.tech/&#34;&gt;ChrisProTech&lt;/a&gt; - Aussie tech blog around Windows, Networking, and Homelabbing.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://jondauti.wordpress.com/&#34;&gt;Fatjon Dauti&lt;/a&gt; - What I learned on my own I still remember&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://frame.work/gb/en&#34;&gt;Framework Blog&lt;/a&gt; - RSS feed for Framework Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://franfabrizio.dev/&#34;&gt;franfabrizio.dev&lt;/a&gt; - Recent content on franfabrizio.dev&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.fuzzymistborn.com/post/&#34;&gt;FuzzyMistborn - Posts on Random Musings&lt;/a&gt; - Recent content in Posts on Random Musings&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://jcx.life&#34;&gt;jcx.life&lt;/a&gt; - Welcome to jcx.life: my own little corner of the internet&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.jeffgeerling.com/&#34;&gt;Jeff Geerling&amp;rsquo;s Blog&lt;/a&gt; - Recent content on Jeff Geerling&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.ktz.me/&#34;&gt;ktz.&lt;/a&gt; - Podcaster. Musician. Photographer. Tailscalar.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://mag37.org/&#34;&gt;mag37.org&lt;/a&gt; - Recent content on mag37.org&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.midwesternrodent.com/&#34;&gt;MidwesternRodent&lt;/a&gt; - Recent content on MidwesternRodent&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://shanedowling.com/posts/&#34;&gt;Posts on Shane Dowling&lt;/a&gt; - Recent content in Posts on Shane Dowling&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://randoneering.tech/blog/&#34;&gt;Randoneering&amp;rsquo;s Blog&lt;/a&gt; - Recent content in Blog on&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://selfh.st/&#34;&gt;selfh.st&lt;/a&gt; - Self-hosted news, content, updates, and more.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://muoi.me/~stratself/&#34;&gt;stratself&amp;rsquo;s blog&lt;/a&gt; - stratself&amp;rsquo;s blog: sometimes it might makes sense&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://sysadminsjournal.com/&#34;&gt;SysAdmins Journal&lt;/a&gt; - The IT Journal by IT Admins, for IT Admins from the maintainers of Homebox and other open-source projects.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://lab.rapternet.us/&#34;&gt;Systems Lab&lt;/a&gt; - Just another tech blag&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://technotim.com/&#34;&gt;Techno Tim&lt;/a&gt; - Techno Tim Home - Documentation and More&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.tymscar.com/&#34;&gt;The Tymscar Blog&lt;/a&gt; - Recent content on The Tymscar Blog&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;linux&#34;&gt;linux&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://itsfoss.com/feed&#34;&gt;It&amp;rsquo;s FOSS&lt;/a&gt; - Making You a Better Linux User&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.cyberciti.biz/&#34;&gt;nixCraft&lt;/a&gt; - Linux Tips, Hacks, Tutorials, And Ideas In Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.omgubuntu.co.uk/&#34;&gt;OMG! Ubuntu&lt;/a&gt; - Ubuntu News, Apps, Tips &amp;amp; More&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://veronicaexplains.net/&#34;&gt;Veronica Explains&lt;/a&gt; - Linux mom, vintage tech enthusiast, nerdy musician.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;networking&#34;&gt;networking&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://tailscale.com/blog/&#34;&gt;Blog on Tailscale&lt;/a&gt; - Recent blog posts from Tailscale&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.ipspace.net/&#34;&gt;ipSpace.net blog&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;privacy&#34;&gt;privacy&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://thelocalstack.eu/&#34;&gt;THE LOCAL STACK&lt;/a&gt; - Recent content on THE LOCAL STACK&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://adguard.com/en/blog/index.html&#34;&gt;AdGuard Blog&lt;/a&gt; - Thoughts, stories and ideas.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://fulu-foundation.ghost.io/&#34;&gt;FULU&lt;/a&gt; - FULU Foundation exists to inform, mobilize, and equip consumers to take back control over their devices and content.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://noyb.eu/en&#34;&gt;noyb.eu - My Privacy is None of Your Business&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.privacyguides.org/&#34;&gt;Privacy Guides&lt;/a&gt; - Privacy Guides is the most popular &amp;amp; trustworthy non-profit privacy resource to find privacy tools and learn about protecting your digital life.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.lukaszolejnik.com/&#34;&gt;Security, Privacy &amp;amp; Tech Inquiries&lt;/a&gt; - I write about security, privacy, Web, technology and tech policy matters.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://www.mullvad.net/blog/&#34;&gt;The Mullvad Blog&lt;/a&gt; - Keep up to date on developments at Mullvad. New versions of our client, security updates, job posts - find it all here.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://proton.me&#34;&gt;The Proton Blog&lt;/a&gt; - News from the front lines of privacy and security&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://protonvpn.com/blog/&#34;&gt;The Proton VPN Blog&lt;/a&gt; - Free VPN News&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://torrentfreak.com/&#34;&gt;TorrentFreak&lt;/a&gt; - Breaking File-sharing, Copyright and Privacy News&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;tech---general&#34;&gt;tech - general&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://virtualize.link/&#34;&gt;Advanced Configurations&lt;/a&gt; - Advanced configurations for containers&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://annoying.technology/&#34;&gt;Annoying Technology&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://arstechnica.com/&#34;&gt;Ars Technica&lt;/a&gt; - Serving the Technologist since 1998. News, reviews, and analysis.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://goauthentik.io/blog&#34;&gt;authentik Blog&lt;/a&gt; - authentik Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.backblaze.com/blog&#34;&gt;Backblaze Blog | Cloud Storage &amp;amp; Cloud Backup&lt;/a&gt; - Cloud Storage &amp;amp; Cloud Backup&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.bleepingcomputer.com/&#34;&gt;BleepingComputer&lt;/a&gt; - BleepingComputer - All Stories&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://chipsandcheese.com&#34;&gt;Chips and Cheese&lt;/a&gt; - The Devil is in the Details! Deep dives into computer hardware and software and the wider industry&amp;hellip;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://utcc.utoronto.ca/~cks/space/blog/&#34;&gt;Chris&amp;rsquo;s Wiki :: blog&lt;/a&gt; - Recently changed pages in Chris&amp;rsquo;s Wiki :: blog.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://pluralistic.net/&#34;&gt;Cory Doctorow&amp;rsquo;s Blog&lt;/a&gt; - No trackers, no ads. Black type, white background. Privacy policy: we don&amp;rsquo;t collect or retain any data at all ever period.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://cyb.org.uk/&#34;&gt;cyb.org.uk&lt;/a&gt; - blogging about technology &amp;amp; open source&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.wheresyoured.at/&#34;&gt;Ed Zitron&amp;rsquo;s Where&amp;rsquo;s Your Ed At&lt;/a&gt; - The Words of Ed Zitron, a PR person and writer.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://foss.video/&#34;&gt;Foss.video&lt;/a&gt; - Welcome to Foss.video, a PeerTube instance dedicated to hosting providers of free and open source software! Interacting with this instanceWe don&amp;rsquo;t have sign-up…&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.howtogeek.com/feed/&#34;&gt;How-To Geek&lt;/a&gt; - We explain technology. Learn more with our articles, reviews, tips, and the best answers to your most pressing tech questions.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.jasonkuehl.com/&#34;&gt;Jason Kuehl Blog&lt;/a&gt; - Recent content on Jason Kuehl Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://jellywatch.app/blog&#34;&gt;JellyWatch Blog&lt;/a&gt; - Latest news, updates, and tips from the JellyWatch team.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://jrs-s.net&#34;&gt;JRS Systems: the blog&lt;/a&gt; - technomancy made simple&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://klarasystems.com/&#34;&gt;Klara Inc&lt;/a&gt; - Open Source Development. Reimagined.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.tomshardware.com/feeds.xml&#34;&gt;Latest from Tom&amp;rsquo;s Hardware&lt;/a&gt; - All the latest content from the Tom&amp;rsquo;s Hardware team&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://laurenleek.substack.com&#34;&gt;Lauren’s data Substack&lt;/a&gt; - Machine learning and maps applied to the ordinary infrastructure of daily life: third places, platform algorithms, neighbourhoods, and the politics of what get…&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://letsencrypt.org/&#34;&gt;Let&amp;rsquo;s Encrypt&lt;/a&gt; - Let&amp;rsquo;s Encrypt is a free, automated, and open Certificate Authority brought to you by the nonprofit &lt;a href=&#34;https://www.abetterinternet.org/&#34;&gt;Internet Security…&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://liliputing.com/&#34;&gt;Liliputing&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.lttlabs.com/blog/rss.xml&#34;&gt;LTT Labs: Blog&lt;/a&gt; - Welcome to LTT Labs - your go-to destination for all things tech. Explore comprehensive test results, insightful commentary, and the latest analysis in hardwar…&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.ssb-tech.net/&#34;&gt;My Blog&lt;/a&gt; - Recent content on Sysadmin Tales: A Blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://neilzone.co.uk/&#34;&gt;Neil&amp;rsquo;s blog&lt;/a&gt; - Recent content on Neil&amp;rsquo;s blog&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://nonsense.fyi/&#34;&gt;Nonsense, for your Information&lt;/a&gt; - Recent content on nonsense.fyi&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://nooneshappy.com/&#34;&gt;No One&amp;rsquo;s Happy&lt;/a&gt; - Learn, evolve, and get better at working together.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://opensource.net/&#34;&gt;OpenSource.net&lt;/a&gt; - Powered by open, united by community&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.phoronix.com/&#34;&gt;Phoronix&lt;/a&gt; - Linux Hardware Reviews, Performance Benchmarks &amp;amp; Open-Source / Free Software News&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://discourse.practicalzfs.com/top&#34;&gt;Practical ZFS - Top topics&lt;/a&gt; - Top topics&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.randoneering.dev/&#34;&gt;randoneering.dev&lt;/a&gt; - Random engineering in infrastructure, data, open source, and the great outdoors&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://jericho.blog/&#34;&gt;Rants of a deranged squirrel.&lt;/a&gt; - Rants of a Deranged Squirrel&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://secluded.site/posts/&#34;&gt;Secluded.Site&lt;/a&gt; - Recent content in Posts on Secluded.Site&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://serverhost.com/blog/&#34;&gt;ServerHost Hosting Solutions Blog&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.servethehome.com/&#34;&gt;ServeTheHome&lt;/a&gt; - Server and Workstation Reviews&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://sysadmin-central.com/&#34;&gt;Sysadmin Central&lt;/a&gt; - Covering all things IT&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://blog.system76.com/rss.xml&#34;&gt;System76 Blog RSS Feed&lt;/a&gt; - System76 Blog RSS Feed&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.spacebar.news/&#34;&gt;The Spacebar&lt;/a&gt; - An inside look at the technology around us.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://devblogs.microsoft.com/commandline/&#34;&gt;Windows Command Line&lt;/a&gt; - Windows Terminal, Console and Command Line, Windows Subsystem for Linux, WSL, Windows Package Manager&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;world-news&#34;&gt;world news&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.404media.co/&#34;&gt;404 Media&lt;/a&gt; - 404 Media is an independent media company founded by technology journalists Jason Koebler, Emanuel Maiberg, Samantha Cole, and Joseph Cox.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.techdirt.com/&#34;&gt;Techdirt&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.theregister.com/&#34;&gt;The Register&lt;/a&gt; - Biting the hand that feeds IT — Enterprise Technology News and Analysis&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
    <item>
      <title>Routing to Tailscale clients from a local network with OPNSense</title>
      <link>https://blog.ssb-tech.net/posts/opnsense-lan-to-tailscale-connectivity/</link>
      <pubDate>Sat, 15 Aug 2026 16:45:12 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/opnsense-lan-to-tailscale-connectivity/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;Effectively, what we&amp;rsquo;re trying to accomplish here today is the opposite of a Tailscale &lt;a href=&#34;https://tailscale.com/docs/features/subnet-routers&#34;&gt;Subnet Router&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;As in, allowing clients on our local network to talk to devices via their &lt;a href=&#34;https://tailscale.com/docs/concepts/tailscale-ip-addresses&#34;&gt;Tailscale subnet IP addresses&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;When I started looking into how to do this, I could not find a complete guide on the topic.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ll do my best to do this start to finish so that anyone else can follow along with me.&lt;/p&gt;&#xA;&lt;h2 id=&#34;prerequisites&#34;&gt;Prerequisites&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;You already have an OPNSense gateway setup and enabled as a Subnet Router on your Tailnet.&lt;/li&gt;&#xA;&lt;li&gt;You&amp;rsquo;ll also need to have approved the subnets that you told the Subnet Router to advertise in your admin console.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;recommendations&#34;&gt;Recommendations&lt;/h2&gt;&#xA;&lt;p&gt;Create an alias for the Tailscale subnet range so you can avoid typing it in 10x times.&lt;/p&gt;&#xA;&lt;p&gt;Firewall &amp;gt; Aliases&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Showing alias for tailscale subnet&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/opnsense-lan-to-tailscale-connectivity/images/tailscale-alias.png&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;explanation&#34;&gt;Explanation&lt;/h2&gt;&#xA;&lt;p&gt;Tailscale Subnet Routers by default use SNAT (Source NAT).&lt;/p&gt;&#xA;&lt;p&gt;This means that packets sent from your Tailscale devices &lt;em&gt;to&lt;/em&gt; the Subnet Router will go through Network Address Translation on their way to the local subnets you&amp;rsquo;ve advertised.&lt;/p&gt;&#xA;&lt;p&gt;So, any devices &lt;em&gt;inside&lt;/em&gt; your LAN by default will only ever see the IP address of your OPNSense gateway - they will not see the IP addresses of the individual Tailscale clients. This is the first thing that we will need to disable.&lt;/p&gt;&#xA;&lt;p&gt;Once we have this disabled, we&amp;rsquo;ll need to configure both a static route as well as firewall rules to allow the traffic to pass.&lt;/p&gt;&#xA;&lt;h2 id=&#34;step-by-step&#34;&gt;Step by step&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Log into your OPNSense router and navigate to VPN &amp;gt; Tailscale &amp;gt; Settings. You&amp;rsquo;ll need to toggle on &amp;ldquo;Advanced Mode&amp;rdquo;. Check the box for &amp;ldquo;Disable SNAT&amp;rdquo;.&#xA;&lt;img alt=&#34;Image showing how to disable SNAT in Tailscale&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/opnsense-lan-to-tailscale-connectivity/images/tailscale-disable-snat.png&#34;&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Now, what we need to do is create a static route - but before we can do that, we need to take care of some other items:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Add the Tailscale interface by going to Interfaces &amp;gt; Assignments. Click on the + button and add the Tailscale interface from the dropdown. Don&amp;rsquo;t forget to enable the interface - by default it will be added in a disabled state.&#xA;&lt;img alt=&#34;Tailscale interface in OPNSense&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/opnsense-lan-to-tailscale-connectivity/images/tailscale-interface.png&#34;&gt;&#xA;&lt;img alt=&#34;Tailscale interface configuration&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/opnsense-lan-to-tailscale-connectivity/images/tailscale-interface-2.png&#34;&gt;&lt;/li&gt;&#xA;&lt;li&gt;Create a new gateway - System &amp;gt; Gateways &amp;gt; Configuration. The interface should be &amp;ldquo;Tailscale&amp;rdquo;. Gateway name is technically arbitrary, but for the sake of simplicity I&amp;rsquo;ve also called it &amp;ldquo;Tailscale&amp;rdquo;. Make sure you disable gateway monitoring.&#xA;&lt;img alt=&#34;Tailscale Gateway setup&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/opnsense-lan-to-tailscale-connectivity/images/tailscale-gateway.png&#34;&gt;&lt;/li&gt;&#xA;&lt;li&gt;Now that we&amp;rsquo;ve done this, we can finally define our static route (System &amp;gt; Routes &amp;gt; Configuration). The Tailscale subnet is 100.64.0.0/10:&#xA;&lt;img alt=&#34;Tailscale static route configuration page&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/opnsense-lan-to-tailscale-connectivity/images/tailscale-route.png&#34;&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Now that we have the routing taken care of, we need to create some firewall rules to allow the traffic to pass. You&amp;rsquo;ll need to create at minimum 2 rules on the OPNSense side (Firewall &amp;gt; Rules):&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;On your LAN interface, define a rule that allows communication from your LAN to your Tailnet. For example -&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Interface: LAN (Or whatever yours is called)&#xA;Action: Pass&#xA;Source: LAN network&#xA;Destination: 100.64.0.0/10&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;li&gt;On your Tailscale interface, define the inverse:&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Interface: Tailscale&#xA;Action: Pass&#xA;Source: 100.64.0.0/10&#xA;Destination: LAN network&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Rule 1 may not be needed if you have the default &amp;ldquo;Allow All&amp;rdquo; rule in your configuration on the LAN interface. I do not, so I needed to allow that traffic.&lt;/p&gt;&#xA;&lt;p&gt;Feel free to restrict this traffic however you would like. Personally, I only allow through a few kinds of traffic - DNS, HTTP/HTTPS, and ICMP echo-request / echo-reply.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;You&amp;rsquo;ll also need to go into your &lt;a href=&#34;https://console.tailscale.com/admin/acls/visual/general-access-rules&#34;&gt;Tailscale ACL controls&lt;/a&gt; and allow access there from your local subnets.&#xA;&lt;img alt=&#34;Tailscale ACL screenshot&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/opnsense-lan-to-tailscale-connectivity/images/tailscale-acl.png&#34;&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Any device that you wish to reach via this connection needs to have the &lt;code&gt;--accept-routes&lt;/code&gt; option enabled when you run &lt;code&gt;tailscale up&lt;/code&gt;. The device you&amp;rsquo;re trying to access needs to have a route to get &lt;em&gt;back&lt;/em&gt; to your LAN subnet, after all.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;--accept-routes&lt;/code&gt; is enabled by default on MacOS and Windows, but disabled by default on Linux. Once enabled, the device should be reachable from any device on your LAN.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;You may also want to configure MSS clamping to avoid unnecessary IP fragmentation. Under Firewall &amp;gt; Settings &amp;gt; Normalization, click the + to add a new rule:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Interface: Select your assigned Tailscale interface.&#xA;Direction: Any&#xA;Max MSS: 1240 (for standard Tailscale 1280 MTU) or 1380 (if your Tailnet uses 1420 MTU).&#xA;Description: Clamp MSS for Tailscale traffic.&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I highly recommend thinking carefully about your firewall rules and Tailscale ACLs, and what you allow to connect to what.&lt;/p&gt;&#xA;&lt;p&gt;Now that I&amp;rsquo;ve gotten this working I&amp;rsquo;ll be spending some time narrowing my LAN to Tailnet access ACL down to specific tags. But that&amp;rsquo;s a whole other post.&lt;/p&gt;&#xA;&lt;h2 id=&#34;exit-node&#34;&gt;Exit Node&lt;/h2&gt;&#xA;&lt;p&gt;If, like me, you are also using your home OPNSense gateway as a Tailscale &lt;a href=&#34;https://tailscale.com/docs/features/exit-nodes&#34;&gt;Exit Node&lt;/a&gt;, you&amp;rsquo;ll quickly realize that this process broke it.&lt;/p&gt;&#xA;&lt;p&gt;The fix is simple, we need to add an Outbound NAT rule to replace the missing SNAT on the Tailscale service.&lt;/p&gt;&#xA;&lt;p&gt;Go to Firewall &amp;gt; NAT &amp;gt; Outbound.&lt;/p&gt;&#xA;&lt;p&gt;Your Outbound NAT mode must be set to &amp;ldquo;Hybrid&amp;rdquo; or &amp;ldquo;Manual&amp;rdquo;. If you don&amp;rsquo;t know what this means, set it to &amp;ldquo;Hybrid&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;Configure a rule that looks like this:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Interface: WAN&#xA;Source address: 100.64.0.0/10&#xA;Destination address: any&#xA;Translation target: Interface address&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;img alt=&#34;Example of outbound NAT rule&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/opnsense-lan-to-tailscale-connectivity/images/tailscale-nat.png&#34;&gt;.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Fluxer Over Tailscale</title>
      <link>https://blog.ssb-tech.net/posts/fluxer-over-tailscale/</link>
      <pubDate>Sat, 20 Jun 2026 21:36:21 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/fluxer-over-tailscale/</guid>
      <description>&lt;p&gt;This weekend I&amp;rsquo;ve been playing with setting up a self-hosted &lt;a href=&#34;https://fluxer.app&#34;&gt;Fluxer&lt;/a&gt; instance.&lt;/p&gt;&#xA;&lt;p&gt;In my traditional fashion, I made things much harder by myself by refusing to use their provided Caddy setup, and instead using Traefik.&lt;/p&gt;&#xA;&lt;p&gt;And for an additional challenge - I wanted this to be completely inaccessible from the public Internet, instead using my Tailscale mesh network.&lt;/p&gt;&#xA;&lt;p&gt;The setup required some heavy modifications to the Docker Compose file provided by Fluxer&amp;rsquo;s team, and a few tweaks to &lt;code&gt;livekit.yaml&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;The Docker Compose file for this service is extremely long, so instead of posting it inline here as I normally do, I have created this &lt;a href=&#34;https://gist.github.com/BladeWDR/1b062af5eede7e0c46a3446d46b4f889&#34;&gt;Gist&lt;/a&gt; containing both the modified Compose project and &lt;code&gt;livekit.yaml&lt;/code&gt;.&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;With this setup, I&amp;rsquo;m able to access Fluxer at &lt;code&gt;fluxer.mytailnet.ts.net&lt;/code&gt; with full TLS encryption and valid certificates.&lt;/p&gt;&#xA;&lt;p&gt;I am using:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A Tailscale sidecar container&lt;/li&gt;&#xA;&lt;li&gt;The Tailscale Traefik provider for TLS certificates&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Effectively, what you need to do is tell Traefik and the Livekit service to share the Tailscale container&amp;rsquo;s network namespace.&lt;/p&gt;&#xA;&lt;p&gt;Then we tell Livekit to advertise the Tailscale container&amp;rsquo;s IP address instead of the one for the Docker bridge (see &lt;code&gt;livekit.yaml&lt;/code&gt;, it&amp;rsquo;s the &lt;code&gt;node_ip&lt;/code&gt; setting).&lt;/p&gt;&#xA;&lt;p&gt;Note - you&amp;rsquo;ll need to add the &lt;code&gt;TS_SOCKET: /var/run/tailscale/tailscaled.sock&lt;/code&gt; environment variable to the Tailscale container, and pass the Tailscale socket through to the Traefik container - it needs access to the Tailscale daemon to be able to grab your certificates.&lt;/p&gt;&#xA;&lt;p&gt;You&amp;rsquo;ll also need to have &lt;a href=&#34;https://tailscale.com/docs/how-to/set-up-https-certificates&#34;&gt;enabled HTTPS on your Tailnet&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What works&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Text chat&lt;/li&gt;&#xA;&lt;li&gt;Voice chat&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;What doesn&amp;rsquo;t work (yet)&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Video chat - I think this has something to do with Livekit video codecs. I need to play a bit more with this and do some more testing.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
    <item>
      <title>Allow users to set Bitlocker PIN using PowerShell and RMM</title>
      <link>https://blog.ssb-tech.net/posts/powershell-setup-pin/</link>
      <pubDate>Thu, 28 May 2026 10:19:38 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/powershell-setup-pin/</guid>
      <description>&lt;p&gt;For a while now I&amp;rsquo;ve been searching for an automated way to have our clients with higher security needs (mostly local government offices.)&lt;/p&gt;&#xA;&lt;p&gt;Finally, I discovered this &lt;a href=&#34;https://localerror.com/intune/deploying-bitlocker-with-a-startup-pin-through-intune-and-powershell/&#34;&gt;post on how to do what I was looking for using Intune and ServiceUI.exe&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;ServiceUI.exe&lt;/code&gt; is a part of the old Microsoft Deployment Toolkit, which has since been deprecated, but I was able to extract the executable and simply use it as is.&lt;/p&gt;&#xA;&lt;p&gt;I had to make a few small adjustments to the script to make it behave with Datto RMM but now it works quite nicely.&lt;/p&gt;&#xA;&lt;p&gt;With Datto RMM specifically, you&amp;rsquo;ll need to attach &lt;code&gt;ServiceUI.exe&lt;/code&gt;, the PowerShell script, &lt;code&gt;setup.bat&lt;/code&gt; and your &lt;code&gt;company_logo.png&lt;/code&gt; to the custom component. (Company logo is technically optional, but it does make things look a lot more professional.)&lt;/p&gt;&#xA;&lt;p&gt;The actual component will be &amp;ldquo;Batch&amp;rdquo; and only runs the following command to invoke &lt;code&gt;ServiceUI.exe&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ServiceUI.exe -process:explorer.exe setup.bat&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Here is the contents of &lt;code&gt;setup.bat&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;%windir%\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -Executionpolicy bypass -file .\Set-BitlockerPIN.ps1&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And here is the PowerShell script itself:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-ps1&#34; data-lang=&#34;ps1&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&amp;lt;#&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;SYNOPSIS&lt;/span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;    This script sets up BitLocker with a user-defined PIN on the operating system volume.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;DESCRIPTION&lt;/span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;    The script creates a directory for BitLocker logs, prompts the user to set a BitLocker startup PIN through a GUI form, and configures BitLocker with the specified PIN. It ensures the PIN meets complexity requirements and logs the process. The script also handles the backup of the BitLocker recovery key to Azure AD.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;    The PIN supports letters, numbers, and special characters (Enhanced PIN). To use alphanumeric PINs, ensure the &amp;#34;Allow enhanced PINs for startup&amp;#34; Group Policy is enabled on the device.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;    A company logo is displayed on the PIN input form. The logo file should be named &amp;#34;Company_logo.png&amp;#34; and placed in the same directory as the script. If the logo file is not found, a warning will be displayed, but the script will continue to execute.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;.PARAMETER None&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;    This script does not take any parameters.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;EXAMPLE&lt;/span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;    Run the script without any parameters:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;    .\Set-BitlockerStartupPIN.ps1&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;NOTES&lt;/span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;    Author: Nivi Kolatte&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;    Date: 15.09.2024&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;    Version: 1.0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;    This script requires administrative privileges to run.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;    Ensure that &amp;#34;Company_logo.png&amp;#34; is available in the script&amp;#39;s directory for the logo to be displayed on the form.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;#&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Create Company\BitLocker folder if it doesn&amp;#39;t exist&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$bitlockerFolder = &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;C:\ProgramData\Company\BitLocker&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#f92672&#34;&gt;-not&lt;/span&gt; (Test-Path $bitlockerFolder)) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    New-Item -Path $bitlockerFolder -ItemType Directory -Force | Out-Null&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Create log file name with timestamp&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$timestamp = Get-Date -Format &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;yyyyMMdd_HHmmss&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$logFile = Join-Path $bitlockerFolder &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;BitLockerSetup_&lt;/span&gt;$timestamp&lt;span style=&#34;color:#e6db74&#34;&gt;.log&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$tagFile = Join-Path $bitlockerFolder &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;BitLockerSetupComplete.tag&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; Log-Message {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;param&lt;/span&gt;([&lt;span style=&#34;color:#66d9ef&#34;&gt;string&lt;/span&gt;]$message)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Add-Content -Path $logFile -Value &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$(Get-Date)&lt;span style=&#34;color:#e6db74&#34;&gt; - &lt;/span&gt;$message&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; Is-PinComplex {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;param&lt;/span&gt;([&lt;span style=&#34;color:#66d9ef&#34;&gt;string&lt;/span&gt;]$pin)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Check for sequential numbers (including partial sequences)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($pin &lt;span style=&#34;color:#f92672&#34;&gt;-match&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;01234|12345|23456|34567|45678|56789|67890&amp;#39;&lt;/span&gt;) { &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $false }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Check for reverse sequential numbers&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($pin &lt;span style=&#34;color:#f92672&#34;&gt;-match&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;98765|87654|76543|65432|54321|43210&amp;#39;&lt;/span&gt;) { &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $false }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Check for sequential letters (ascending)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($pin &lt;span style=&#34;color:#f92672&#34;&gt;-imatch&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;abcde|bcdef|cdefg|defgh|efghi|fghij|ghijk|hijkl|ijklm|jklmn|klmno|lmnop|mnopq|nopqr|opqrs|pqrst|qrstu|rstuv|stuvw|tuvwx|uvwxy|vwxyz&amp;#39;&lt;/span&gt;) { &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $false }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Check for sequential letters (descending)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($pin &lt;span style=&#34;color:#f92672&#34;&gt;-imatch&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;zyxwv|yxwvu|xwvut|wvuts|vutsr|utsrq|tsrqp|srqpo|rqpon|qponm|ponml|onmlk|nmlkj|mlkji|lkjih|kjihg|jihgf|ihgfe|hgfed|gfedc|fedcb|edcba&amp;#39;&lt;/span&gt;) { &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $false }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Check for repeated characters (6 or more repetitions)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($pin &lt;span style=&#34;color:#f92672&#34;&gt;-match&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;(.)\1{5,}&amp;#39;&lt;/span&gt;) { &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $false }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Check for common patterns (repeating sequences of 3+ characters)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($pin &lt;span style=&#34;color:#f92672&#34;&gt;-match&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;(.{3,})\1&amp;#39;&lt;/span&gt;) { &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $false }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Check if all characters are the same&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($pin &lt;span style=&#34;color:#f92672&#34;&gt;-match&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;^(.)\1*$&amp;#39;&lt;/span&gt;) { &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $false }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Check for repeating pairs&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($pin &lt;span style=&#34;color:#f92672&#34;&gt;-match&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;(.{2})\1+&amp;#39;&lt;/span&gt;) { &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $false }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $true&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; Show-PinInputForm {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Add-Type -AssemblyName System.Windows.Forms&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Add-Type -AssemblyName System.Drawing&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $form = New-Object System.Windows.Forms.Form&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $form.WindowState = [&lt;span style=&#34;color:#66d9ef&#34;&gt;System.Windows.Forms.FormWindowState&lt;/span&gt;]::Maximized&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $form.FormBorderStyle = [&lt;span style=&#34;color:#66d9ef&#34;&gt;System.Windows.Forms.FormBorderStyle&lt;/span&gt;]::None&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $form.BackColor = [&lt;span style=&#34;color:#66d9ef&#34;&gt;System.Drawing.Color&lt;/span&gt;]::White&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $form.TopMost = $true&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Logo&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $logoBox = New-Object System.Windows.Forms.PictureBox&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $logoBox.Size = New-Object System.Drawing.Size(&lt;span style=&#34;color:#ae81ff&#34;&gt;100&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;50&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $logoBox.Location = New-Object System.Drawing.Point(&lt;span style=&#34;color:#ae81ff&#34;&gt;20&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;20&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $logoBox.SizeMode = [&lt;span style=&#34;color:#66d9ef&#34;&gt;System.Windows.Forms.PictureBoxSizeMode&lt;/span&gt;]::Zoom&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $logoPath = Join-Path $PSScriptRoot &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Company_logo.png&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (Test-Path $logoPath) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $logoBox.Image = [&lt;span style=&#34;color:#66d9ef&#34;&gt;System.Drawing.Image&lt;/span&gt;]::FromFile($logoPath)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        Write-Warning &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Logo file not found: &lt;/span&gt;$logoPath&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Title&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $label = New-Object System.Windows.Forms.Label&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $label.Text = &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Set BitLocker Startup PIN&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $label.Font = New-Object System.Drawing.Font(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Segoe UI Semibold&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;20&lt;/span&gt;, [&lt;span style=&#34;color:#66d9ef&#34;&gt;System.Drawing.FontStyle&lt;/span&gt;]::Regular)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $label.AutoSize = $true&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $label.Location = New-Object System.Drawing.Point(&lt;span style=&#34;color:#ae81ff&#34;&gt;20&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;100&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Instructions&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $instructionLabel = New-Object System.Windows.Forms.Label&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $instructionLabel.Text = &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;PIN must be at least 6 characters long and not use simple patterns. Letters, numbers, and special characters are allowed.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $instructionLabel.Font = New-Object System.Drawing.Font(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Segoe UI&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;13&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $instructionLabel.AutoSize = $true&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $instructionLabel.Location = New-Object System.Drawing.Point(&lt;span style=&#34;color:#ae81ff&#34;&gt;20&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;140&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# PIN Input&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $pinInput = New-Object System.Windows.Forms.TextBox&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $pinInput.PasswordChar = &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;*&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $pinInput.Font = New-Object System.Drawing.Font(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Segoe UI&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;12&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $pinInput.Size = New-Object System.Drawing.Size(&lt;span style=&#34;color:#ae81ff&#34;&gt;300&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;25&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $pinInput.Location = New-Object System.Drawing.Point(&lt;span style=&#34;color:#ae81ff&#34;&gt;20&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;180&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# PIN Confirmation Input&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $pinConfirmInput = New-Object System.Windows.Forms.TextBox&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $pinConfirmInput.PasswordChar = &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;*&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $pinConfirmInput.Font = New-Object System.Drawing.Font(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Segoe UI&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;12&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $pinConfirmInput.Size = New-Object System.Drawing.Size(&lt;span style=&#34;color:#ae81ff&#34;&gt;300&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;25&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $pinConfirmInput.Location = New-Object System.Drawing.Point(&lt;span style=&#34;color:#ae81ff&#34;&gt;20&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;220&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Set PIN Button&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $submitButton = New-Object System.Windows.Forms.Button&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $submitButton.Text = &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Set PIN&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $submitButton.Font = New-Object System.Drawing.Font(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Segoe UI Semibold&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;12&lt;/span&gt;, [&lt;span style=&#34;color:#66d9ef&#34;&gt;System.Drawing.FontStyle&lt;/span&gt;]::Regular)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $submitButton.Size = New-Object System.Drawing.Size(&lt;span style=&#34;color:#ae81ff&#34;&gt;100&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;30&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $submitButton.Location = New-Object System.Drawing.Point(&lt;span style=&#34;color:#ae81ff&#34;&gt;20&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;260&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Error Label&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $errorLabel = New-Object System.Windows.Forms.Label&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $errorLabel.ForeColor = [&lt;span style=&#34;color:#66d9ef&#34;&gt;System.Drawing.Color&lt;/span&gt;]::Red&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $errorLabel.Font = New-Object System.Drawing.Font(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Segoe UI&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;10&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $errorLabel.AutoSize = $true&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $errorLabel.Location = New-Object System.Drawing.Point(&lt;span style=&#34;color:#ae81ff&#34;&gt;20&lt;/span&gt;, &lt;span style=&#34;color:#ae81ff&#34;&gt;300&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $form.Controls.AddRange(@($logoBox, $label, $instructionLabel, $pinInput, $pinConfirmInput, $submitButton, $errorLabel))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $script:pin = $null&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $allowedCharsPattern = &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;^[a-zA-Z0-9!@#$%^&amp;amp;*()_\-+=\[\]{};:&amp;#39;&amp;#39;&amp;#34;,.&amp;lt;&amp;gt;?/\\|`~]+$&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $submitButton.Add_Click({&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $enteredPin = $pinInput.Text&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $confirmedPin = $pinConfirmInput.Text&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($enteredPin.Length &lt;span style=&#34;color:#f92672&#34;&gt;-ge&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;6&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;-and&lt;/span&gt; $enteredPin &lt;span style=&#34;color:#f92672&#34;&gt;-match&lt;/span&gt; $allowedCharsPattern &lt;span style=&#34;color:#f92672&#34;&gt;-and&lt;/span&gt; $enteredPin &lt;span style=&#34;color:#f92672&#34;&gt;-eq&lt;/span&gt; $confirmedPin) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (Is-PinComplex $enteredPin) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $script:pin = $enteredPin&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                Log-Message &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;PIN set successfully&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $form.Close()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                $errorLabel.Text = &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;PIN is too simple. Please avoid sequential characters, repeating patterns, or easily guessable combinations.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        } &lt;span style=&#34;color:#66d9ef&#34;&gt;elseif&lt;/span&gt; ($enteredPin &lt;span style=&#34;color:#f92672&#34;&gt;-ne&lt;/span&gt; $confirmedPin) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            $errorLabel.Text = &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;PINs do not match. Please try again.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        } &lt;span style=&#34;color:#66d9ef&#34;&gt;else&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            $errorLabel.Text = &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;PIN must be at least 6 characters long. Letters, numbers, and special characters are allowed.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    })&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $form.Add_Shown({$form.Activate()})&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    [&lt;span style=&#34;color:#66d9ef&#34;&gt;void&lt;/span&gt;]$form.ShowDialog()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; $script:pin&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;Try&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $osVolume = Get-BitLockerVolume | Where-Object { $_.VolumeType &lt;span style=&#34;color:#f92672&#34;&gt;-eq&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;OperatingSystem&amp;#39;&lt;/span&gt; }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Detects and removes existing TpmPin key protectors as there can only be one&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($osVolume.KeyProtector.KeyProtectorType &lt;span style=&#34;color:#f92672&#34;&gt;-contains&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;TpmPin&amp;#39;&lt;/span&gt;) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        $osVolume.KeyProtector | Where-Object { $_.KeyProtectorType &lt;span style=&#34;color:#f92672&#34;&gt;-eq&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;TpmPin&amp;#39;&lt;/span&gt; } | ForEach-Object {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            Remove-BitLockerKeyProtector -MountPoint $osVolume.MountPoint -KeyProtectorId $_.KeyProtectorId&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Sets a recovery password key protector if one doesn&amp;#39;t exist, needed for TpmPin key protector&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ($osVolume.KeyProtector.KeyProtectorType &lt;span style=&#34;color:#f92672&#34;&gt;-notcontains&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;RecoveryPassword&amp;#39;&lt;/span&gt;) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        Enable-BitLocker -MountPoint $osVolume.MountPoint -RecoveryPasswordProtector&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Show PIN input form and get PIN from user&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $userPIN = Show-PinInputForm&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Log-Message &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;User PIN after form: &lt;/span&gt;$($userPIN &lt;span style=&#34;color:#f92672&#34;&gt;-replace&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;.&amp;#39;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;*&amp;#39;&lt;/span&gt;)&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;  &lt;span style=&#34;color:#75715e&#34;&gt;# Log masked PIN for security&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; (&lt;span style=&#34;color:#f92672&#34;&gt;-not&lt;/span&gt; $userPIN) {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        Log-Message &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;PIN input seems to be empty or invalid.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#66d9ef&#34;&gt;throw&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;PIN input cancelled or invalid. BitLocker not enabled.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Log-Message &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Attempting to convert PIN to SecureString&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $devicePIN = ConvertTo-SecureString $userPIN -AsPlainText -Force&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Log-Message &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Enabling BitLocker with the provided PIN&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Enable-BitLocker -MountPoint $osVolume.MountPoint -Pin $devicePIN -TpmAndPinProtector -ErrorAction Stop&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Gets the recovery key and escrows to Azure AD&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    (Get-BitLockerVolume).KeyProtector | Where-Object { $_.KeyProtectorType &lt;span style=&#34;color:#f92672&#34;&gt;-eq&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;RecoveryPassword&amp;#39;&lt;/span&gt; } | ForEach-Object {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        BackupToAAD-BitLockerKeyProtector -MountPoint $osVolume.MountPoint -KeyProtectorId $_.KeyProtectorId&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Log-Message &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;BitLocker enabled successfully and recovery key backed up to Azure AD&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Create tag file&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    New-Item -Path $tagFile -ItemType File -Force | Out-Null&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Log-Message &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Created tag file: &lt;/span&gt;$tagFile&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Exit &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;Catch&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    $ErrorMessage = $_.Exception.Message&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Log-Message &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Error: &lt;/span&gt;$ErrorMessage&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Write-Warning $ErrorMessage&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Exit &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is what the prompt will look like when all is set and done.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Showing the PIN prompt that a user will get&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/powershell-setup-pin/images/BitlockerPINPrompt.png&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once they set their PIN, the user will need to reboot their workstation.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Deduplicated Proxmox backups with Proxmox Backup Server and ZFS</title>
      <link>https://blog.ssb-tech.net/posts/proxmox-pbs-zfs/</link>
      <pubDate>Wed, 22 Apr 2026 23:23:10 +0000</pubDate>
      <guid>https://blog.ssb-tech.net/posts/proxmox-pbs-zfs/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;There are many ways to back up your &lt;a href=&#34;https://proxmox.com/en/products/proxmox-virtual-environment/overview&#34;&gt;Proxmox&lt;/a&gt; virtual machines.&lt;/p&gt;&#xA;&lt;p&gt;One of the most popular ways to do so is via &lt;a href=&#34;https://proxmox.com/en/products/proxmox-backup-server/overview&#34;&gt;Proxmox Backup Server&lt;/a&gt;, which gives you many advantages:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Deduplication of common data.&lt;/li&gt;&#xA;&lt;li&gt;The ability to cherry pick files out of your backups.&lt;/li&gt;&#xA;&lt;li&gt;Tight integration with the Proxmox ecosystem.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;However, how is one to achieve proper 3-2-1 backups using this mechanism?&lt;/p&gt;&#xA;&lt;p&gt;One way is to run multiple datastores, some local and some using Amazon S3 compatible endpoints.&lt;/p&gt;&#xA;&lt;p&gt;However, this is a bit much for me, so I came up with a simpler method.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-details&#34;&gt;The Details&lt;/h2&gt;&#xA;&lt;p&gt;I run my PBS on a &lt;a href=&#34;https://www.amazon.com/dp/B0BVFKN7ZL&#34;&gt;Beelink N100 mini PC&lt;/a&gt;, in which I&amp;rsquo;ve installed a 2TB SATA SSD that I formatted as a single disk zpool.&lt;/p&gt;&#xA;&lt;p&gt;I then installed Jim Salter&amp;rsquo;s excellent &lt;a href=&#34;https://github.com/jimsalterjrs/sanoid&#34;&gt;Sanoid&lt;/a&gt; utility, configuring ZFS snapshots on the PBS server.&lt;/p&gt;&#xA;&lt;p&gt;This is the &lt;code&gt;/etc/sanoid.conf&lt;/code&gt; that I&amp;rsquo;ve defined. You can, of course, set whatever values you like.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[pbs-local/datastore]&#xA;        use_template = pbs&#xA;        recursive = yes&#xA;&#xA;[template_pbs]&#xA;        frequently = 0&#xA;        hourly = 36&#xA;        daily = 3&#xA;        weekly = 1&#xA;        monthly = 0&#xA;        yearly = 0&#xA;        autosnap = yes&#xA;        autoprune = yes&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Then, once I had my initial snapshots, I went to my TrueNAS backup server and created a new ZFS replication task.&lt;/p&gt;&#xA;&lt;p&gt;I used this to &lt;em&gt;pull&lt;/em&gt; the snapshots for the datastore to the backup server.&lt;/p&gt;&#xA;&lt;p&gt;The key is to match the expected snapshot naming schema for Sanoid, like so:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Screenshot showing TrueNAS replication task with proper naming scheme for Sanoid&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/proxmox-pbs-zfs/images/truenas-sanoid.png&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;This allows me to maintain the deduplicated nature of the Proxmox Backup Server datastore.&lt;/p&gt;&#xA;&lt;p&gt;You can do the same with any offsite NAS that you may have, as long as it&amp;rsquo;s running ZFS. This is easily accomplished with something like &lt;a href=&#34;https://tailscale.com&#34;&gt;Tailscale&lt;/a&gt; or &lt;a href=&#34;https://netbird.io/&#34;&gt;Netbird&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If I ever have a failure of the Proxmox Backup Server, I can simply set up a new zpool on the repaired system and reverse the direction of the replication.&lt;/p&gt;&#xA;&lt;p&gt;I also use &lt;a href=&#34;https://klarasystems.com/articles/improving-replication-security-with-openzfs-delegation/&#34;&gt;ZFS Delegation&lt;/a&gt; to avoid doing the replication as root, but I&amp;rsquo;ve &lt;a href=&#34;https://blog.ssb-tech.net/posts/truenas-zfs-replication-without-root/&#34;&gt;covered this topic before&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;As always - trust nothing and test those backups!&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Meilisearch Dumpless Upgrades</title>
      <link>https://blog.ssb-tech.net/posts/meilisearch-dumpless-upgrades/</link>
      <pubDate>Fri, 03 Apr 2026 15:54:33 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/meilisearch-dumpless-upgrades/</guid>
      <description>&lt;p&gt;Short one today.&lt;/p&gt;&#xA;&lt;p&gt;I learned that &lt;a href=&#34;https://www.meilisearch.com&#34;&gt;Meilisearch&lt;/a&gt; has added &lt;a href=&#34;https://meilisearch.notion.site/Dumpless-upgrade-fff4b06b651f81f1acafe24d4687b3f7&#34;&gt;experimental support for dumpless upgrades&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;So far it works well, though to be fair none of my Meilisearch databases are particularly important.&lt;/p&gt;&#xA;&lt;p&gt;I have one for better searches in &lt;a href=&#34;https://jellyfin.org&#34;&gt;Jellyfin&lt;/a&gt; and another for my &lt;a href=&#34;https://karakeep.app&#34;&gt;Karakeep&lt;/a&gt; search index.&lt;/p&gt;&#xA;&lt;p&gt;Losing either of them would be a minor inconvenience, whereas it&amp;rsquo;s been a &lt;em&gt;massive&lt;/em&gt; inconvenience for me to have to dump and manually import every single time I patch Meilisearch.&lt;/p&gt;&#xA;&lt;p&gt;You can either pass meilisearch the &lt;code&gt;--experimental-dumpless-upgrade&lt;/code&gt; flag on the CLI, or set the &lt;code&gt;MEILI_EXPERIMENTAL_DUMPLESS_UPGRADE&lt;/code&gt; environment variable.&lt;/p&gt;&#xA;&lt;p&gt;In Docker you&amp;rsquo;d set it like this:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;environment&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;MEILI_EXPERIMENTAL_DUMPLESS_UPGRADE=true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Setting up FreeRADIUS with an Active Directory backend for use with Unifi WiFi</title>
      <link>https://blog.ssb-tech.net/posts/freeradius-unifi-certbot/</link>
      <pubDate>Tue, 31 Mar 2026 15:56:30 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/freeradius-unifi-certbot/</guid>
      <description>&lt;p&gt;Or in other words, how to configure 802.1x authentication with an Active Directory backend.&lt;/p&gt;&#xA;&lt;p&gt;I wrote this for work with a few tweaks, but I figured that it would work just as well as a blog post.&lt;/p&gt;&#xA;&lt;p&gt;Given that &lt;code&gt;$job&lt;/code&gt; has a lot of people who aren&amp;rsquo;t the most Linux-savvy I tried to keep it as simple as I could, but there are a lot of pieces to making this work.&lt;/p&gt;&#xA;&lt;p&gt;It was written with Ubuntu in mind but it should work in most Linux distributions.&lt;/p&gt;&#xA;&lt;p&gt;Debian would be a drop in replacement, something RHEL based like Rocky Linux would require more work because the path names and package names likely differ slightly.&lt;/p&gt;&#xA;&lt;h2 id=&#34;installing-free-letsencrypt-tls-certificates&#34;&gt;Installing free LetsEncrypt TLS certificates&lt;/h2&gt;&#xA;&lt;p&gt;We need to get valid TLS certificates for FreeRADIUS to use for its connection.&lt;/p&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;Note, if you&amp;rsquo;re in a fully corporate environment, you can bypass LetsEncrypt and use Active Directory self-signed certificates here. However, this did not fit my use case.&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;Install &lt;a href=&#34;https://eff-certbot.readthedocs.io/en/stable/index.html&#34;&gt;certbot&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo su&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;apt install certbot&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is how you get LE certs with an HTTP challenge - feel free to substitute it for a &lt;a href=&#34;https://letsencrypt.org/docs/challenge-types/#dns-01-challenge&#34;&gt;DNS-01 challenge&lt;/a&gt;. I normally always use a DNS challenge, but the client I wrote this guide for has their DNS hosted at Network Solutions, who do not have support with certbot.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create an A record that points to our public IP that matches the name we&amp;rsquo;re issuing the certificate for.&lt;/li&gt;&#xA;&lt;li&gt;We need to port forward port 80 to the FreeRADIUS box so that certbot can complete the challenge.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;First, lets create our deploy hook script that will move our certs into the correct location and set ownership so that FreeRADIUS can access them.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo nano /opt/renewal-certs.sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;#!/bin/bash&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;CERT_RENEW_LOCATION&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;/etc/letsencrypt/live/freeradius.domain.tld&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;CERT_INSTALL_LOCATION&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;/certs&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;PRIVATE_KEY_NAME&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;privkey.pem&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;PUBLIC_KEY_NAME&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;fullchain.pem&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Test to make sure that install location exists and if not, create it.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ! &lt;span style=&#34;color:#f92672&#34;&gt;[[&lt;/span&gt; -d &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_INSTALL_LOCATION&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;]]&lt;/span&gt;; &lt;span style=&#34;color:#66d9ef&#34;&gt;then&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Directory not found, creating.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        mkdir /certs&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;fi&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Test to make sure source files exist.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; ! &lt;span style=&#34;color:#f92672&#34;&gt;[[&lt;/span&gt; -f &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_RENEW_LOCATION&lt;span style=&#34;color:#e6db74&#34;&gt;/&lt;/span&gt;$PUBLIC_KEY_NAME&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;]]&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt; ! &lt;span style=&#34;color:#f92672&#34;&gt;[[&lt;/span&gt; -f &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_RENEW_LOCATION&lt;span style=&#34;color:#e6db74&#34;&gt;/&lt;/span&gt;$PRIVATE_KEY_NAME&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;]]&lt;/span&gt;; &lt;span style=&#34;color:#66d9ef&#34;&gt;then&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Keys missing from &lt;/span&gt;$CERT_RENEW_LOCATION&lt;span style=&#34;color:#e6db74&#34;&gt;. Exit script.&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        exit &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;fi&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Rename existing certs for safety.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mv &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_INSTALL_LOCATION&lt;span style=&#34;color:#e6db74&#34;&gt;/&lt;/span&gt;$PUBLIC_KEY_NAME&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_INSTALL_LOCATION&lt;span style=&#34;color:#e6db74&#34;&gt;/&lt;/span&gt;$PUBLIC_KEY_NAME&lt;span style=&#34;color:#e6db74&#34;&gt;.bak&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mv &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_INSTALL_LOCATION&lt;span style=&#34;color:#e6db74&#34;&gt;/&lt;/span&gt;$PRIVATE_KEY_NAME&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_INSTALL_LOCATION&lt;span style=&#34;color:#e6db74&#34;&gt;/&lt;/span&gt;$PRIVATE_KEY_NAME&lt;span style=&#34;color:#e6db74&#34;&gt;.bak&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Copy the renewed certificates into place.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cp &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_RENEW_LOCATION&lt;span style=&#34;color:#e6db74&#34;&gt;/&lt;/span&gt;$PUBLIC_KEY_NAME&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_INSTALL_LOCATION&lt;span style=&#34;color:#e6db74&#34;&gt;/&lt;/span&gt;$PUBLIC_KEY_NAME&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cp &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_RENEW_LOCATION&lt;span style=&#34;color:#e6db74&#34;&gt;/&lt;/span&gt;$PRIVATE_KEY_NAME&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_INSTALL_LOCATION&lt;span style=&#34;color:#e6db74&#34;&gt;/&lt;/span&gt;$PRIVATE_KEY_NAME&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Set the freerad user to be the owner of the certs.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;chown -R freerad:freerad &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$CERT_INSTALL_LOCATION&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Restart freeradius so that it picks up the new cert.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;systemctl restart freeradius&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Quit out of nano with Ctrl+X and save the file.&lt;/p&gt;&#xA;&lt;p&gt;Next, we need to make that script executable:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;chmod +x /opt/renewal-certs.sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Run the following command to generate the certs &lt;strong&gt;(note that this assumes that you don&amp;rsquo;t already have a web server running on port 80 - if you do, you should use the &lt;a href=&#34;https://eff-certbot.readthedocs.io/en/stable/using.html#webroot&#34;&gt;&lt;code&gt;--webroot&lt;/code&gt;&lt;/a&gt; flag instead of &lt;code&gt;standalone&lt;/code&gt;.)&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo certbot certonly --standalone &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  -d radius.domain.tld &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  --non-interactive &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  --agree-tos &lt;span style=&#34;color:#ae81ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  -m your-email@example.com&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  --deploy-hook &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;/opt/renewal-certs.sh&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If successful, you should have certificates installed at &lt;code&gt;/etc/letsencrypt/live/radius.domain.tld&lt;/code&gt;, and a copy of them in &lt;code&gt;/certs&lt;/code&gt; that FreeRADIUS can use.&lt;/p&gt;&#xA;&lt;h2 id=&#34;configuring-freeradius-samba-and-kerberos&#34;&gt;Configuring FreeRADIUS, Samba and Kerberos&lt;/h2&gt;&#xA;&lt;p&gt;On Ubuntu, we need to disable systemd-resolved as it causes issues with &lt;code&gt;.local&lt;/code&gt; addresses.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;This is not required if you’re using a different top level domain for your Active Directory like &lt;code&gt;.com&lt;/code&gt; or &lt;code&gt;.org.&lt;/code&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;It&amp;rsquo;s also not needed on Debian because they do not use systemd-resolved.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo rm /etc/resolv.conf&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl disable systemd-resolved &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; sudo systemctl stop systemd-resolved &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo nano /etc/resolv.conf&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then enter a &amp;ldquo;nameserver&amp;rdquo; stanza like so:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;nameserver 10.10.10.9&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Obviously the nameserver should be your AD controller.&lt;/p&gt;&#xA;&lt;p&gt;Quit out of nano with Ctrl+X and save the file.&lt;/p&gt;&#xA;&lt;p&gt;Run the following commands to install Kerberos, winbind and samba (dependencies for FreeRADIUS when you want it to auth against AD):&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo add-apt-repository universe&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo apt install winbind samba krb5-user freeradius -y&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo usermod -aG winbindd_priv freerad&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo mv /etc/krb5.conf /etc/krb5.conf.bak&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Create new krb5.conf file with the following contents:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo nano /etc/krb5.conf&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# EXAMPLE.LOCAL should be replaced with your actual AD domain.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;libdefaults&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    default_realm &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; EXAMPLE.LOCAL&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    dns_lookup_realm &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; false&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    dns_lookup_kdc &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; false&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    permitted_enctypes &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    default_tgs_enctypes &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    default_tkt_enctypes &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;realms&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    EXAMPLE.LOCAL &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        kdc &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; kdc.example.local&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        admin_server &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; kdc.example.local&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;domain_realm&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    .example.local &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; EXAMPLE.LOCAL&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    example.local &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; EXAMPLE.LOCAL&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    kdc.example.local &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; EXAMPLE.LOCAL&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;logging&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    default &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; FILE:/var/log/krb5.log&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Do the same for the samba configuration file: &lt;code&gt;/etc/samba/smb.conf&lt;/code&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bak&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#&#xA;# /etc/samba/smb.conf&#xA;#&#xA;&#xA;# start of global variables&#xA;[global]&#xA;&#xA;# server information, this is the domain/workgroup&#xA;# Replace this with whatever would come before the backslash when logging into a domain, e.g. DOMAIN\username&#xA;workgroup = DOMAIN&#xA;&#xA;# Kerberos / authentication information&#xA;# Replace with the actual domain name&#xA;realm = DOMAIN.LOCAL&#xA;&#xA;# replace with the linux server&amp;#39;s hostname. You can find this info by running &amp;#34;hostname&amp;#34; in the command line.&#xA;netbios name = RADIUS1&#xA;&#xA;# security used (Active Directory)&#xA;security = ADS&#xA;&#xA;# EoF&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Edit the hosts file. It should have entries for the system&amp;rsquo;s FQDN, etc.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-hosts&#34; data-lang=&#34;hosts&#34;&gt;127.0.1.1 freeradius.example.local freeradius localhost.localdomain localhost&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Restart the samba daemon.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl restart smbd&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Try to get a Kerberos ticket.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo kinit Administrator@EXAMPLE.LOCAL&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Make sure that the ticket was issued:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo klist&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Join the domain and make sure it&amp;rsquo;s joined successfully.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo net ads join -U Administrator&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo net ads testjoin&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If the join is &amp;ldquo;OK&amp;rdquo;, restart Winbind:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl restart winbind&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Test Winbind by listing domain users:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;wbinfo -u&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Should get output like this:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@freeradius:~# wbinfo -u&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;EXAMPLE&lt;span style=&#34;color:#ae81ff&#34;&gt;\a&lt;/span&gt;dministrator&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;EXAMPLE&lt;span style=&#34;color:#ae81ff&#34;&gt;\g&lt;/span&gt;uest&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;EXAMPLE&lt;span style=&#34;color:#ae81ff&#34;&gt;\k&lt;/span&gt;rbtgt&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;EXAMPLE&lt;span style=&#34;color:#ae81ff&#34;&gt;\t&lt;/span&gt;estuser&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In the file &lt;code&gt;/etc/freeradius/3.0/radiusd.conf&lt;/code&gt;, change this line to &lt;code&gt;auth = yes&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;auth = no&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Change or delete the password from this line in &lt;code&gt;/etc/freeradius/3.0/mods-available/eap&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;private_key_password =&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Change these lines to point to your keys:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;private_key_file = /your_private_key_location.key&#xA;# For the &amp;#34;cert&amp;#34; file - use the LetsEncrypt &amp;#34;fullchain.pem&amp;#34;&#xA;certificate_file = /your_certificate_file.cert&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Delete or comment-out this line:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# ca_file = /etc/ssl/certs/ca-certificates.crt&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you allow all users to connect to WiFi, then edit &lt;code&gt;/etc/freeradius/3.0/mods-available/mschap&lt;/code&gt; and uncomment out these two lines:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;winbind_username = &amp;#34;%{mschap:User-Name}&amp;#34;&#xA;winbind_domain = &amp;#34;%{mschap:NT-Domain}&amp;#34;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And finally configure the RADIUS client (will be the Unifi APs) in &lt;code&gt;/etc/freeradius/3.0/sites-available/wifi&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#&#xA;# /etc/freeradius/3.0/sites-available/wifi&#xA;#&#xA;&#xA;client UniFi-APs {&#xA;&#x9;shortname&#x9;= WiFi&#xA;&#x9;virtual_server&#x9;= wifi&#xA;&#x9;# RADIUS secret - should match what you have in the Unifi Controller.&#xA;&#x9;secret          = RAD1USp4ssw0rd&#xA;  require_message_authenticator = true&#xA;&#x9;# allowed clients (the clients will be the APs, not the end user devices. Make sure you enter the right subnet here)&#xA;&#x9;ipaddr&#x9;&#x9;= 10.0.0.0/24&#xA;}&#xA;server wifi {&#xA;&#x9;authorize {&#xA;&#x9;&#x9;# cleans up attributes, required&#xA;&#x9;&#x9;preprocess&#xA;&#x9;&#x9;# we use eap authentication, required&#xA;&#x9;&#x9;eap &#xA;    mschap&#xA;&#x9;}&#xA;&#x9;authenticate {&#xA;&#x9;&#x9;# mschap authentication&#xA;&#x9;&#x9;Auth-Type mschap {&#xA;&#x9;&#x9;&#x9;mschap&#xA;&#x9;&#x9;}&#xA;&#x9;&#x9;# eap, this is required&#xA;&#x9;&#x9;eap&#xA;&#x9;}&#xA;}&#xA;&#xA;# EoF&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Create a symlink of our RADIUS site configuration in the &lt;code&gt;sites-enabled&lt;/code&gt; directory:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo ln -s /etc/freeradius/3.0/sites-available/wifi /etc/freeradius/3.0/sites-enabled/wifi&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can test your configuration by running:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;freeradius -X&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Make sure that you can connect to the WiFi network, then proceed to the next step.&lt;/p&gt;&#xA;&lt;p&gt;Enable and start the FreeRADIUS service (this will make it run in the background and also start on boot):&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl enable freeradius.service &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; sudo systemctl restart freeradius.service&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;configuring-the-radius-server-in-unifi&#34;&gt;Configuring the RADIUS server in Unifi&lt;/h2&gt;&#xA;&lt;p&gt;Log into your Unifi network controller and go to Settings &amp;gt; Networks.&lt;/p&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;For some reason Ubiquiti keeps moving this setting around. This is the current location of this setting as of 2026-03-31.&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;Add a new RADIUS server.&lt;/p&gt;&#xA;&lt;p&gt;It should look like the below:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Picture of how to configure RADIUS in the Unifi control plane&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/freeradius-unifi-certbot/images/unificlients.png&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;The &amp;ldquo;Shared Secret&amp;rdquo; should be the same as the &amp;ldquo;secret&amp;rdquo; field in your FreeRADIUS site configuration.&lt;/p&gt;&#xA;&lt;h2 id=&#34;connecting-wireless-clients&#34;&gt;Connecting wireless clients&lt;/h2&gt;&#xA;&lt;p&gt;Should use &amp;ldquo;EAP-TTLS&amp;rdquo; (might be called just TTLS or Tunneled TLS, at least it is on Android).&lt;/p&gt;&#xA;&lt;p&gt;Phase 2 auth should be MSCHAPv2.&lt;/p&gt;&#xA;&lt;p&gt;You&amp;rsquo;ll need to enter the fully qualified domain name of the RADIUS server. (radius.domain.tld, etc)&lt;/p&gt;&#xA;&lt;p&gt;On iOS you may need to trust the certificate the first time you connect.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Showing how to configure a WiFi network with TTLS and MSChapv2 on Android&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/freeradius-unifi-certbot/images/AndroidTTLS.png&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;credits&#34;&gt;Credits&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://xenomorph.net/linux/ubuntu/misc/radius-unifi/&#34;&gt;https://xenomorph.net/linux/ubuntu/misc/radius-unifi/&lt;/a&gt;&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>I switched to GrapheneOS</title>
      <link>https://blog.ssb-tech.net/posts/switching-to-grapheneos/</link>
      <pubDate>Sat, 28 Mar 2026 15:41:08 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/switching-to-grapheneos/</guid>
      <description>&lt;h1 id=&#34;i-switched-to-grapheneos&#34;&gt;I switched to GrapheneOS&lt;/h1&gt;&#xA;&lt;p&gt;I recently purchased a &amp;rsquo;new-to-me&amp;rsquo; Pixel 10 Pro to replace my Pixel 8 Pro.&lt;/p&gt;&#xA;&lt;p&gt;There was nothing particularly wrong with the 8, but I&amp;rsquo;d had it for a few years, and my father is in need of a new phone, so it was a good opportunity for me to upgrade.&lt;/p&gt;&#xA;&lt;p&gt;At the same time, I&amp;rsquo;ve also been meaning to check out &lt;a href=&#34;https://grapheneos.org/&#34;&gt;GrapheneOS&lt;/a&gt;, a custom ROM based on AOSP that has a focus on privacy and security.&lt;/p&gt;&#xA;&lt;p&gt;Given Google&amp;rsquo;s recent track record and their initiatives to &lt;a href=&#34;https://developer.android.com/developer-verification&#34;&gt;lock down Android under the pretext of security theater&lt;/a&gt; I figured there had never been a better time to try out GrapheneOS.&lt;/p&gt;&#xA;&lt;p&gt;This post is a record of my experience and of my first impressions.&lt;/p&gt;&#xA;&lt;h2 id=&#34;installation&#34;&gt;Installation&lt;/h2&gt;&#xA;&lt;p&gt;I used the official &lt;a href=&#34;https://grapheneos.org/install/web&#34;&gt;WebUSB installer&lt;/a&gt; method to install GrapheneOS.&lt;/p&gt;&#xA;&lt;p&gt;It was extremely painless, especially compared with my experience installing CyanogenMod in the old days.&lt;/p&gt;&#xA;&lt;p&gt;All I needed to do was install one Android developer package on Fedora, open up Chromium and follow the prompts.&lt;/p&gt;&#xA;&lt;p&gt;I was up and running within 15 minutes, which is very impressive.&lt;/p&gt;&#xA;&lt;h2 id=&#34;first-impressions&#34;&gt;First Impressions&lt;/h2&gt;&#xA;&lt;p&gt;Landing on the home screen at first launch is somewhat intimidating.&lt;/p&gt;&#xA;&lt;p&gt;The default GrapheneOS home screen is &lt;em&gt;very&lt;/em&gt; utilitarian and barebones.&lt;/p&gt;&#xA;&lt;p&gt;However, I was able to install &lt;a href=&#34;https://obtainium.imranr.dev/&#34;&gt;Obtanium&lt;/a&gt; without much trouble and get most of the apps I wanted installed.&lt;/p&gt;&#xA;&lt;p&gt;However, I do have some need for Google Play and Play Services, so I installed those too. GrapheneOS makes it painless to do so by including a mirror of the official APK files in their own App Store. I know this compromises the privacy of the device somewhat, but as always one must take into account their own risk profile and ride the line between convenience and security.&lt;/p&gt;&#xA;&lt;p&gt;I do enjoy that GrapheneOS gives the user far more control over what privileges every app on the device has, even for Google Play Services.&lt;/p&gt;&#xA;&lt;p&gt;So far I haven&amp;rsquo;t had too many issues.&lt;/p&gt;&#xA;&lt;p&gt;The only problems I&amp;rsquo;ve run into have been the Reddit client that I prefer to use, and of course Google Wallet.&lt;/p&gt;&#xA;&lt;p&gt;I had occasionally used Google Wallet to do NFC payments, but I knew that this was likely to not work on a custom ROM.&lt;/p&gt;&#xA;&lt;p&gt;The reddit client I was using was &lt;a href=&#34;https://play.google.com/store/apps/details?id=reddit.news&amp;amp;hl=en_US&#34;&gt;Relay for reddit&lt;/a&gt;. For some reason the Google Play Store showed that the app was not compatible. I found a way to get the application to install via the &lt;a href=&#34;https://store.auroraoss.com/&#34;&gt;Aurora Store&lt;/a&gt; and the app launched just fine - however I was unable to log in at all.&lt;/p&gt;&#xA;&lt;p&gt;The login webview came up as normal, but no matter what I did, it claimed that my password was incorrect, despite the same one perfectly fine in both the website and Reddit&amp;rsquo;s own official app.&lt;/p&gt;&#xA;&lt;p&gt;I can only assume this has something to do with the Play integrity API.&lt;/p&gt;&#xA;&lt;p&gt;Frankly I don&amp;rsquo;t use reddit much anymore, so I simply uninstalled both apps and will use the mobile website going forward.&lt;/p&gt;&#xA;&lt;h2 id=&#34;final-thoughts&#34;&gt;Final Thoughts&lt;/h2&gt;&#xA;&lt;p&gt;I may come back and update this post later, or publish a follow up.&lt;/p&gt;&#xA;&lt;p&gt;So far I am very impressed with what I&amp;rsquo;ve seen.&lt;/p&gt;&#xA;&lt;p&gt;As far Android as a whole - I very much wish that there were more open-source alternatives.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m aware of projects like &lt;a href=&#34;https://postmarketos.org/&#34;&gt;PostmarketOS&lt;/a&gt; and &lt;a href=&#34;https://sailfishos.org/&#34;&gt;SailfishOS&lt;/a&gt;, but the issue is two things - device compatibility, and application support.&lt;/p&gt;&#xA;&lt;p&gt;Everyone should support the &lt;a href=&#34;https://keepandroidopen.org/&#34;&gt;Keep Android Open&lt;/a&gt; initiative!&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Creating your own documentation with Mkdocs and Obsidian</title>
      <link>https://blog.ssb-tech.net/posts/documenting-with-mkdocs/</link>
      <pubDate>Sat, 21 Mar 2026 17:32:53 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/documenting-with-mkdocs/</guid>
      <description>&lt;h1 id=&#34;creating-your-own-documentation-with-mkdocs-and-obsidian&#34;&gt;Creating your own documentation with Mkdocs and Obsidian&lt;/h1&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;One of the most important parts of being in any highly technical profession is documentation.&lt;/p&gt;&#xA;&lt;p&gt;There are many products centered around doing this, even plenty that are free and open source as I prefer.&lt;/p&gt;&#xA;&lt;p&gt;However, many of these products rely on databases and force me to use editors that are not my preference.&lt;/p&gt;&#xA;&lt;p&gt;I like keeping my notes in Markdown format, so that they are both portable and can be manipulated with common tools on the Linux command line like &lt;code&gt;grep&lt;/code&gt;, &lt;code&gt;awk&lt;/code&gt;, &lt;code&gt;sed&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This also allows me to keep them in version control.&lt;/p&gt;&#xA;&lt;p&gt;However, I also enjoy the convenience of having a web portal that&amp;rsquo;s easily accessible from any device, and searchable even from my phone.&lt;/p&gt;&#xA;&lt;p&gt;Full disclosure, this guide assumes at least some knowledge about Docker and Git - if I tried to get into those too, this post would be miles long.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-tools&#34;&gt;The Tools&lt;/h2&gt;&#xA;&lt;p&gt;These are the tools that I use to do my documentation:&lt;/p&gt;&#xA;&lt;h3 id=&#34;the-static-site-generator&#34;&gt;The Static Site Generator&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://squidfunk.github.io/mkdocs-material/&#34;&gt;Material for Mkdocs&lt;/a&gt; - This takes in Markdown files and generates HTML from them, allowing you to serve that content as a website.&lt;/li&gt;&#xA;&lt;li&gt;You&amp;rsquo;ll also need the &lt;a href=&#34;https://github.com/GooRoo/mkdocs-obsidian-bridge&#34;&gt;Mkdocs Obsidian Bridge&lt;/a&gt; plugin so that Mkdocs can understand the Obsidian-style wikilinks. Links like this - &lt;code&gt;[[My Note]]&lt;/code&gt; are Obsidian style links.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;editors&#34;&gt;Editors&lt;/h3&gt;&#xA;&lt;p&gt;I enjoy the ideas behind the &lt;a href=&#34;https://obsidian.md/&#34;&gt;Obsidian&lt;/a&gt; project, but my issues with it are:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;It&amp;rsquo;s closed source.&lt;/li&gt;&#xA;&lt;li&gt;I like doing all my writing in &lt;a href=&#34;https://neovim.io&#34;&gt;Neovim&lt;/a&gt;. You&amp;rsquo;ll want to install the &lt;a href=&#34;https://github.com/obsidian-nvim/obsidian.nvim&#34;&gt;Obsidian.nvim&lt;/a&gt; plugin to allow it to interact more natively with Obsidian vaults.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;You can apply all of these ideas using the actual Obsidian editor (or any other editor with Markdown support) if you so choose.&lt;/p&gt;&#xA;&lt;p&gt;I do, however, use the Obsidian mobile app when I need to write notes on mobile. The &lt;a href=&#34;https://gitsync.viscouspotenti.al/&#34;&gt;GitSync&lt;/a&gt; Android app allows me to keep the remote repository in sync.&lt;/p&gt;&#xA;&lt;h2 id=&#34;continuous-deployment-workflow&#34;&gt;Continuous Deployment Workflow&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;m accomplishing this with &lt;a href=&#34;https://forgejo.org/&#34;&gt;Forgejo&lt;/a&gt; and an &lt;a href=&#34;https://nginx.org/&#34;&gt;Nginx&lt;/a&gt; webserver.&lt;/p&gt;&#xA;&lt;h3 id=&#34;the-workflow&#34;&gt;The Workflow&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;I edit all of my notes in Markdown using Neovim.&lt;/li&gt;&#xA;&lt;li&gt;I push the changes to my Forgejo repository.&lt;/li&gt;&#xA;&lt;li&gt;Forgejo has a configured &lt;a href=&#34;https://forgejo.org/docs/latest/user/actions/reference/&#34;&gt;Action&lt;/a&gt; that builds the site using a &lt;a href=&#34;https://forgejo.org/docs/next/admin/actions/runner-installation/&#34;&gt;Runner&lt;/a&gt; and then copies it to Docker webserver.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The reason I like this so much is that it reduces friction for entering notes significantly, and also allows me to link notes together logically.&lt;/p&gt;&#xA;&lt;h3 id=&#34;setting-it-up&#34;&gt;Setting It Up&lt;/h3&gt;&#xA;&lt;p&gt;If you want to get this set up yourself you can follow these steps.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Install the Obsidian official app and create the vault. There&amp;rsquo;s probably a way to do this without installing it, but to make sure that it&amp;rsquo;s formatted correctly and has the correct directory structure, this is the easiest way.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Install the &lt;code&gt;obsidian.nvim&lt;/code&gt; plugin (optional, only if you&amp;rsquo;re using Neovim).&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Create a .gitignore file to exclude some files that are problematic or unnecessary to keep in git.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cd $VAULT&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vim .gitignore&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The file should have the following contents:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;.obsidian/workspace*.json&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;.obsidian/plugins/recent-files-obsidian/data.json&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;site/ &lt;span style=&#34;color:#75715e&#34;&gt;# This is where Material for Mkdocs will build your site by default. There&amp;#39;s no need to include this in Git version control.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Create a new git repository in the same directory as your Obsidian vault.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git init&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git switch -c main&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git add . &lt;span style=&#34;color:#75715e&#34;&gt;# Or add only a subset of files if you wish&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git commit -m &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;initial commit&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git remote add origin ssh://git@git.example.tld/example/docs.git &lt;span style=&#34;color:#75715e&#34;&gt;# Add an existing remote&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git push -u origin main &lt;span style=&#34;color:#75715e&#34;&gt;# Push your local changes to the remote&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;At this point if you log into the repository you created, you should see the raw markdown files from your Obsidian vault.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Now, we&amp;rsquo;ll create a new file at the root of your repository called &lt;code&gt;mkdocs.yml&lt;/code&gt;. This file is how you configure the mkdocs site. Here&amp;rsquo;s mine with some information redacted.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;---&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;site_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;Documentation site&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;site_url&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;https://wiki.example.tld&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;repo_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;ssbtech/wiki&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;repo_url&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;https://git.example.tld/ssbtech/wiki&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;edit_uri&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;docs/&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;theme&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;material&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;features&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - &lt;span style=&#34;color:#ae81ff&#34;&gt;navigation.indexes&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - &lt;span style=&#34;color:#ae81ff&#34;&gt;navigation.instant&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - &lt;span style=&#34;color:#ae81ff&#34;&gt;content.code.copy&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;language&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;en&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;favicon&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;assets/images/homer.png&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;icon&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;repo&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;fontawesome/brands/git-alt&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;logo&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;fontawesome/regular/folder-open&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;palette&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Palette toggle for light mode&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - &lt;span style=&#34;color:#f92672&#34;&gt;media&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;(prefers-color-scheme: light)&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;scheme&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;default&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;primary&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;blue&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;accent&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;teal&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;toggle&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;icon&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;material/brightness-7&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;Switch to dark mode&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Palette toggle for dark mode&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    - &lt;span style=&#34;color:#f92672&#34;&gt;media&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;(prefers-color-scheme: dark)&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;scheme&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;slate&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;accent&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;teal&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;primary&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;black &lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;toggle&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;icon&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;material/brightness-4&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;Switch to light mode&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;markdown_extensions&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;admonition&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;attr_list&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;md_in_html&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;mdx_truly_sane_lists&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#f92672&#34;&gt;toc&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;permalink&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;def_list&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#f92672&#34;&gt;pymdownx.tasklist&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;custom_checkbox&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;plugins&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;search&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;obsidian-bridge&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#f92672&#34;&gt;tags&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Install mkdocs and its plugins.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;pip install mkdocs-material mkdocs-obsidian-bridge mdx_truly_sane_lists&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;You can test the site by running &lt;code&gt;mkdocs serve&lt;/code&gt;. It will build the site and expose it on port 8000, so you can see what it looks like.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Every git forge is a little different on how you can configure your Actions, but this is how I have mine configured on Forgejo:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;Build and Deploy Wiki&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;on&lt;/span&gt;: [&lt;span style=&#34;color:#ae81ff&#34;&gt;push]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;enable-email-notifications&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;jobs&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;deploy&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;runs-on&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;wiki&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;container&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;squidfunk/mkdocs-material:9.7.6&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;steps&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#f92672&#34;&gt;name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;Install dependencies&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;run&lt;/span&gt;: |&lt;span style=&#34;color:#e6db74&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;          apk add --no-cache nodejs # needed for the Forgejo checkout action&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;          apk add rsync openssh-client&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;          pip install mkdocs-obsidian-bridge mdx_truly_sane_lists&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#f92672&#34;&gt;uses&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;actions/checkout@v4&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#f92672&#34;&gt;name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;Build site&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;run&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;mkdocs build&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#f92672&#34;&gt;name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;Deploy via rsync&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;run&lt;/span&gt;: |&lt;span style=&#34;color:#e6db74&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;          eval $(ssh-agent -s)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;          mkdir -p ~/.ssh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;          chmod 700 ~/.ssh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;          echo &amp;#34;${{ secrets.SSH_PRIVATE_KEY }}&amp;#34; | tr -d &amp;#39;\r&amp;#39; | ssh-add - &amp;gt; /dev/null&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;          rsync -az --delete -e &amp;#34;ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null&amp;#34; site/ ${{ secrets.USERNAME }}@${{ secrets.HOST }}:/srv/mkdocs-wiki/html/&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#f92672&#34;&gt;name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;Upload artifacts&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;uses&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;https://github.com/christopherHX/gitea-upload-artifact@v4&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;with&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#f92672&#34;&gt;name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;site&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#f92672&#34;&gt;path&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;site/&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;The last step is to set up Nginx to point and serve that directory, preferably with a valid SSL certificate.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The end result looks something like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Mkdocs documentation site&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/documenting-with-mkdocs/images/mkdocs-site.png&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Slick, clean, easily searchable, and trivially easy to move elsewhere.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Issues transferring Windows 11 VM from KVM to Proxmox</title>
      <link>https://blog.ssb-tech.net/posts/windows-kvm-woes/</link>
      <pubDate>Fri, 20 Feb 2026 21:11:38 -0500</pubDate>
      <guid>https://blog.ssb-tech.net/posts/windows-kvm-woes/</guid>
      <description>&lt;p&gt;I ran into a strange issue when trying to transfer a Windows 11 Pro virtual machine from KVM on my Fedora desktop to Proxmox.&lt;/p&gt;&#xA;&lt;p&gt;The VM was using a VirtIO block device for it&amp;rsquo;s storage as I normally do.&lt;/p&gt;&#xA;&lt;p&gt;I transferred the VM qcow2 file to Proxmox and created a new VM with matching hardware, the imported the disk with:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;qm importdisk &lt;span style=&#34;color:#ae81ff&#34;&gt;300&lt;/span&gt; win11.qcow2 fast&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;(&lt;code&gt;fast&lt;/code&gt; being the name of my SSD zpool.)&lt;/p&gt;&#xA;&lt;p&gt;However when I went to boot the VM, it refused to boot at all.&lt;/p&gt;&#xA;&lt;p&gt;Originally, it seemed to be some sort of issue with the EFI bootloader.&lt;/p&gt;&#xA;&lt;p&gt;I was able to boot into a Windows install disk and recreate the EFI partition with &lt;code&gt;diskpart&lt;/code&gt; and &lt;code&gt;bcdboot&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Once I&amp;rsquo;d done that, the VM attempted to boot Windows. Rejoice&amp;hellip; or not.&lt;/p&gt;&#xA;&lt;p&gt;Nope, now it&amp;rsquo;s getting an &lt;code&gt;INACCESSIBLE BOOT DEVICE&lt;/code&gt; BSOD.&lt;/p&gt;&#xA;&lt;p&gt;I tried innumerable things without success, the golden ticket wound up being this &lt;a href=&#34;https://superuser.com/questions/1057959/windows-10-in-kvm-change-boot-disk-to-virtio&#34;&gt;superuser.com thread&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I had to first:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Change my boot disk to use SATA instead of VirtIO.&lt;/li&gt;&#xA;&lt;li&gt;Boot into Windows.&lt;/li&gt;&#xA;&lt;li&gt;Enable Safe Mode &lt;code&gt;bcdedit /set &amp;quot;{current}&amp;quot; safeboot minimal&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Shut down the VM, change the boot disk back to VirtIO.&lt;/li&gt;&#xA;&lt;li&gt;Let it boot up into Safe Mode.&lt;/li&gt;&#xA;&lt;li&gt;Revert to normal boot. &lt;code&gt;bcdedit /deletevalue &amp;quot;{current}&amp;quot; safeboot&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I still don&amp;rsquo;t quite understand what the problem was here.&lt;/p&gt;&#xA;&lt;p&gt;Windows has the concept of &amp;ldquo;boot start&amp;rdquo; drivers, yes, where it only loads a subset of the available drivers at first boot, but I had been using the VirtIO drivers since this OS was first installed, so why was this suddenly a problem?&lt;/p&gt;&#xA;&lt;p&gt;Apparently, rebooting into Safe Mode this way forces Windows to load all available boot start drivers, and because VirtIO worked here, it then remembered that for the next, normal boot.&lt;/p&gt;&#xA;&lt;p&gt;If anyone has an actual explanation for why this happened I&amp;rsquo;d appreciate it.&lt;/p&gt;&#xA;&lt;p&gt;I wasted &lt;em&gt;far&lt;/em&gt; too much time on this, I could have wiped and reloaded the VM many times over in the time it took me to fix this, but it bothered me far too much to let it go.&lt;/p&gt;&#xA;&lt;p&gt;This kind of nonsense makes me glad I&amp;rsquo;ve switched to using almost exclusively Linux in my personal life.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Using Calibre and the DeDRM plugin to strip DRM from Amazon eBooks</title>
      <link>https://blog.ssb-tech.net/posts/removing-amazon-drm/</link>
      <pubDate>Sun, 15 Feb 2026 20:58:33 -0500</pubDate>
      <guid>https://blog.ssb-tech.net/posts/removing-amazon-drm/</guid>
      <description>&lt;h1 id=&#34;using-calibre-and-the-dedrm-plugin-to-remove-drm-from-amazon-ebooks&#34;&gt;Using Calibre and the DeDRM plugin to remove DRM from Amazon eBooks&lt;/h1&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;m not going to spend too much time going over this as there are plenty of screenshots in other guides, two of which I&amp;rsquo;ve linked at the bottom of this page.&lt;/p&gt;&#xA;&lt;p&gt;However I felt their instructions were a bit all over the place and hard to follow, so here&amp;rsquo;s my own notes.&lt;/p&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;&lt;h3 id=&#34;disclaimer&#34;&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt;&lt;/h3&gt;&#xA;&lt;p&gt;This should only be used with Amazon eBooks that you legally own.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;h2 id=&#34;steps&#34;&gt;Steps&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Install Kindle for PC 2.8.0. As of 2026-02-15 this is the version available from Amazon&amp;rsquo;s own website.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;em&gt;&lt;strong&gt;As soon as you get it installed, open the program&amp;rsquo;s options menu and disable updates.&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;&#xA;&lt;li&gt;You&amp;rsquo;ll need to sign into your Amazon account and download whatever books you&amp;rsquo;d like to strip DRM from.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Go to this repository: &lt;a href=&#34;https://github.com/Satsuoni/DeDRM_tools/&#34;&gt;Satsuoni/DeDRM repo&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Under the releases tab, you &lt;em&gt;need&lt;/em&gt; to download one of the pre-releases, the current stable version doesn&amp;rsquo;t work to strip the more recent KFX encryption.&lt;/li&gt;&#xA;&lt;li&gt;Download the zip file and extract it. There will be several more zip files within it, do &lt;em&gt;not&lt;/em&gt; extract those as that is the format Calibre expects for plugins.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Copy the &lt;code&gt;KFXKeyExtractor28.exe&lt;/code&gt; file into &lt;code&gt;%localappdata%\Amazon\Kindle\application&lt;/code&gt;.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;You&amp;rsquo;ll need to run a command similar to this one to grab the keys from your downloaded books:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-cmd&#34; data-lang=&#34;cmd&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  C:\Users\ssbtech\AppData\Local\Amazon\Kindle\application\KFXKeyExtractor28.exe &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;C:\Users\ssbtech\Documents\My Kindle Content&amp;#34;&lt;/span&gt; kindlekey.txt kindle_account.k4i&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This application is what gathers the keys needed by the Calibre DeDRM plugin to strip the DRM.&lt;/p&gt;&#xA;&lt;p&gt;&lt;span style=color:red&gt;&lt;em&gt;&lt;strong&gt;You need to run this every time you download new books! Every book you download has a unique key!&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&#xA;&lt;p&gt;I created this convenience batch script that I run every time I download a new book to strip the DRM from.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-cmd&#34; data-lang=&#34;cmd&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;@&lt;span style=&#34;color:#66d9ef&#34;&gt;echo&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;cd&lt;/span&gt; C:\users\ssbtech&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;C:\Users\ssbtech\AppData\Local\Amazon\Kindle\application\KFXKeyExtractor28.exe&lt;span style=&#34;color:#75715e&#34;&gt; &amp;#34;C:\Users\ssbtech\Documents\My Kindle Content&amp;#34; kindlekey.txt kindle_account.k4i&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Next we need to configure the DeDRM plugin in Calibre. Install &lt;a href=&#34;https://calibre-ebook.com/&#34;&gt;Calibre for PC&lt;/a&gt; and navigate through the welcome wizard.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Once it drops you on the main screen, go into Preferences &amp;gt; Plugins.&lt;/li&gt;&#xA;&lt;li&gt;Click on &amp;ldquo;Add Plugin From File&amp;rdquo;. You&amp;rsquo;ll want to add the &lt;code&gt;DeDRM_plugin.zip&lt;/code&gt; file that was in the zip you extracted earlier.&lt;/li&gt;&#xA;&lt;li&gt;Click on OK to go back to the application, don&amp;rsquo;t restart Calibre yet. Click on &amp;ldquo;Get Plugins&amp;rdquo;. Search for a plugin called &lt;code&gt;KFX Input&lt;/code&gt; and install that, too.&lt;/li&gt;&#xA;&lt;li&gt;Now you can let Calibre restart to make sure that your new plugins are loaded.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Open the plugins menu once more and find the DeDRM plugin that you installed earlier.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Click on &amp;ldquo;Customize Plugin&amp;rdquo;.&lt;/li&gt;&#xA;&lt;li&gt;Click on &amp;ldquo;Kindle for PC/MAC eBooks&amp;rdquo; and then &amp;ldquo;Import existing keyfiles&amp;rdquo;. You&amp;rsquo;ll want to import the &lt;code&gt;.k4i&lt;/code&gt; file that we created earlier.&lt;/li&gt;&#xA;&lt;li&gt;Next, click on &amp;ldquo;Set Keyfile&amp;rdquo; and set it to the &lt;code&gt;kindlekey.txt&lt;/code&gt; file that was created along with the &lt;code&gt;.k4i&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;At this point you&amp;rsquo;re ready to import Kindle eBooks and strip them of DRM.&lt;/li&gt;&#xA;&lt;li&gt;Click on &amp;ldquo;Add Books&amp;rdquo;. Kindle for PC stores the eBooks under your Documents folder (&lt;code&gt;%USERPROFILE%\Documents\My Kindle Content&lt;/code&gt;).&#xA;&lt;ul&gt;&#xA;&lt;li&gt;They&amp;rsquo;re stored in folders that look like strings of random characters, but inside of each of them is a &lt;code&gt;.azw&lt;/code&gt; file, that&amp;rsquo;s your eBook. Import that into Calibre.&lt;/li&gt;&#xA;&lt;li&gt;If you did it right, it will show as type &lt;code&gt;KFX&lt;/code&gt;, which you can then convert to EPUB.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;troubleshooting&#34;&gt;Troubleshooting&lt;/h2&gt;&#xA;&lt;h3 id=&#34;files-showing-kfx-zip-extension-instead-of-kfx-cant-strip-drm&#34;&gt;Files showing KFX-ZIP extension instead of KFX, can&amp;rsquo;t strip DRM.&lt;/h3&gt;&#xA;&lt;p&gt;If the files you&amp;rsquo;re importing show the type &lt;code&gt;KFX-ZIP&lt;/code&gt; instead of &lt;code&gt;KFX&lt;/code&gt; that means that they&amp;rsquo;re still encrypted and can&amp;rsquo;t be run through the DRM stripping process.&lt;/p&gt;&#xA;&lt;p&gt;&lt;span style=color:red&gt;&lt;em&gt;This is usually because you didn&amp;rsquo;t re-run KFXKeyExtractor28.exe after downloading a new book.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&#xA;&lt;p&gt;Remove the book from Calibre, then re-run the batch script we created earlier so it grabs the new keys for the newly downloaded books.&lt;/p&gt;&#xA;&lt;p&gt;If that doesn&amp;rsquo;t work, I&amp;rsquo;d probably start by going back to the GitHub repo and seeing if there&amp;rsquo;s a new release or a new method. Amazon is constantly changing their DRM to make it more difficult to remove.&lt;/p&gt;&#xA;&lt;h3 id=&#34;converted-files-are-huge&#34;&gt;Converted files are huge&lt;/h3&gt;&#xA;&lt;p&gt;This is because of the images embedded into the EPUB file.&lt;/p&gt;&#xA;&lt;p&gt;I typically recommend setting your &amp;ldquo;device&amp;rdquo; in Calibre to something like an actual Kindle e-Reader.&lt;/p&gt;&#xA;&lt;p&gt;Calibre will automatically scale images based on that option. If you chose the &amp;ldquo;Generic&amp;rdquo; type it won&amp;rsquo;t scale the images down at all.&lt;/p&gt;&#xA;&lt;p&gt;Just make sure when you change the device type to an Amazon eReader that it didn&amp;rsquo;t override your default output type.&lt;/p&gt;&#xA;&lt;p&gt;Go under Preferences &amp;gt; Behavior and set the &amp;ldquo;Preferred output format&amp;rdquo; to EPUB.&lt;/p&gt;&#xA;&lt;h2 id=&#34;links-to-the-guides-i-used&#34;&gt;Links to the guides I used&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://techy-notes.com/remove-drm-from-kindle-ebooks/&#34;&gt;Techy-notes guide&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://thecodeshewrites.com/2025/02/25/how-to-remove-drm-from-amazon-kindle-adobe-ade-ebooks-for-free/&#34;&gt;Thecodeshewrites guide&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;</description>
    </item>
    <item>
      <title>Linux on an Asus CR11 Chromebook</title>
      <link>https://blog.ssb-tech.net/posts/linux-on-a-chromebook/</link>
      <pubDate>Sat, 13 Dec 2025 15:52:08 -0500</pubDate>
      <guid>https://blog.ssb-tech.net/posts/linux-on-a-chromebook/</guid>
      <description>&lt;h2 id=&#34;in-which-i-have-zero-self-control&#34;&gt;In which I have zero self control&lt;/h2&gt;&#xA;&lt;p&gt;While browsing the Amazon Black Friday sales a few weeks ago, a particular deal caught my eye.&lt;/p&gt;&#xA;&lt;p&gt;An ASUS Chromebook CR11 ruggedized laptop for around $130.&lt;/p&gt;&#xA;&lt;p&gt;Now, I have enough laptops, but I&amp;rsquo;ve always wanted to try and hack Linux onto one, and this one was attractive due to its ruggedized nature as well as a full blown Intel N100 CPU.&lt;/p&gt;&#xA;&lt;p&gt;I purchased the laptop and once it arrived, I began poking around the internet to see how I could get regular Linux on this thing.&lt;/p&gt;&#xA;&lt;h2 id=&#34;installing-linux-part-1&#34;&gt;Installing Linux, Part 1&lt;/h2&gt;&#xA;&lt;p&gt;I have no desire to use Google&amp;rsquo;s spyware filled ChromeOS, so if I couldn&amp;rsquo;t find a way to get Linux on this machine, it was going back to Amazon.&lt;/p&gt;&#xA;&lt;p&gt;A few searches guided me to &lt;a href=&#34;https://docs.mrchromebox.tech/&#34;&gt;mrchromebox.tech&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This specific model I had was very similar to a few other builds that show full compatibility, so my hopes were raised.&lt;/p&gt;&#xA;&lt;p&gt;I went through their &lt;a href=&#34;https://docs.mrchromebox.tech/docs/getting-started.html&#34;&gt;Getting Started&lt;/a&gt; guide, which helped me get Developer Mode enabled, and I found my device ID.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;ANRAGGAR&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This HWID showed full compatibility with the full UEFI replacement firmware, which is exactly what I wanted.&lt;/p&gt;&#xA;&lt;p&gt;However, on most ChromeOS devices, it&amp;rsquo;s a requirement to &lt;a href=&#34;https://docs.mrchromebox.tech/docs/firmware/wp/disabling.html&#34;&gt;disable hardware write protection&lt;/a&gt; in order to flash the replacement firmware.&lt;/p&gt;&#xA;&lt;p&gt;This particular model had a Ti50 security chip, so the only method of disabling write protection was to use Closed Case Debugging (CCD). This process requires a &amp;ldquo;SuzyQ&amp;rdquo; ChromeOS debug board.&lt;/p&gt;&#xA;&lt;p&gt;A little bit annoying, but not the end of the world.&lt;/p&gt;&#xA;&lt;p&gt;I went on eBay and found the debug board listed &lt;a href=&#34;https://www.ebay.com/itm/316024978790&#34;&gt;here.&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;It took around a week to get to my house, and with that in hand, I tried again.&lt;/p&gt;&#xA;&lt;h2 id=&#34;installing-linux-part-2&#34;&gt;Installing Linux, Part 2&lt;/h2&gt;&#xA;&lt;p&gt;I followed the steps listed &lt;a href=&#34;https://docs.mrchromebox.tech/docs/firmware/wp/disabling.html#using-closed-case-debugging-ccd-using-a-suzyqable&#34;&gt;here&lt;/a&gt; to disable hardware write protection.&lt;/p&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A SuzyQ cable is not like a typical USB-C connected device, where it is reversible. If you look closely at the board, one will be labeled side A, the other is side B. On the board that I received, side A needed to be facing up.&lt;/li&gt;&#xA;&lt;li&gt;I had plugged it into the top left USB-C port on my laptop, I&amp;rsquo;m not sure if it will work when plugged into the other one. However, I did power the board by plugging it into the other available USB-C port.&lt;/li&gt;&#xA;&lt;li&gt;The MrChromebox documentation says that it takes 2-3 minutes of pressing the physical presence sensor to enable CCD. In reality, it was more like 5. It paused several times during the process, and it rebooted without ever showing me the &amp;ldquo;PP Done!&amp;rdquo; message that the docs suggest. However, the steps there did work fine.&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;Once I had gone through the steps and verified that hardware write protection was indeed disabled, I proceeded to the next step, which was flashing the firmware.&lt;/p&gt;&#xA;&lt;p&gt;I used the provided &lt;a href=&#34;https://docs.mrchromebox.tech/docs/fwscript.html&#34;&gt;firmware utility script&lt;/a&gt; to flash the firmware.&lt;/p&gt;&#xA;&lt;p&gt;Generally I don&amp;rsquo;t recommend running scripts blindly from the internet, but it truly does make this process a ton easier, and if you wish, you can review the script yourself. (And I recommend doing so before you run it!)&lt;/p&gt;&#xA;&lt;p&gt;First, I backed up the existing ChromeOS firmware to a USB stick. Handy, in case I ended up needing to return this laptop.&lt;/p&gt;&#xA;&lt;p&gt;Then, I proceeded to flash the Coreboot UEFI firmware.&lt;/p&gt;&#xA;&lt;p&gt;It took a few minutes, but once done I was able to boot into the &lt;a href=&#34;https://fedoraproject.org/spins/sway/download&#34;&gt;Fedora 43 Sway Spin&lt;/a&gt; installer.&lt;/p&gt;&#xA;&lt;h2 id=&#34;some-problems&#34;&gt;Some problems&lt;/h2&gt;&#xA;&lt;p&gt;I noticed right away that the touchpad didn&amp;rsquo;t work in the installer, but I proceeded anyway. I could have grabbed a mouse, but being the lazy person I am, I just navigated the installation with the keyboard instead.&lt;/p&gt;&#xA;&lt;p&gt;Once installed, it took me a few minutes to figure out where all the needed buttons were.&lt;/p&gt;&#xA;&lt;p&gt;Linux maps the Chromebook Search key to Super_L, which I needed to open the default &lt;code&gt;drun&lt;/code&gt; menu. Can&amp;rsquo;t do much in &lt;a href=&#34;https://swaywm.org/&#34;&gt;Sway&lt;/a&gt; without being able to open &lt;code&gt;drun&lt;/code&gt; or a similar launcher!&lt;/p&gt;&#xA;&lt;p&gt;The touchpad still didn&amp;rsquo;t work, and neither did sound. However, everything else worked a treat.&lt;/p&gt;&#xA;&lt;p&gt;It was a bit strange, since the touchpad appeared normally in &lt;code&gt;libinput --list-devices&lt;/code&gt;, and the sound driver appeared normally in &lt;code&gt;pavucontrol&lt;/code&gt;, however, neither of them worked at all, and there were a TON of errors in &lt;code&gt;dmesg&lt;/code&gt; regarding the sound driver.&lt;/p&gt;&#xA;&lt;p&gt;I did some searching on the &lt;a href=&#34;https://forum.chrultrabook.com/&#34;&gt;chultrabook forums&lt;/a&gt;, and I was able to find solutions for both issues.&lt;/p&gt;&#xA;&lt;h3 id=&#34;fixing-the-audio-problem&#34;&gt;Fixing the audio problem&lt;/h3&gt;&#xA;&lt;p&gt;The &lt;a href=&#34;https://docs.chultrabook.com&#34;&gt;chultrabook docs&lt;/a&gt; contained a &amp;ldquo;Post-Install&amp;rdquo; FAQ that was very helpful - I found their &lt;a href=&#34;https://github.com/WeirdTreeThing/chromebook-linux-audio&#34;&gt;audio script&lt;/a&gt; which was all I needed to get sound working.&lt;/p&gt;&#xA;&lt;h3 id=&#34;fixing-the-touchpad-problem&#34;&gt;Fixing the touchpad problem&lt;/h3&gt;&#xA;&lt;p&gt;The touchpad issue was a bit trickier to pin down.&lt;/p&gt;&#xA;&lt;p&gt;Eventually I found &lt;a href=&#34;https://forum.chrultrabook.com/t/no-touchpad-multitouch-on-asus-chromebook-cx9-drobit/3606&#34;&gt;this post&lt;/a&gt; that pointed me in the right direction.&lt;/p&gt;&#xA;&lt;p&gt;The answer was to configure a &lt;code&gt;libinput&lt;/code&gt; quirk:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo vim /etc/libinput/local-overrides.quirks&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Enter the following content:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[PNP Touchpad]&#xA;MatchName=*PNP*Touchpad*&#xA;AttrResolutionHint=31x31&#xA;AttrPressureRange=10:8&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Replace &lt;code&gt;PNP&lt;/code&gt; with your touchpad model as it shows up in &lt;code&gt;libinput --list-devices&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Once you&amp;rsquo;ve done so, write and quit the file, then reboot your Chromebook.&lt;/p&gt;&#xA;&lt;p&gt;Success! The touchpad now works!&lt;/p&gt;&#xA;&lt;h2 id=&#34;final-thoughts&#34;&gt;Final Thoughts&lt;/h2&gt;&#xA;&lt;p&gt;The Chromebook performs very well under Fedora, but I&amp;rsquo;m also not running a full on desktop environment.&lt;/p&gt;&#xA;&lt;p&gt;If KDE is your preferred environment, you may run into more issues, especially since this device only has 4GB of onboard memory, and a relatively weak Intel CPU.&lt;/p&gt;&#xA;&lt;p&gt;I haven&amp;rsquo;t used Gnome in quite some time, but I expect it would run into similar limitations.&lt;/p&gt;&#xA;&lt;p&gt;The screen isn&amp;rsquo;t fantastic, but it&amp;rsquo;s good enough for what I&amp;rsquo;m planning on using this laptop for - effectively just tossing it in my bag when I need a super small and light laptop for travelling, or when I want to sit on the couch and chat on Discord while watching TV.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Do I recommend buying this specifically to run Linux?&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;No, not really.&lt;/p&gt;&#xA;&lt;p&gt;It works great once you get it going, especially for the price, but you can likely find better laptops on eBay.&lt;/p&gt;&#xA;&lt;p&gt;Used ThinkPads are the way to go for cheap laptops.&lt;/p&gt;&#xA;&lt;p&gt;This was just a fun little &amp;ldquo;I wonder if I can do this&amp;rdquo; project.&lt;/p&gt;&#xA;&lt;p&gt;That said, if you already have one of these devices? I &lt;em&gt;highly&lt;/em&gt; recommend installing regular Linux on it.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Proxying AdGuard Home DNS-over-HTTPS with Nginx</title>
      <link>https://blog.ssb-tech.net/posts/adguard-home-doh-nginx/</link>
      <pubDate>Tue, 28 Oct 2025 20:38:03 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/adguard-home-doh-nginx/</guid>
      <description>&lt;p&gt;A few months ago I switched from using Pi-hole to AdGuardHome for serving adblocking DNS to not just the clients in my home, but also my mobile devices.&lt;/p&gt;&#xA;&lt;p&gt;There were a few reasons for this, but chief among them was its proper support for DNS-over-TLS (DOT) and DNS-over-HTTPS (DOH).&lt;/p&gt;&#xA;&lt;p&gt;I had previously been running unencrypted DNS via &lt;a href=&#34;https://tailscale.com&#34;&gt;Tailscale&lt;/a&gt;, but because of the way I have things configured, this mean that every DNS request from an external device looked like it was coming from my &lt;a href=&#34;https://tailscale.com/kb/1019/subnets&#34;&gt;subnet router&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;DOT and DOH both support the concept of unique &lt;a href=&#34;https://github.com/AdguardTeam/AdGuardHome/wiki/Clients&#34;&gt;client IDs&lt;/a&gt;, which makes it easier to track down which device a particular request is coming from.&lt;/p&gt;&#xA;&lt;p&gt;However, one of the few problems that I&amp;rsquo;ve encountered with AdGuard is that there&amp;rsquo;s no way to separate the admin interface from the port that DOH uses.&lt;/p&gt;&#xA;&lt;p&gt;I brought up this conundrum in the Discord server for the since defunct &lt;a href=&#34;https://selfhosted.show&#34;&gt;Self-Hosted Podcast&lt;/a&gt;, and one of the users there (thanks Quietsy!) made an interesting suggestion that I must admit hadn&amp;rsquo;t crossed my mind.&lt;/p&gt;&#xA;&lt;p&gt;Simply put a reverse proxy in front of the application and implement access controls based on path.&lt;/p&gt;&#xA;&lt;p&gt;DOH runs over the &lt;code&gt;/dns-query&lt;/code&gt; endpoint, while the admin interface is at the root &lt;code&gt;/&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I logged into the VPS that&amp;rsquo;s running my public-facing AdGuard server and installed nginx.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;sudo apt install nginx&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then I stopped AdGuard:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl stop AdGuardHome&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I then edited &lt;code&gt;AdGuardHome.yaml&lt;/code&gt; (The path to this file may vary based on how you installed AdGuard).&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo vim AdGuardHome.yaml&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I changed the &lt;code&gt;https_port&lt;/code&gt; from its default 443 to 4433, and the &lt;code&gt;http&lt;/code&gt; listening port from 80 to 8080.&lt;/p&gt;&#xA;&lt;p&gt;Then start AdGuard back up with:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl start AdGuardHome&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then I created a site in Nginx at &lt;code&gt;/etc/nginx/sites-enabled/adguardhome&lt;/code&gt; with the following settings:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;proxy_cache_path /var/cache/adguardhome levels=1:2 keys_zone=adguard_cache:10m max_size=3g inactive=120m use_temp_path=off;&#xA;&#xA;upstream adguardhome {&#xA;    server 127.0.0.1:4433;&#xA;    keepalive 64;&#xA;}&#xA;&#xA;server {&#xA;    server_name adguard.domain.tld;&#xA;    listen 80;&#xA;    # listen [::]:80 default_server;&#xA;&#xA;    return 301 https://$host$request_uri;&#xA;}&#xA;&#xA;server {&#xA;    server_name adguard.domain.tld;&#xA;    listen 443 ssl http2;&#xA;&#xA;    access_log /var/log/nginx/agh.access.log;&#xA;    error_log /var/log/nginx/agh.error.log warn;&#xA;&#xA;    gzip on;&#xA;    gzip_vary on;&#xA;    gzip_proxied any;&#xA;    gzip_comp_level 6;&#xA;    gzip_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;&#xA;&#xA;    ssl_dhparam /etc/nginx/ssl/dhparam.pem;&#xA;    ssl_session_timeout 1d;&#xA;    ssl_session_cache shared:MozSSL:10m;&#xA;    ssl_session_tickets off;&#xA;&#xA;    ssl_protocols TLSv1.2 TLSv1.3;&#xA;    ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;&#xA;    ssl_prefer_server_ciphers off;&#xA;&#xA;    ssl_certificate /etc/letsencrypt/live/adguard.domain.tld/fullchain.pem;&#xA;    ssl_certificate_key /etc/letsencrypt/live/adguard.domain.tld/privkey.pem;&#xA;&#xA;    ssl_early_data on;&#xA;&#xA;    add_header X-Frame-Options &amp;#34;SAMEORIGIN&amp;#34; always;&#xA;    add_header X-XSS-Protection &amp;#34;1; mode=block&amp;#34; always;&#xA;    add_header X-Content-Type-Options &amp;#34;nosniff&amp;#34; always;&#xA;    add_header Referrer-Policy no-referrer;&#xA;    add_header Strict-Transport-Security &amp;#34;max-age=63072000&amp;#34; always;&#xA;    add_header Permissions-Policy &amp;#34;interest-cohort=()&amp;#34;;&#xA;&#xA;    # Discourage Google bots from indexing this site&#xA;    add_header X-Robots-Tag &amp;#34;noindex&amp;#34;;&#xA;&#xA;    # Allow the dns-query endpoint&#xA;    location /dns-query {&#xA;    proxy_pass https://adguardhome/dns-query;&#xA;&#xA;    proxy_set_header Host $host;&#xA;    proxy_set_header X-Real-IP $remote_addr;&#xA;    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;&#xA;    proxy_set_header X-Forwarded-Proto $scheme;&#xA;&#xA;    proxy_http_version 1.1;&#xA;    proxy_set_header Connection &amp;#34;&amp;#34;;&#xA;&#xA;    # Timeouts&#xA;    proxy_connect_timeout 90;&#xA;    proxy_send_timeout 300;&#xA;    proxy_read_timeout 90s;&#xA;    }&#xA;&#xA;    # For all other locations, return 403.&#xA;    location / {&#xA;            return 403;&#xA;    }&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Enable and start the webserver:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl enable --now nginx&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now, lets use &lt;a href=&#34;https://github.com/mr-karan/doggo&#34;&gt;doggo&lt;/a&gt; to test our DOH configuration.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;doggo fedoraproject.org @https://adguard.domain.tld/dns-query/client-id&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;NAME                    TYPE    CLASS   TTL     ADDRESS         NAMESERVER&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;fedoraproject.org.      A       IN      47s     8.43.85.67      https://adguard.domain.tld/dns-query/client-id&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;fedoraproject.org.      A       IN      47s     8.43.85.73      https://adguard.domain.tld/dns-query/client-id&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;fedoraproject.org.      A       IN      47s     152.2.23.104    https://adguard.domain.tld/dns-query/client-id&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;fedoraproject.org.      A       IN      47s     34.211.44.206   https://adguard.domain.tld/dns-query/client-id&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;fedoraproject.org.      A       IN      47s     140.211.169.196 https://adguard.domain.tld/dns-query/client-id&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;fedoraproject.org.      A       IN      47s     38.145.32.21    https://adguard.domain.tld/dns-query/client-id&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;fedoraproject.org.      A       IN      47s     152.2.23.103    https://adguard.domain.tld/dns-query/client-id&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;fedoraproject.org.      A       IN      47s     67.219.144.68   https://adguard.domain.tld/dns-query/client-id&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;fedoraproject.org.      A       IN      47s     38.145.32.20    https://adguard.domain.tld/dns-query/client-id&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Perfect!&lt;/p&gt;&#xA;&lt;p&gt;Now, lets make sure I can&amp;rsquo;t access the admin interface from the public facing nginx&amp;hellip;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Getting a 403 error as expected for other paths&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/adguard-home-doh-nginx/images/adguardnginx403.png&#34;&gt;&#xA;Awesome.&lt;/p&gt;&#xA;&lt;p&gt;I am also notably &lt;strong&gt;&lt;em&gt;NOT&lt;/em&gt;&lt;/strong&gt; exposing port 53. Only 853 and 443, both of which are using TCP.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Getting started with Docker</title>
      <link>https://blog.ssb-tech.net/posts/docker-pitfalls/</link>
      <pubDate>Sun, 26 Oct 2025 15:41:37 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/docker-pitfalls/</guid>
      <description>&lt;h1 id=&#34;getting-started-with-docker&#34;&gt;Getting started with Docker&lt;/h1&gt;&#xA;&lt;p&gt;&lt;em&gt;So, you wanna use docker-compose&amp;hellip;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;Welcome! If you&amp;rsquo;re looking at this post, I assume that you&amp;rsquo;re new to Docker and you want to learn to get up and running quickly.&lt;/p&gt;&#xA;&lt;p&gt;There are several areas of Docker that confuse new users, and I will do my best to address most of the most common pitfalls in this post.&lt;/p&gt;&#xA;&lt;h2 id=&#34;docker-run-vs-docker-compose&#34;&gt;docker run vs docker compose&lt;/h2&gt;&#xA;&lt;p&gt;Don&amp;rsquo;t use &lt;code&gt;docker run&lt;/code&gt;. If the thing you want to run in Docker only gives you the &lt;code&gt;docker run&lt;/code&gt; syntax, you take that thing over to &lt;a href=&#34;https://www.composerize.com/&#34;&gt;Composerize&lt;/a&gt; and you convert it.&lt;/p&gt;&#xA;&lt;p&gt;There&amp;rsquo;s nothing particularly &lt;em&gt;wrong&lt;/em&gt; with &lt;code&gt;docker run&lt;/code&gt;, but &lt;code&gt;docker compose&lt;/code&gt; is far easier to maintain and troubleshoot.&lt;/p&gt;&#xA;&lt;p&gt;Tools like &lt;a href=&#34;https://github.com/adrienverge/yamllint&#34;&gt;yamllint&lt;/a&gt; make diagnosing issues with compose file formatting much more tractable.&lt;/p&gt;&#xA;&lt;h2 id=&#34;docker-networking&#34;&gt;Docker networking&lt;/h2&gt;&#xA;&lt;p&gt;This seems to be the area that causes the most confusion.&lt;/p&gt;&#xA;&lt;p&gt;Don&amp;rsquo;t worry, you don&amp;rsquo;t need to be a network engineer to get a grasp of this, but having a good understanding of how networking works is very helpful.&lt;/p&gt;&#xA;&lt;h3 id=&#34;network-namespaces&#34;&gt;Network namespaces&lt;/h3&gt;&#xA;&lt;p&gt;Docker uses Linux kernel &lt;a href=&#34;https://blog.scottlowe.org/2013/09/04/introducing-linux-network-namespaces/&#34;&gt;network namespaces&lt;/a&gt; to achieve isolation. You don&amp;rsquo;t need to really understand any of this, but click the link if you&amp;rsquo;re at all interested.&lt;/p&gt;&#xA;&lt;p&gt;Effectively what this means is that containers by default are isolated from both the host operating system&amp;rsquo;s networking stack, and from each other.&lt;/p&gt;&#xA;&lt;p&gt;Whenever you create a new Docker compose project, by default it will create a new Docker network bridge, with its own internal subnet and DNS.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Containers in the same Docker compose project (in the same docker-compose.yml file, or separate files linked together with the &lt;code&gt;-p&lt;/code&gt; flag) share the same network bridge, and thereby are able to communicate with each other.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;communicating-with-containers-by-name&#34;&gt;Communicating with containers by name&lt;/h3&gt;&#xA;&lt;p&gt;Docker also does some things under the hood to make it possible for docker containers in the same stack to communicate with each other by service name.&lt;/p&gt;&#xA;&lt;p&gt;To illustrate this, lets go with a simple example.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;services&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;app&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;myapp&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;unless-stopped&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;environment&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;POSTGRES_CONNECTION_STRING=postgresql://postgres-db1:5432&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./config:/config&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;postgres-db1&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;postgres&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;unless-stopped&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Above, we have an extremely simple docker compose file, with a single application and a PostgreSQL database.&lt;/p&gt;&#xA;&lt;p&gt;You can see in the &lt;code&gt;POSTGRES_CONNECTION_STRING&lt;/code&gt; environment variable that it is using the name of the service to communicate with the database.&lt;/p&gt;&#xA;&lt;h3 id=&#34;creating-network-bridges&#34;&gt;Creating network bridges&lt;/h3&gt;&#xA;&lt;p&gt;But what if I don&amp;rsquo;t want or can&amp;rsquo;t have the containers in the same Compose project?&lt;/p&gt;&#xA;&lt;p&gt;That&amp;rsquo;s where creating your own bridges comes in.&lt;/p&gt;&#xA;&lt;p&gt;There are several different adapter types in Docker, the most common of them is the bridge, so that&amp;rsquo;s the only one we&amp;rsquo;ll be talking about in this article.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m sure as hell not going to get into macvlan or any of that, that&amp;rsquo;s a whole article on its own.&lt;/p&gt;&#xA;&lt;p&gt;Here you can create a bridge:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;docker network create proxy&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Where &lt;code&gt;proxy&lt;/code&gt; can be anything you like, it&amp;rsquo;s just the name you gave the bridge.&lt;/p&gt;&#xA;&lt;p&gt;This is how you can use external bridges in Docker compose:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;services&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;app01&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;proxy&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;proxy&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;external&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The key here is that you specify that the network is &lt;em&gt;external&lt;/em&gt; to the compose project, and that you specify that each container should use that network instead of the default bridge that would have been created.&lt;/p&gt;&#xA;&lt;p&gt;You can also specify more than one network per container. This can be useful if you have some containers that need external connectivity but others that don&amp;rsquo;t.&lt;/p&gt;&#xA;&lt;p&gt;For example, you could have one bridge that&amp;rsquo;s used by containers to communicate with the database, and another that the frontend uses to talk to the backend.&lt;/p&gt;&#xA;&lt;p&gt;Example:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;services&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;app01&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;proxy&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;database&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;proxy&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;external&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;database&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Note that the &lt;code&gt;database&lt;/code&gt; network is &lt;em&gt;not&lt;/em&gt; external here, so it will be created when you run &lt;code&gt;docker compose up&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;exposing-ports&#34;&gt;Exposing ports&lt;/h3&gt;&#xA;&lt;p&gt;Next, lets get into how Docker handles exposing ports.&lt;/p&gt;&#xA;&lt;p&gt;Lets take the Jellyfin docker compose file for an example:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;---&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;services&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;jellyfin&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;lscr.io/linuxserver/jellyfin:latest&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;container_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;jellyfin&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;environment&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;PUID=1000&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;PGID=1000&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;TZ=Etc/UTC&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;JELLYFIN_PublishedServerUrl=http://192.168.0.5&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;#optional&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;/path/to/jellyfin/library:/config&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;/path/to/tvseries:/data/tvshows&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;/path/to/movies:/data/movies&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;ports&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;8096&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;8096&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;8920&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;8920&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;#optional&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;7359&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;7359&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;/udp&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;#optional&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;1900&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;1900&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;/udp&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;#optional&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;unless-stopped&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You&amp;rsquo;ll notice the &lt;code&gt;ports&lt;/code&gt; key. These are what&amp;rsquo;s known as &lt;a href=&#34;https://docs.docker.com/get-started/docker-concepts/running-containers/publishing-ports/&#34;&gt;published ports&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The number on the left is what is mapped &lt;em&gt;outside&lt;/em&gt; the container (on the machine running Docker), and the one on the right is inside the container.&lt;/p&gt;&#xA;&lt;p&gt;In 99% of cases, you want to leave the number on the right alone.&lt;/p&gt;&#xA;&lt;p&gt;For example, if I wanted the Jellyfin web interface, which by default runs on port 8096, and expose it on port 9001, I could change the compose file like so:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;ports&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;9001&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;8096&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;8920&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;8920&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;#optional&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;7359&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;7359&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;/udp&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;#optional&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;1900&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;1900&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;/udp&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;#optional&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now, on to another example.&lt;/p&gt;&#xA;&lt;p&gt;In many cases, you may not want to expose any ports at all!&lt;/p&gt;&#xA;&lt;p&gt;If users external to the Docker host don&amp;rsquo;t need to be able to touch that port, then simply don&amp;rsquo;t publish it.&lt;/p&gt;&#xA;&lt;p&gt;Take this other example:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;services&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;proxy&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;jc21/nginx-proxy-manager:latest&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;unless-stopped&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;ports&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;80:80&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;# Public HTTP Port&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;443:443&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;# Public HTTPS Port&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;81:81&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;# Admin Web Port&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#75715e&#34;&gt;# Add any other Stream port you want to expose&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#75715e&#34;&gt;# - &amp;#39;21:21&amp;#39; # FTP&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./data:/data&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./letsencrypt:/etc/letsencrypt&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;vaultwarden&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;vaultwarden/server:latest&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;container_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;vaultwarden&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;unless-stopped&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;environment&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;DOMAIN&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;https://vw.domain.tld&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./vw-data/:/data/&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You&amp;rsquo;ll notice that the &lt;a href=&#34;https://github.com/dani-garcia/vaultwarden&#34;&gt;Vaultwarden&lt;/a&gt; container doesn&amp;rsquo;t have any published ports.&lt;/p&gt;&#xA;&lt;p&gt;That&amp;rsquo;s because it doesn&amp;rsquo;t need them. In this scenario, we would go into &lt;a href=&#34;https://nginxproxymanager.com/&#34;&gt;Nginx Proxy Manager&lt;/a&gt; and configure a proxy host for it.&lt;/p&gt;&#xA;&lt;p&gt;All communication with Vaultwarden would go through the proxy, so there&amp;rsquo;s no need to expose the port.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Remember that when containers are talking internally like this, you use the INTERNAL port (the one that would be on the right), instead of the one you would have exposed on the outside.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Nginx can talk to Vaultwarden and vice versa - there is no reason for a user to directly interact with the other container, so why let them?&lt;/p&gt;&#xA;&lt;p&gt;This is also valid syntax:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;ports&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;127.0.0.1&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;8000&lt;/span&gt;:&lt;span style=&#34;color:#ae81ff&#34;&gt;80&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is telling the container to only publish port 8000 on &lt;code&gt;localhost&lt;/code&gt;. You can substitute any other IP here to make it only listen on that one interface.&lt;/p&gt;&#xA;&lt;p&gt;I don&amp;rsquo;t use this a whole lot.&lt;/p&gt;&#xA;&lt;h2 id=&#34;docker-volumes&#34;&gt;Docker volumes&lt;/h2&gt;&#xA;&lt;p&gt;Docker volumes are simply a piece of your filesystem that you&amp;rsquo;re giving to the container to store persistent data.&lt;/p&gt;&#xA;&lt;p&gt;By definition, Docker containers are &lt;a href=&#34;https://www.merriam-webster.com/dictionary/ephemeral&#34;&gt;ephemeral.&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Unless you configure a volume, any data produced while the container is running will be lost when the container is destroyed.&lt;/p&gt;&#xA;&lt;p&gt;The two most popular ways to configure volumes in Docker are named Docker volumes and bind mounts.&lt;/p&gt;&#xA;&lt;p&gt;This is a named docker volume:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;postgres-data:/var/lib/postgresql/data&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And this is a bind mount:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  - &lt;span style=&#34;color:#ae81ff&#34;&gt;/apps/myapp/postgres-data:/var/lib/postgresql/data&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;&lt;p&gt;If it&amp;rsquo;s a filesystem path on the left, it&amp;rsquo;s a bind mount.&lt;/p&gt;&#xA;&lt;p&gt;The path on the right is the &lt;a href=&#34;https://askubuntu.com/questions/83518/what-are-mountpoints-and-which-one-should-i-pick&#34;&gt;mountpoint&lt;/a&gt; inside the container.&lt;/p&gt;&#xA;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;Honestly as far as I&amp;rsquo;m concerned it&amp;rsquo;s mostly personal preference which you use. I like using bind mounts as it makes it easier to keep track of where your data is.&lt;/p&gt;&#xA;&lt;p&gt;Named docker volumes will store the data in a subdirectory under &lt;code&gt;/var/lib/docker/volumes/&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Whichever one you use, please make sure you do backups&amp;hellip; I&amp;rsquo;m not going to help you try and get your data back, sorry.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Wireguard configuration concepts</title>
      <link>https://blog.ssb-tech.net/posts/on-wireguard/</link>
      <pubDate>Sun, 26 Oct 2025 15:04:55 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/on-wireguard/</guid>
      <description>&lt;h1 id=&#34;wireguard-concepts&#34;&gt;Wireguard concepts&lt;/h1&gt;&#xA;&lt;h2 id=&#34;the-point-of-this-post&#34;&gt;The point of this post&lt;/h2&gt;&#xA;&lt;p&gt;This is intended as a high level starting point for someone who is new to using Wireguard.&lt;/p&gt;&#xA;&lt;p&gt;If you spot any errors or inaccuracies, feel free to open a pull request in the &lt;a href=&#34;https://github.com/bladewdr/ssb-tech-blog&#34;&gt;Github repo&lt;/a&gt;, or leave a comment.&lt;/p&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://www.wireguard.com/&#34;&gt;Wireguard&lt;/a&gt; is a modern VPN protocol.&lt;/p&gt;&#xA;&lt;p&gt;Instead of using a traditional client server model, Wireguard uses a peer-to-peer mechanism. Authentication is handled with private and public key pairs, and optionally a pre-shared key.&lt;/p&gt;&#xA;&lt;h2 id=&#34;wireguard-configuration-on-linux&#34;&gt;Wireguard configuration on Linux&lt;/h2&gt;&#xA;&lt;p&gt;There are many ways to configure Wireguard on Linux, but the one that I typically use is by setting up a file in &lt;code&gt;/etc/wireguard&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;On Linux, this is the default location that the &lt;code&gt;wg-quick&lt;/code&gt; userspace utility looks for Wireguard interface configurations.&lt;/p&gt;&#xA;&lt;p&gt;The interface configuration can contain both the definition for the interface as well as any peers.&lt;/p&gt;&#xA;&lt;h3 id=&#34;anatomy-of-the-wireguard-configuration-file&#34;&gt;Anatomy of the Wireguard configuration file&lt;/h3&gt;&#xA;&lt;p&gt;Consider the following configuration file: &lt;code&gt;/etc/wireguard/demo.conf&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;When using &lt;code&gt;wg-quick&lt;/code&gt;, the interface name will be generated from the name of the configuration file. In this case, the interface name would be &lt;code&gt;demo&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Sample configuration file:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[Interface]&#xA;&#xA;Address = 192.168.99.5/24&#xA;PrivateKey = 2COm4EMxP5tcF9cpgCxBAsSGRwrjoMmWjkr+emGtylY=&#xA;ListenPort = 51820&#xA;&#xA;[Peer]&#xA;&#xA;PublicKey = Tlm3payEVQWCj7GK7Y7usejF4mix5FBULZryxfu9kxY=&#xA;PreSharedKey = chooseabetterkey&#xA;AllowedIPs = 192.168.99.8/32,10.10.33.0/24&#xA;Endpoint = demo.wireguard.com:51820&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Lets break down this config file into its components.&lt;/p&gt;&#xA;&lt;p&gt;Wireguard uses an INI-like syntax.&lt;/p&gt;&#xA;&lt;p&gt;There are 2 top level blocks that can be configured, &lt;code&gt;[Interface]&lt;/code&gt; and &lt;code&gt;[Peer]&lt;/code&gt;. There can be multiple &lt;code&gt;[Peer]&lt;/code&gt; definitions, but only one &lt;code&gt;[Interface]&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h4 id=&#34;the-interface-block&#34;&gt;The Interface Block&lt;/h4&gt;&#xA;&lt;dl&gt;&#xA;&lt;dt&gt;&lt;strong&gt;Address&lt;/strong&gt;&lt;/dt&gt;&#xA;&lt;dd&gt;What address do you want this particular peer to have? Make sure you set the correct CIDR notation for your subnet size. This one is &lt;code&gt;/24&lt;/code&gt; for a 254 address subnet.&lt;/dd&gt;&#xA;&lt;dt&gt;&lt;strong&gt;PrivateKey&lt;/strong&gt;&lt;/dt&gt;&#xA;&lt;dd&gt;The private key is a secret! I&amp;rsquo;ve generated this one just for this demo, it will be discarded after.&lt;/dd&gt;&#xA;&lt;dd&gt;&#xA;&lt;p&gt;But make sure you secure these properly!&lt;/p&gt;&#xA;&lt;/dd&gt;&#xA;&lt;dt&gt;&lt;strong&gt;ListenPort&lt;/strong&gt;&lt;/dt&gt;&#xA;&lt;dd&gt;The default listen port is 51820, but you can set it to anything you want. This is the network port that Wireguard will use to listen on this interface.&lt;/dd&gt;&#xA;&lt;/dl&gt;&#xA;&lt;h4 id=&#34;the-peer-block&#34;&gt;The Peer Block&lt;/h4&gt;&#xA;&lt;dl&gt;&#xA;&lt;dt&gt;&lt;strong&gt;PublicKey&lt;/strong&gt;&lt;/dt&gt;&#xA;&lt;dd&gt;This is the public key associated with the &lt;em&gt;peer&amp;rsquo;s&lt;/em&gt; private key, &lt;em&gt;not&lt;/em&gt; the private key of this interface.&lt;/dd&gt;&#xA;&lt;dt&gt;&lt;strong&gt;PreSharedKey&lt;/strong&gt;&lt;/dt&gt;&#xA;&lt;dd&gt;Preshared keys are optional but good for additional security. This is a key that needs to match on both sides of the connection.&lt;/dd&gt;&#xA;&lt;dt&gt;&lt;strong&gt;AllowedIPs&lt;/strong&gt;&lt;/dt&gt;&#xA;&lt;dd&gt;The AllowedIPs stanza is an interesting one. It is what Wireguard uses to make internal routing decisions, but those packets need to arrive at the Wireguard interface first.&lt;/dd&gt;&#xA;&lt;dd&gt;&#xA;&lt;p&gt;This is the reason I like to use wg-quick to set up my interfaces - if you don&amp;rsquo;t, you&amp;rsquo;ll need to add the routes yourself. This is personal preference.&lt;/p&gt;&#xA;&lt;/dd&gt;&#xA;&lt;dd&gt;&#xA;&lt;p&gt;The configuration above would allow this peer to have the 192.168.99.8 IP on the Wireguard internal subnet, and any traffic destined for 10.10.33.0/24 would also get passed along.&lt;/p&gt;&#xA;&lt;/dd&gt;&#xA;&lt;dd&gt;&#xA;&lt;p&gt;Note how I&amp;rsquo;m using &lt;code&gt;/32&lt;/code&gt; for the Wireguard internal subnet here. This is because I only want that &lt;em&gt;one&lt;/em&gt; IP to be valid for this peer. The subnet is still a &lt;code&gt;/24&lt;/code&gt; as configured on the interface itself.&lt;/p&gt;&#xA;&lt;/dd&gt;&#xA;&lt;dt&gt;&lt;strong&gt;Endpoint&lt;/strong&gt;&lt;/dt&gt;&#xA;&lt;dd&gt;Endpoint is technically an optional field.&lt;/dd&gt;&#xA;&lt;dd&gt;&#xA;&lt;p&gt;But it does need to be set on at least one side of each connection.&lt;/p&gt;&#xA;&lt;/dd&gt;&#xA;&lt;dd&gt;&#xA;&lt;p&gt;At least one of the peers needs to have a public IP address that&amp;rsquo;s reachable on the internet. (And the &lt;code&gt;ListenPort&lt;/code&gt; needs to be open.)&lt;/p&gt;&#xA;&lt;/dd&gt;&#xA;&lt;/dl&gt;&#xA;&lt;p&gt;There are other stanzas that can be used in the configuration file, but these are the basic ones.&lt;/p&gt;&#xA;&lt;p&gt;You can see the &lt;a href=&#34;https://www.man7.org/linux/man-pages/man8/wg.8.html&#34;&gt;wg&lt;/a&gt; and &lt;a href=&#34;https://www.man7.org/linux/man-pages/man8/wg-quick.8.html&#34;&gt;wg-quick&lt;/a&gt; man pages for more information on configuration file syntax.&lt;/p&gt;&#xA;&lt;h3 id=&#34;using-wg-quick-with-systemd&#34;&gt;Using wg-quick with systemd&lt;/h3&gt;&#xA;&lt;p&gt;When installing Wireguard on Linux, it comes with a template &lt;a href=&#34;https://en.wikipedia.org/wiki/Systemd&#34;&gt;systemd&lt;/a&gt; unit file for &lt;code&gt;wg-quick&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This is a wrapper that allows you to quickly set Wireguard configurations that load at startup.&lt;/p&gt;&#xA;&lt;p&gt;To start up our config file from earlier using wg-quick, you can do it like so:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl start wg-quick@demo&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Where the text after the &lt;code&gt;@&lt;/code&gt; symbol will always been the config file name without its &lt;code&gt;.conf&lt;/code&gt; extension. For more info on this, see the &lt;a href=&#34;https://wiki.archlinux.org/title/Systemd#Using_units&#34;&gt;Arch Wiki page on systemd&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If you want to make the configuration start at boot, you can enable the systemd unit.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl enable wg-quick@demo&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;Yes, you can have multiple Wireguard interfaces on one machine. Just make sure that they listen on different ports.&lt;/div&gt;&lt;/div&gt;&#xA;&lt;h2 id=&#34;general-usage-notes&#34;&gt;General usage notes&lt;/h2&gt;&#xA;&lt;p&gt;While Wireguard as a protocol is peer-to-peer, many people do still use it in a client-server architecture.&lt;/p&gt;&#xA;&lt;p&gt;One use case for this is if you&amp;rsquo;re using Wireguard to set up your own privacy VPN endpoint.&lt;/p&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;If you do use Wireguard as a VPN server, remember that you also need to enable &lt;a href=&#34;https://askubuntu.com/questions/311053/how-to-make-ip-forwarding-permanent&#34;&gt;IP forwarding&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&#xA;</description>
    </item>
    <item>
      <title>Passing through Intel Arc A380 to a Proxmox VM</title>
      <link>https://blog.ssb-tech.net/posts/proxmox-intel-arc-a380/</link>
      <pubDate>Sun, 17 Aug 2025 18:02:07 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/proxmox-intel-arc-a380/</guid>
      <description>&lt;p&gt;I recently purchased an AsRock Challenger ITX Intel Arc A380 GPU to use for my video transcoding needs.&lt;/p&gt;&#xA;&lt;p&gt;It was a bit of a headache to get it passed through to a VM in Proxmox, so here&amp;rsquo;s a log of what worked for me, in hopes that it will help someone else down the road.&lt;/p&gt;&#xA;&lt;p&gt;My VM is Ubuntu 24.04 LTS, running kernel 6.14 (HWE kernel).&lt;/p&gt;&#xA;&lt;p&gt;Proxmox is version 8.4.&lt;/p&gt;&#xA;&lt;p&gt;I was able to successfully pass through the GPU to the VM, but it shows as &lt;code&gt;UNCLAIMED&lt;/code&gt; in &lt;code&gt;lshw&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@gputest:/home/scott# lshw -c display&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;*-display UNCLAIMED&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;description: VGA compatible controller&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;product: DG2 &lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;Arc A380&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt; vendor: Intel Corporation&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;physical id: &lt;span style=&#34;color:#ae81ff&#34;&gt;10&lt;/span&gt; bus info: pci@0000:06:10.0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;version: &lt;span style=&#34;color:#ae81ff&#34;&gt;05&lt;/span&gt; width: &lt;span style=&#34;color:#ae81ff&#34;&gt;32&lt;/span&gt; bits&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;clock: 33MHz&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;capabilities: msi pm vga_controller cap_list&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;configuration: latency&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I&amp;rsquo;m not going to go through all the troubleshooting I did, just share what worked.&lt;/p&gt;&#xA;&lt;p&gt;We need to force the kernel to load the i915 driver.&lt;/p&gt;&#xA;&lt;p&gt;In addition to this, because I&amp;rsquo;m using &lt;a href=&#34;https://cloudinit.readthedocs.io/en/latest/index.html&#34;&gt;cloud-init&lt;/a&gt; and one of Ubuntu&amp;rsquo;s &lt;a href=&#34;https://cloud-images.ubuntu.com/&#34;&gt;Cloud Images&lt;/a&gt;, I can&amp;rsquo;t simply specify the kernel parameter in &lt;code&gt;/etc/default/grub&lt;/code&gt;. If you&amp;rsquo;re not using cloud-init, ignore the next step and simply specify this in &lt;code&gt;/etc/default/grub&lt;/code&gt; like so:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;quiet i915.force_probe=56a5&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Then run &lt;code&gt;update-grub&lt;/code&gt; and reboot.&lt;/p&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;These steps may be different if you&amp;rsquo;re using a distro like Fedora - I believe they now use &lt;code&gt;grubby&lt;/code&gt; to accomplish this task.&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;However, for those of us using cloud-init, you can instead simply specify these parameters in &lt;code&gt;/etc/modprobe.d/&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;sudo vim /etc/modprobe.d/i915.conf&lt;/code&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;&lt;p&gt;2025/08/23: This originally was set to load in the Xe driver and disable i915, but I found out later that things like Jellyfin do not have support for Xe, at least not yet. For now, you must force_probe the i915 driver instead.&lt;/p&gt;&#xA;&lt;p&gt;As of today I have tested this with both Jellyfin and Plex and can confirm the card works as expected.&lt;/p&gt;&#xA;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;options i915 force_probe=56a5&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Now that that&amp;rsquo;s done, here are my PCI passthrough settings on the VM:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@pve01:~# qm config &lt;span style=&#34;color:#ae81ff&#34;&gt;100&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;lt;snip&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cpu: host&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;hostpci0: 0000:2f:00,pcie&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; &amp;lt;---- This is the GPU itself&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;hostpci1: 0000:30:00,pcie&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt; &amp;lt;---- This is the GPU&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;&amp;#39;&lt;/span&gt;s audio controller.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;lt;snip&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;It does &lt;em&gt;not&lt;/em&gt; need to be set as the primary GPU, but you do want your machine type to be q35 and you want to enable PCI express.&lt;/p&gt;&#xA;&lt;p&gt;You also want to give the VM &lt;em&gt;more&lt;/em&gt; than 4GB RAM (so it can initialize the large BAR).&lt;/p&gt;&#xA;&lt;p&gt;And now on to the thing that took me hours to figure out.&lt;/p&gt;&#xA;&lt;p&gt;&lt;span style=color:red&gt;CSM &lt;em&gt;needs&lt;/em&gt; to be disabled in BIOS&lt;/span&gt;. At least with my motherboard, leaving it on meant that resizable BAR was disabled. Without this, passthrough didn&amp;rsquo;t work at all.&lt;/p&gt;&#xA;&lt;p&gt;Other settings you should enable:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Above 4G Decoding (May also be called large memory allocation).&lt;/li&gt;&#xA;&lt;li&gt;SR-IOV&lt;/li&gt;&#xA;&lt;li&gt;IOMMU&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Most of these can be found either in your PCI subsystem or chipset settings.&lt;/p&gt;&#xA;&lt;p&gt;Now the card shows normally in &lt;code&gt;lshw&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;scott@gputest:~$ sudo lshw -c display&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  *-display&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       description: VGA compatible controller&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       product: DG2 &lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;Arc A380&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       vendor: Intel Corporation&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       physical id: &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       bus info: pci@0000:01:00.0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       version: &lt;span style=&#34;color:#ae81ff&#34;&gt;05&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       width: &lt;span style=&#34;color:#ae81ff&#34;&gt;64&lt;/span&gt; bits&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       clock: 33MHz&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       configuration: driver&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;xe latency&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;       resources: iomemory:38000-37fff irq:38 memory:c0000000-c0ffffff memory:380000000000-3801ffffffff&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I&amp;rsquo;m not sure that this is 100% needed, but Intel also recommend &lt;a href=&#34;https://dgpu-docs.intel.com/driver/client/overview.html#ubuntu-latest&#34;&gt;installing their repo and some of their support packages&lt;/a&gt;. It can&amp;rsquo;t hurt, so why not.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo apt-get update&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo apt-get install -y software-properties-common&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo add-apt-repository -y ppa:kobuk-team/intel-graphics&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo apt-get install -y libze-intel-gpu1 libze1 intel-metrics-discovery intel-opencl-icd clinfo intel-gsc&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo apt-get install -y intel-media-va-driver-non-free libmfx-gen1 libvpl2 libvpl-tools libva-glx2 va-driver-all vainfo&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For some reason the &lt;code&gt;intel_gpu_top&lt;/code&gt; and &lt;code&gt;clinfo&lt;/code&gt; tools don&amp;rsquo;t seem to recognize the card. Possible that they just haven&amp;rsquo;t been updated with support for the newer Xe driver over i915.&lt;/p&gt;&#xA;&lt;p&gt;However, we can confirm that things are working with &lt;code&gt;vainfo&lt;/code&gt; and &lt;code&gt;ffmpeg&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I actually took this a step further and built a Docker image with &lt;code&gt;vainfo&lt;/code&gt; and &lt;code&gt;ffmpeg&lt;/code&gt; (since again, my intention is to use this for &lt;a href=&#34;https://jellyfin.org/&#34;&gt;Jellyfin&lt;/a&gt; in Docker.)&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@f7fe7efcfa51:/# vainfo&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Trying display: wayland&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;error: XDG_RUNTIME_DIR is invalid or not set in the environment.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Trying display: x11&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;error: can&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;&amp;#39;&lt;/span&gt;t connect to X server!&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Trying display: drm&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;libva info: VA-API version 1.22.0&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;libva info: Found init &lt;span style=&#34;color:#66d9ef&#34;&gt;function&lt;/span&gt; __vaDriverInit_1_22&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;libva info: va_openDriver&lt;span style=&#34;color:#f92672&#34;&gt;()&lt;/span&gt; returns &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vainfo: VA-API version: 1.22 &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;libva 2.22.0&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vainfo: Driver version: Intel iHD driver &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; Intel&lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;R&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt; Gen Graphics - 24.3.4 &lt;span style=&#34;color:#f92672&#34;&gt;()&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vainfo: Supported profile and entrypoints&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      VAProfileNone                   : VAEntrypointVideoProc&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      VAProfileNone                   : VAEntrypointStats&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      VAProfileMPEG2Simple            : VAEntrypointVLD&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      VAProfileMPEG2Main              : VAEntrypointVLD&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      VAProfileH264Main               : VAEntrypointVLD&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      VAProfileH264Main               : VAEntrypointEncSliceLP&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      VAProfileH264High               : VAEntrypointVLD&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      VAProfileH264High               : VAEntrypointEncSliceLP&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      VAProfileJPEGBaseline           : VAEntrypointVLD&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      VAProfileJPEGBaseline           : VAEntrypointEncPicture&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@f7fe7efcfa51:/# ffmpeg -hide_banner -encoders | grep qsv&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; V..... av1_qsv              AV1 &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;Intel Quick Sync Video acceleration&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;codec av1&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; V..... h264_qsv             H.264 / AVC / MPEG-4 AVC / MPEG-4 part &lt;span style=&#34;color:#ae81ff&#34;&gt;10&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;Intel Quick Sync Video acceleration&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;codec h264&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; V..... hevc_qsv             HEVC &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;Intel Quick Sync Video acceleration&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;codec hevc&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; V..... mjpeg_qsv            MJPEG &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;Intel Quick Sync Video acceleration&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;codec mjpeg&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; V..... mpeg2_qsv            MPEG-2 video &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;Intel Quick Sync Video acceleration&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;codec mpeg2video&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; V..... vp9_qsv              VP9 video &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;Intel Quick Sync Video acceleration&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;codec vp9&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Me IRL this weekend.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;IT Crowd Moss Throwing Computer&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/proxmox-intel-arc-a380/images/throw-computer.gif&#34;&gt;&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Connecting an Existing FreshRSS instance to OIDC</title>
      <link>https://blog.ssb-tech.net/posts/freshrss-oidc/</link>
      <pubDate>Fri, 15 Aug 2025 21:05:44 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/freshrss-oidc/</guid>
      <description>&lt;h1 id=&#34;connecting-an-existing-freshrss-instance-to-oidc&#34;&gt;Connecting an existing FreshRSS instance to OIDC&lt;/h1&gt;&#xA;&lt;p&gt;Specifically, how to do so without starting over.&lt;/p&gt;&#xA;&lt;p&gt;&lt;span style=color:red&gt;&lt;strong&gt;WARNING:&lt;/strong&gt; I am not responsible for you losing data by doing this. Make sure you have a recent backup before you go digging around and changing things in the filesystem.&lt;/span&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;It came to my attention yesterday that the &lt;a href=&#34;https://freshrss.org/index.html&#34;&gt;FreshRSS&lt;/a&gt; project directly supports OIDC now.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been using the Traefik &lt;a href=&#34;https://doc.traefik.io/traefik/middlewares/http/forwardauth/&#34;&gt;ForwardAuth middleware&lt;/a&gt; to get the same functionality for some time, but this allows me to get rid of a layer.&lt;/p&gt;&#xA;&lt;p&gt;It was also slightly clunky, since after I&amp;rsquo;d logged in through Authentik, I&amp;rsquo;d have to also authenticate via FreshRSS. I&amp;rsquo;m aware I could have simply disabled authentication, but I chose not to at the time.&lt;/p&gt;&#xA;&lt;p&gt;I had been using the &lt;a href=&#34;https://linuxserver.io&#34;&gt;LinuxServer.io&lt;/a&gt; Docker container, but this functionality depended on Apache&amp;rsquo;s OIDC module, so it was unsupported. (The LinuxServer.io container uses nginx instead of Apache.)&lt;/p&gt;&#xA;&lt;h2 id=&#34;oidc-setup&#34;&gt;OIDC Setup&lt;/h2&gt;&#xA;&lt;p&gt;The first thing I needed to do was switch to the &lt;a href=&#34;https://hub.docker.com/r/freshrss/freshrss&#34;&gt;official container on DockerHub&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The volume layout was a bit different from the LinuxServer container, so I had to stop the container and move some files around.&lt;/p&gt;&#xA;&lt;p&gt;All you should need to do is move the &lt;code&gt;data&lt;/code&gt; and &lt;code&gt;extensions&lt;/code&gt; folders out from under the &lt;code&gt;config&lt;/code&gt; directory that the LSIO container uses, and make them their own separate bind mounts.&lt;/p&gt;&#xA;&lt;p&gt;Next, I set about configuring OIDC.&lt;/p&gt;&#xA;&lt;p&gt;I followed their &lt;a href=&#34;https://freshrss.github.io/FreshRSS/en/admins/16_OpenID-Connect-Authentik.html&#34;&gt;official instructions&lt;/a&gt; to set up OIDC with &lt;a href=&#34;https://goauthentik.io/&#34;&gt;Authentik&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This was &lt;em&gt;mostly&lt;/em&gt; fine, though I had to make a few tweaks to their environment variables. The &lt;code&gt;OIDC_SCOPES&lt;/code&gt; variable in particular was my issue - it would not work if I had it in quotes. I can only assume that this was being interpreted as a single string by the application.&lt;/p&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s what my Docker Compose file wound up looking like at the end. The OIDC values have been replaced with gibberish, make sure to substitute your own if you copy and paste.&lt;/p&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;2025/08/21 - After posting this I began noticing that my feeds were no longer auto-updating. As it turns out, the FreshRSS official Docker image &lt;a href=&#34;https://freshrss.github.io/FreshRSS/en/admins/08_FeedUpdates.html&#34;&gt;disabled this feature by default unless you pass it the CRON_MIN environment variable&lt;/a&gt;. I have updated the Docker Compose file below with a setting that works.&lt;/div&gt;&lt;/div&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;services&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;freshrss&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;container_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;freshrss&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;environment&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;PUID=1000&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;PGID=1000&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;TZ=America/New_York&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;CRON_MIN=2,32&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;TRUSTED_PROXY=172.23.0.0/16&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;OIDC_ENABLED=1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;OIDC_PROVIDER_METADATA_URL=&amp;#34;https://auth.example.com/application/o/fresh-rss-oidc/.well-known/openid-configuration&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;OIDC_REMOTE_USER_CLAIM=preferred_username&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;OIDC_CLIENT_ID=1234455262233&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;OIDC_CLIENT_SECRET=7dfadkfjakldgjad7897324&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;OIDC_CLIENT_CRYPTO_KEY=dfajfakjglkdg70708723434&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;OIDC_SCOPES=openid email profile&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;OIDC_X_FORWARDED_HEADERS=X-Forwarded-Host X-Forwarded-Port X-Forwarded-Proto&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./data:/var/www/FreshRSS/data&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./extensions:/var/www/FreshRSS/extensions&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;unless-stopped&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;freshrss/freshrss:latest&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;labels&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.enable=true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.freshrss-external.rule=Host(`rss.example.com`)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.freshrss-external.entrypoints=https&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.freshrss-external.middlewares=default-headers@file&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.freshrss-external.tls=true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.freshrss-external.service=freshrss-external&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.services.freshrss-external.loadbalancer.server.port=80&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;proxy&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;proxy&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;external&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I&amp;rsquo;m not 100% certain that the &lt;code&gt;TRUSTED_PROXY&lt;/code&gt; setting is necessary. The subnet there is the subnet used by my &lt;code&gt;proxy&lt;/code&gt; docker network. It works and I&amp;rsquo;m too lazy to try removing it.&lt;/p&gt;&#xA;&lt;p&gt;You can get this subnet by running &lt;code&gt;docker network inspect &amp;lt;network-name&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;gt; docker-ubuntu in ~/docker/freshrss/data&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;docker network inspect proxy&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;docker network inspect proxy&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Name&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;proxy&amp;#34;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Id&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;4b6ea83029c955c6f7609af4552ed053760aadbb6de5c72f8390d3cfa96023b1&amp;#34;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Created&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;2022-09-24T02:01:57.289063399Z&amp;#34;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Scope&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;local&amp;#34;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Driver&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;bridge&amp;#34;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;EnableIPv6&amp;#34;&lt;/span&gt;: false,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;IPAM&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#f92672&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Driver&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;default&amp;#34;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Options&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#f92672&#34;&gt;{}&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Config&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#f92672&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                    &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Subnet&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;172.23.0.0/16&amp;#34;&lt;/span&gt;, &amp;lt;-------- This&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                    &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Gateway&amp;#34;&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;172.23.0.1&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;                &lt;span style=&#34;color:#f92672&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;            &lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;}&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;lt;snip&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;not-losing-data&#34;&gt;Not losing data&lt;/h2&gt;&#xA;&lt;p&gt;Onto the meat and potatoes.&lt;/p&gt;&#xA;&lt;p&gt;In order to not log into a completely fresh profile with no articles and none of your settings - your user ID in FreshRSS &lt;em&gt;needs&lt;/em&gt; to match that of your identity provider.&lt;/p&gt;&#xA;&lt;p&gt;Mine did not, so I had to do a little detective work.&lt;/p&gt;&#xA;&lt;p&gt;I stopped the container with a &lt;code&gt;docker compose down&lt;/code&gt; and started poking about in the filesystem, trying to figure out how I could change my username.&lt;/p&gt;&#xA;&lt;p&gt;As it turns out, it&amp;rsquo;s quite simple - each user has their own directory under &lt;code&gt;data/users/&lt;/code&gt;, and each user has their own individual sqlite database. I poked around in the database a little, but there didn&amp;rsquo;t seem to be any indication of who owned each entry it stored in its tables.&lt;/p&gt;&#xA;&lt;p&gt;This led me to believe that maybe FreshRSS was just reading the directory structure to find its list of users.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;docker-ubuntu in ~/docker/freshrss/data&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;gt; tree users&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;users&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;├── MyUsername&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;│   ├── config.php&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;│   ├── db.sqlite&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;│   └── log.txt&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;├── _&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;│   ├── db.sqlite&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;│   ├── index.html&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;│   ├── log.txt&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;│   ├── log_api.txt&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;│   └── log_pshb.txt&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;└── index.html&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt; directories, &lt;span style=&#34;color:#ae81ff&#34;&gt;10&lt;/span&gt; files&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;So as an experiment, I simply renamed the user folder under &lt;code&gt;data/users&lt;/code&gt; to match the one from my identity provider and started FreshRSS back up. Imagine my surprise when that simply worked.&lt;/p&gt;&#xA;&lt;p&gt;I was logged in automatically with Authentik SSO, and I had all of my feeds, saved articles and settings.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Proxmox Setup Notes</title>
      <link>https://blog.ssb-tech.net/posts/proxmox-setup-notes/</link>
      <pubDate>Thu, 07 Aug 2025 22:02:02 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/proxmox-setup-notes/</guid>
      <description>&lt;h1 id=&#34;proxmox-installation-steps&#34;&gt;Proxmox installation steps&lt;/h1&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;This post is a reference for me and anyone else that finds it useful.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve never bothered documenting this before, which leads me to missing stuff every time I set up a new box.&lt;/p&gt;&#xA;&lt;p&gt;This post will continue to be updated if I add anything new.&lt;/p&gt;&#xA;&lt;h2 id=&#34;installation&#34;&gt;Installation&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The primary thing to get right here is the storage configuration. Even if it&amp;rsquo;s a single disk I will typically do ZFS.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Click on Options. Choose whichever ZFS topology you want.&lt;/li&gt;&#xA;&lt;li&gt;Click on Advanced Options. Change Compression from &amp;ldquo;on&amp;rdquo; to &amp;ldquo;lz4&amp;rdquo;. This is the default anyway, but I like to be sure.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;ashift&lt;/code&gt; should be set to 12 or 13. I typically do 12, as this targets 4k physical sectors.&lt;/li&gt;&#xA;&lt;li&gt;Make sure that you have the correct disks selected. Any disk you do not want to be part of the boot pool should be set to &amp;ldquo;do not use&amp;rdquo;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;For the rest of the setup you can pretty much just click Next Next Next. I do recommend setting the correct time zone and a good DNS server.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;post-install&#34;&gt;Post-Install&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If you don&amp;rsquo;t have an Enterprise subscription we need to disable the enterprise repository and enable the one for no-subscription.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Click on the individual node (not Datacenter) and go to Updates &amp;gt; Repositories.&#xA;&lt;img alt=&#34;Picture showing where to click on the individual node&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/proxmox-setup-notes/images/pvesetup-node.png&#34;&gt;&lt;/li&gt;&#xA;&lt;li&gt;Click on Add and select &lt;code&gt;No Subscription&lt;/code&gt; from the dropdown.&lt;/li&gt;&#xA;&lt;li&gt;Next, select the repositories labeled &amp;ldquo;Enterprise&amp;rdquo; and disable them.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Enable Debian Non-Free-Firmware repository.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;This one can&amp;rsquo;t be done through the GUI. SSH in or use the web shell.&lt;/li&gt;&#xA;&lt;li&gt;Edit the sources&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vim /etc/apt/sources.list.d/pve-no-enterprise.list&lt;span style=&#34;color:#e6db74&#34;&gt;`&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;Add the following repo, replacing $VERSION with your release&amp;rsquo;s Debian base (bookworm, trixie):&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;https://deb.debian.org/debian $VERSION main non-free-firmware&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;Install the firmware microcode for your hardware vendor&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Run &lt;code&gt;apt update&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;apt install intel-microcode&lt;/code&gt; OR &lt;code&gt;apt install amd64-microcode&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;At this point, update the system. Reboot if needed.&lt;/li&gt;&#xA;&lt;li&gt;Next, lets fix the ZFS configuration.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Click on the &lt;code&gt;Datacenter&lt;/code&gt; tab and go do down to &lt;code&gt;Storage&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Select your zpool (or pools) and click Edit. You will have to do this for every pool individually.&lt;/li&gt;&#xA;&lt;li&gt;Enable thin provisioning.&lt;/li&gt;&#xA;&lt;li&gt;Change the Block Size to 64k or 128k. Either is probably fine, but the default 16k is abysmal for VM disks. This setting is the &lt;code&gt;zvol&lt;/code&gt; equivalent to the &lt;code&gt;recordsize&lt;/code&gt; property on datasets. Having this not match your workload will usually result in massive write amplification. This is why ZFS got a reputation for quickly killing SSDs, but it doesn&amp;rsquo;t have to if you configure your pool correctly.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Click on the individual node again. Go to &lt;code&gt;System &amp;gt; Network&lt;/code&gt; and select any bridges that you&amp;rsquo;ve created. Set them to be VLAN-aware.&lt;/li&gt;&#xA;&lt;li&gt;Set up the notification system under &lt;code&gt;Datacenter &amp;gt; Notifications&lt;/code&gt;. I will typically have it send me only backup failure notices and warnings about things like failed disks.&lt;/li&gt;&#xA;&lt;li&gt;I will typically set up a VM template at this stage to save myself a bunch of work later. See links below for options.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;other-notes&#34;&gt;Other Notes&lt;/h2&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re trying to set up a new ZFS storage pool and the disks aren&amp;rsquo;t showing up in the interface - the Proxmox interface will not show you any disks that have partitions on them.&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re expecting a drive to show up and it&amp;rsquo;s not you can go through the following procedure on the command line.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;lsblk&lt;/code&gt; to find the path of the drive that you need to wipe.&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;lsblk -o NAME,SIZE,MODEL&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;Wipe out all of the partitions.&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;wipefs -a /dev/sdX&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;The ZFS labels (which contain pool metadata) may survive &lt;code&gt;wipefs&lt;/code&gt; as it&amp;rsquo;s stored on the first few sectors of the drive, so lets make sure that any existing labels are gone. If this drive has never been used in a zpool before, you can skip this step.&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;zpool labelclear /dev/sdX&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;Try creating your pool again.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;links&#34;&gt;Links&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://old.reddit.com/r/zfs/comments/8l20f5/zfs_record_size_is_smaller_really_better/dzc9669/&#34;&gt;Reddit comment explaining the effect of a poorly matched recordsize property&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://technotim.live/posts/cloud-init-cloud-image/&#34;&gt;Setting up a cloud-init VM template&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/traefikturkey/oncall&#34;&gt;A repository for Packer templates for Various OS images&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://guneycansanli.github.io/my-blog/Automate-Creating-VM-templates-on-Proxmox-with-Packer/&#34;&gt;Automate Creating VM templates on Proxmox with Packer&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
    </item>
    <item>
      <title>Setting up brscan-skey with the Brother DS-940DW on Ubuntu</title>
      <link>https://blog.ssb-tech.net/posts/linux-scanning-ds940dw/</link>
      <pubDate>Fri, 13 Jun 2025 18:58:09 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/linux-scanning-ds940dw/</guid>
      <description>&lt;h1 id=&#34;setting-up-brscan-skey-with-the-brother-ds-940dw-on-ubuntu&#34;&gt;Setting up brscan-skey with the Brother DS-940DW on Ubuntu&lt;/h1&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;The Brother DS-940DW is a little handheld mobile scanner. Getting it working on Linux in a way where you can actually use the Start/Stop button on the scanner to scan things was a bit of a bear, so I thought I&amp;rsquo;d document how I did it.&lt;/p&gt;&#xA;&lt;p&gt;Part of the issue is that brscan-skey depends on the old version of &lt;code&gt;libsane&lt;/code&gt;, and does not work with &lt;code&gt;libsane1&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;solving-the-dependency-problem&#34;&gt;Solving the dependency problem&lt;/h2&gt;&#xA;&lt;p&gt;First, install the provided driver from the &lt;a href=&#34;https://support.brother.com/g/b/downloadlist.aspx?c=us&amp;amp;lang=en&amp;amp;prod=ds940dw_us_eu_as&amp;amp;os=128&#34;&gt;support page for the DS-940DW&lt;/a&gt;&#xA;You can grab the scan-key-tool deb package from &lt;a href=&#34;https://download.brother.com/welcome/dlf006652/brscan-skey-0.3.4-0.amd64.deb&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Going by &lt;a href=&#34;https://support.brother.com/g/b/faqend.aspx?c=as_ot&amp;amp;lang=en&amp;amp;prod=dcpl2600d_eu_as&amp;amp;faqid=faq00100811_000&#34;&gt;this Brother support article&lt;/a&gt;, I was able to get brscan-skey installed.&lt;/p&gt;&#xA;&lt;h3 id=&#34;steps&#34;&gt;Steps&lt;/h3&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo su&#xA;apt update&#xA;apt install sane libsane1 sane-utils imagemagick&#xA;wget -c http://jp.archive.ubuntu.com/ubuntu/pool/universe/s/sane-backends/libsane_1.1.1-5_amd64.deb&#xA;dpkg -i libsane_1.1.1-5_amd64.deb&#xA;apt install evince&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;configure-scanning&#34;&gt;Configure scanning&lt;/h2&gt;&#xA;&lt;p&gt;I had all sorts of fun figuring out how this all works, and honestly it&amp;rsquo;s pretty simple.&lt;/p&gt;&#xA;&lt;p&gt;Pressing the Start/Stop button on the scanner while brscan-skey is running calls this shell script:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;/opt/brother/scanner/brscan-skey/script/scantofile.sh&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;You can have it do whatever you want by editing the script.&lt;/p&gt;&#xA;&lt;p&gt;By default it uses psutils and pod2pdf, and a bunch of other utilities to scan first to PostScript, then convert it to PDF.&lt;/p&gt;&#xA;&lt;p&gt;I don&amp;rsquo;t often have the need to scan complex documents, so I simplified this quite a bit, as I&amp;rsquo;ll show you here in second.&lt;/p&gt;&#xA;&lt;p&gt;But before we do anything, we need to add some udev rules.&lt;/p&gt;&#xA;&lt;p&gt;Create a file at &lt;code&gt;/etc/udev/rules.d/NN-brother-mfp-brscan5-1.0.2-2.rules&lt;/code&gt; with the following content:&lt;/p&gt;&#xA;&lt;h3 id=&#34;udev-rules&#34;&gt;udev rules&lt;/h3&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ACTION!=&amp;#34;add&amp;#34;, GOTO=&amp;#34;brother_mfp_end&amp;#34;&#xA;SUBSYSTEM==&amp;#34;usb&amp;#34;, GOTO=&amp;#34;brother_mfp_udev_1&amp;#34;&#xA;SUBSYSTEM!=&amp;#34;usb_device&amp;#34;, GOTO=&amp;#34;brother_mfp_end&amp;#34;&#xA;LABEL=&amp;#34;brother_mfp_udev_1&amp;#34;&#xA;&#xA;ATTRS{idVendor}==&amp;#34;04f9&amp;#34;, GOTO=&amp;#34;brother_mfp_udev_2&amp;#34;&#xA;GOTO=&amp;#34;brother_mfp_end&amp;#34;&#xA;LABEL=&amp;#34;brother_mfp_udev_2&amp;#34;&#xA;&#xA;ATTRS{bInterfaceClass}!=&amp;#34;0ff&amp;#34;, GOTO=&amp;#34;brother_mfp_end&amp;#34;&#xA;ATTRS{bInterfaceSubClass}!=&amp;#34;0ff&amp;#34;, GOTO=&amp;#34;brother_mfp_end&amp;#34;&#xA;ATTRS{bInterfaceProtocol}!=&amp;#34;0ff&amp;#34;, GOTO=&amp;#34;brother_mfp_end&amp;#34;&#xA;&#xA;MODE=&amp;#34;0666&amp;#34;&#xA;GROUP=&amp;#34;scanner&amp;#34;&#xA;ENV{libsane_matched}=&amp;#34;yes&amp;#34;&#xA;LABEL=&amp;#34;brother_mfp_end&amp;#34;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Reload udev rules:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;sudo udevadm control --reload &amp;amp;&amp;amp; sudo udevadm trigger&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;scanner-group&#34;&gt;Scanner group&lt;/h3&gt;&#xA;&lt;p&gt;You&amp;rsquo;ll also want to add the user you want doing the scanning to the scanner group.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;sudo usermod -aG scanner &amp;lt;username&amp;gt;&lt;/code&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;systemd-service&#34;&gt;Systemd service&lt;/h3&gt;&#xA;&lt;p&gt;I created a systemd service to run brscan-skey at boot.&lt;/p&gt;&#xA;&lt;p&gt;Create the following at &lt;code&gt;/etc/systemd/system/brscan-skey.service&lt;/code&gt;&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[Unit]&#xA;Description=Brother scan-key-tool&#xA;&#xA;[Service]&#xA;User=scott&#xA;Type=forking&#xA;ExecStart=/opt/brother/scanner/brscan-skey/brscan-skey&#xA;ExecStop=/opt/brother/scanner/brscan-skey/brscan-skey --terminate&#xA;&#xA;[Install]&#xA;WantedBy=multi-user.target&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Run the following commands:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo systemctl daemon-reload&#xA;sudo systemctl enable --now brscan-skey.service&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You may need to reboot. I did.&lt;/p&gt;&#xA;&lt;h3 id=&#34;simple-scantofilesh-script&#34;&gt;Simple scantofile.sh script&lt;/h3&gt;&#xA;&lt;p&gt;First make a backup of the existing script, just in case.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;sudo mv /opt/brother/scanner/brscan-skey/script/scantofile.sh /opt/brother/scanner/brscan-skey/script/scantofile.sh.bak&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;Now we create our own version:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;sudo vim /opt/brother/scanner/brscan-skey/script/scantofile.sh&lt;/code&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;#! /bin/sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;set +o noclobber&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;BASE&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;$HOME/brscan&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;pdf_name&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;$(&lt;/span&gt;date | sed s/&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39; &amp;#39;&lt;/span&gt;/&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;_&amp;#39;&lt;/span&gt;/g | sed s/&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;\:&amp;#39;&lt;/span&gt;/&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;_&amp;#39;&lt;/span&gt;/g&lt;span style=&#34;color:#66d9ef&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;output_full&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$BASE&lt;span style=&#34;color:#e6db74&#34;&gt;/&lt;/span&gt;$pdf_name&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# scan the image in using scanimage&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;scanimage -x 215.9 -y 279.4 --format&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;png &amp;gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$output_full&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;.png&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Convert to PDF using imagemagick&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;convert &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$output_full&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;.png &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$output_full&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;.pdf&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Created file &lt;/span&gt;$output_full&lt;span style=&#34;color:#e6db74&#34;&gt;.pdf&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Cleanup&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rm &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$output_full&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;.png&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;My script assumes a lot of things. It assumes that you&amp;rsquo;re using letter size paper, for one. This was a really quick and dirty hack - maybe I&amp;rsquo;ll refactor this in the future.&lt;/p&gt;&#xA;&lt;h2 id=&#34;future-goals&#34;&gt;Future goals&lt;/h2&gt;&#xA;&lt;p&gt;My goal for getting this working was to have a small, low power x86 PC that just runs this and nothing else. It&amp;rsquo;s connected via WiFi so I can put it anywhere, and hopefully make it so that I &lt;em&gt;actually use it&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I have it exposing an NFS share that I&amp;rsquo;m going to mount as an ingestion folder for &lt;a href=&#34;https://docs.paperless-ngx.com/&#34;&gt;Paperless-NGX&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Maybe I&amp;rsquo;ll create another blog post soon showing how I got that set up.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>How to set up the Cially Dashboard for Discord</title>
      <link>https://blog.ssb-tech.net/posts/cially-discord-bot/</link>
      <pubDate>Mon, 19 May 2025 21:46:40 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/cially-discord-bot/</guid>
      <description>&lt;h1 id=&#34;how-to-set-up-the-cially-dashboard-for-discord&#34;&gt;How to set up the Cially Dashboard for Discord&lt;/h1&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/cially/cially&#34;&gt;Cially&lt;/a&gt; is a dashboard for Discord that shows you interesting statistics regarding your server, or multiple servers.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m going to show you how to get it set up on your own system using Docker.&lt;/p&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;This guide does assume some familiarity with Docker and Docker Compose, as well as Linux in general.&lt;/div&gt;&lt;/div&gt;&#xA;&lt;h2 id=&#34;1-setting-up-an-application&#34;&gt;1. Setting up an application&lt;/h2&gt;&#xA;&lt;p&gt;Cially takes the form of a Discord bot. In order for your bot to join a server you have to create an application for it in your Discord developer account portal.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Go to the &lt;a href=&#34;https://discord.com/developers/applications&#34;&gt;Discord Developer Portal&lt;/a&gt; and create a new application. You can call it whatever you wish, I called mine &amp;ldquo;Cially.&amp;rdquo;&lt;/li&gt;&#xA;&lt;li&gt;Under &amp;ldquo;Installation&amp;rdquo;, set &amp;ldquo;Install Link&amp;rdquo; to &amp;ldquo;None&amp;rdquo;, and uncheck &amp;ldquo;User Install&amp;rdquo;.&#xA;&lt;img alt=&#34;Cially Install Page&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/cially-discord-bot/images/cially-install-methods.png&#34;&gt;&lt;/li&gt;&#xA;&lt;li&gt;Under &amp;ldquo;Bot&amp;rdquo;:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Enable all three sliders under &amp;ldquo;Privileged Gateway Intents.&amp;rdquo;&#xA;&lt;img alt=&#34;Cially Bot Page&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/cially-discord-bot/images/cially-gateway-intents.png&#34;&gt;&lt;/li&gt;&#xA;&lt;li&gt;Uncheck &amp;ldquo;Public Bot&amp;rdquo;. (Unless you would like other people to be able to add your bot to their servers, too.) If you get an error with this step, make sure you completed &amp;lsquo;set Install Link to None in step 2.&amp;rsquo;&lt;/li&gt;&#xA;&lt;li&gt;Click the &amp;ldquo;Reset&amp;rdquo; button to get your bot token. Save this in a text editor, we&amp;rsquo;ll need it when setting up the bot on our server. This will only be shown once, so if you lose it, you&amp;rsquo;ll have to reset it again. I keep this in my password manager vault to make sure I don&amp;rsquo;t lose it.&#xA;&lt;img alt=&#34;Cially Bot Page&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/cially-discord-bot/images/cially-token.png&#34;&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Under &amp;ldquo;Oauth2&amp;rdquo;:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Copy the Client ID from the Oauth2 screen and save it with the bot token you copied earlier.&lt;/li&gt;&#xA;&lt;li&gt;Give the bot the following Oauth2 scopes: (&lt;a href=&#34;https://discordjs.guide/preparations/adding-your-bot-to-servers.html#creating-and-using-your-invite-link&#34;&gt;Source&lt;/a&gt;)&#xA;&lt;ul&gt;&#xA;&lt;li&gt;bot&lt;/li&gt;&#xA;&lt;li&gt;applications.commands&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;At the bottom of the screen it will give you a URL. Paste that into your browser, and it should prompt you to join the bot to one of your servers.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;2-setting-up-cially-in-docker&#34;&gt;2. Setting up Cially in Docker&lt;/h2&gt;&#xA;&lt;p&gt;This is a relatively complicated docker compose file. The project provides one, but I chose to take it and make some changes so it would work behind my Traefik reverse proxy.&lt;/p&gt;&#xA;&lt;p&gt;Either one works, but if you&amp;rsquo;d like to use my compose file, this is it:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;traefik&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;external&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;services&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;cially&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;ghcr.io/skellgreco/cially-bot:${CIALLY_DOCKER_TAG:-latest}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;container_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;${CIALLY_CONTAINER_NAME:-cially}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;${CIALLY_RESTART:-unless-stopped}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;mem_limit&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;${CIALLY_MEM_LIMIT:-200g}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;env_file&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;.env&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./config:/config&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;/etc/localtime:/etc/localtime:ro&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;environment&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;PUID=${PUID:-1000}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;PGID=${PGID:-1000}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;TZ=${TZ}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;TOKEN=${CIALLY_BOT_TOKEN}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;CLIENT_ID=${CIALLY_BOT_CLIENT_ID}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;API_URL=http://cially:3001&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DEBUGGING=${CIALLY_BOT_DEBUGGING:-FALSE}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;POCKETBASE_URL=http://pocketbase:8090&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;GUILD_COLLECTION=guilds&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;MESSAGE_COLLECTION=messages&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;INVITE_COLLECTION=invites&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;MEMBER_LEAVES_COLLECTION=member_leaves&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;MEMBER_JOINS_COLLECTION=member_joins&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;PORT=3001&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;depends_on&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;pocketbase&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;cially-web&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;labels&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;com.centurylinklabs.watchtower.enable=${CIALLY_WATCHTOWER_ENABLED:-true}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;autoheal=${CIALLY_AUTOHEAL_ENABLED:-true}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;cially-web&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;ghcr.io/skellgreco/cially-web:latest&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;container_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;cially-web&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;unless-stopped&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;environment&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#75715e&#34;&gt;# Runtime environment variables&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;NEXT_PUBLIC_BOT_API_URL=http://cially:3001&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;POCKETBASE_URL=http://pocketbase:8090&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;MESSAGE_COLLECTION=messages&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;INVITE_COLLECTION=invites&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;MEMBER_LEAVES_COLLECTION=member_leaves&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;MEMBER_JOINS_COLLECTION=member_joins&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;GUILDS_COLLECTION=guilds&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;env_file&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;.env&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;depends_on&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;pocketbase&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;labels&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;joyride.host.name=${CIALLY_HOST_NAME:-cially}.${HOST_DOMAIN}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.enable=${CIALLY_TRAEFIK_ENABLED:-true}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.cially.entrypoints=websecure&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.cially.rule=Host(`${CIALLY_HOST_NAME:-cially}.${HOST_DOMAIN}`)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.services.cially.loadbalancer.server.port=3000&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;com.centurylinklabs.watchtower.enable=${CIALLY_WATCHTOWER_ENABLED:-true}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;autoheal=${CIALLY_AUTOHEAL_ENABLED:-true}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#75715e&#34;&gt;# Need to expose this via Traefik as well since the user needs to log into Pocketbase and configure it.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;pocketbase&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;ghcr.io/keksiqc/pocketbase:0.26.6&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;container_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;cially-pocketbase&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;unless-stopped&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;env_file&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;.env&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./pocketbase-data:/pb/pb_data&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;labels&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;joyride.host.name=${CIALLY_POCKETBASE_HOST_NAME:-cially-pb}.${HOST_DOMAIN}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.enable=${CIALLY_TRAEFIK_ENABLED:-true}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.cially-pb.entrypoints=websecure&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.cially-pb.rule=Host(`${CIALLY_POCKETBASE_HOST_NAME:-cially-pb}.${HOST_DOMAIN}`)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.services.cially-pb.loadbalancer.server.port=8090&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;com.centurylinklabs.watchtower.enable=${CIALLY_WATCHTOWER_ENABLED:-true}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;autoheal=${CIALLY_AUTOHEAL_ENABLED:-true}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Like I said, this is a doozy, and unusually, it&amp;rsquo;s not as simple as &lt;code&gt;docker compose up&lt;/code&gt; and it works. There&amp;rsquo;s one or two extra steps required.&lt;/p&gt;&#xA;&lt;p&gt;Log into your server and create a new folder for Cially.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;sudo mkdir -p /apps/cially&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;sudo chown -R $USER:$USER /apps/cially &amp;amp;&amp;amp; cd /apps/cially&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Now, create a .env file in this directory: &lt;code&gt;vim .env&lt;/code&gt; or &lt;code&gt;nano .env&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Add the following two environment variables, replacing them with your Client ID and token where appropriate:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-ini&#34; data-lang=&#34;ini&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;CIALLY_BOT_TOKEN&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;lt;BOT_TOKEN_GOES_HERE&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;CIALLY_BOT_CLIENT_ID&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;lt;CLIENT_ID_GOES_HERE&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Save and exit the file.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Create your docker compose file, either using mine from above, or the one from the project&amp;rsquo;s &lt;a href=&#34;https://github.com/cially/cially/blob/main/docker-compose.yaml&#34;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;Keep in mind if you use my compose file - I am not exposing &lt;em&gt;any&lt;/em&gt; ports because everything is being routed through Traefik. If you want to expose them, you&amp;rsquo;ll have to re-add the &lt;code&gt;ports&lt;/code&gt; key.&lt;/div&gt;&lt;/div&gt;&#xA;&lt;ol start=&#34;7&#34;&gt;&#xA;&lt;li&gt;Run &lt;code&gt;docker compose up -d&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Now, we need to import the collections provided by the Cially team into Pocketbase, which is one of the containers that the compose file is spinning up. But first, we need to log into Pocketbase and create a user account. To do so:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Run &lt;code&gt;docker logs &amp;lt;pocketbase-container-name&amp;gt;&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;In the standard output for that container, you will see an http://0.0.0.0 URL. Copy and paste it into your browser, and replace &lt;code&gt;0.0.0.0&lt;/code&gt; with the IP address of your server or your fully qualified domain name, if you&amp;rsquo;re using a reverse proxy.&lt;/li&gt;&#xA;&lt;li&gt;Set up a user account for Pocketbase when prompted.&lt;/li&gt;&#xA;&lt;li&gt;Once you&amp;rsquo;ve logged into Pocketbase, navigate to Settings, and then Import Collections.&lt;/li&gt;&#xA;&lt;li&gt;You&amp;rsquo;ll need to paste the content from the &lt;a href=&#34;https://github.com/cially/cially/blob/main/pocketbase/pb_schema.json&#34;&gt;JSON file&lt;/a&gt; that&amp;rsquo;s provided for this purpose.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Once you&amp;rsquo;ve done so, I recommend giving everything a restart just to be on the safe side.&#xA;&lt;code&gt;docker compose up -d --force-recreate&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;At this point, you should be able to navigate to the IP address of your server on port 3000, or to your fully qualified domain name and see the Cially dashboard. It will take a few minutes for your server to become available as Cially collects data.&#xA;&lt;img alt=&#34;Cially Dashboard Example&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/cially-discord-bot/images/cially-dashboard-final.png&#34;&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;</description>
    </item>
    <item>
      <title>Dawarich - A Google Location History Alternative</title>
      <link>https://blog.ssb-tech.net/posts/dawarich-google-location-history-alternative/</link>
      <pubDate>Wed, 14 May 2025 19:13:45 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/dawarich-google-location-history-alternative/</guid>
      <description>&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;2025/05/24 - edited to fix some mistakes I caught later in my docker compose.&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;Continuing on the theme of moving all of my stuff out of &lt;em&gt;other people&amp;rsquo;s cloud&lt;/em&gt; and into mine - I was recently made aware of &lt;a href=&#34;https://dawarich.app&#34;&gt;Dawarich&lt;/a&gt; while listening to the &lt;a href=&#34;https://linuxunplugged.com/614&#34;&gt;Linux Unplugged&lt;/a&gt; podcast.&lt;/p&gt;&#xA;&lt;p&gt;This is touted as an alternative to Google&amp;rsquo;s Location History feature, which is something that I use frequently. I need it to account for my time at work, so it&amp;rsquo;s fairly important that I have a solution like this.&lt;/p&gt;&#xA;&lt;p&gt;I chose to set this up on one of my VPS machines at Linode rather than running it in my house. The logic behind this being that a datacenter is most likely going to have more reliable power than I do at my house.&lt;/p&gt;&#xA;&lt;p&gt;That said, I don&amp;rsquo;t think I&amp;rsquo;m going to be going through the work of making this truly highly-available - it&amp;rsquo;s just not worth the headache when I&amp;rsquo;m the only user.&lt;/p&gt;&#xA;&lt;h2 id=&#34;installation&#34;&gt;Installation&lt;/h2&gt;&#xA;&lt;p&gt;As always, I set this up using their provided Docker image.&lt;/p&gt;&#xA;&lt;p&gt;Dawarich can do either an HTTP or MQTT backend. I already have a webserver on this VPS, so I&amp;rsquo;ll be using HTTP.&lt;/p&gt;&#xA;&lt;p&gt;I &lt;em&gt;highly&lt;/em&gt; recommend setting up valid HTTPS certificates for this. I&amp;rsquo;m using free certificates from &lt;a href=&#34;https://letsencrypt.org/&#34;&gt;LetsEncrypt&lt;/a&gt;. The Traefik reverse proxy I&amp;rsquo;m using has an ACME client built right in, which is very handy.&lt;/p&gt;&#xA;&lt;p&gt;The compose file for this app is quite the doozy. The project provides one, but I made some of my own changes, and added labels for Traefik.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;traefik&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;external&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;services&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;dawarich&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;freikin/dawarich:${DAWARICH_DOCKER_TAG:-latest}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;container_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;${DAWARICH_CONTAINER_NAME:-dawarich}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;${DAWARICH_RESTART:-unless-stopped}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;/etc/localtime:/etc/localtime:ro&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./etc/dawarich/storage:/var/app/storage&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;stdin_open&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;tty&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;entrypoint&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;web-entrypoint.sh&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;command&lt;/span&gt;: [&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;bin/rails&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;server&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;-p&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;3000&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;-b&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;::&amp;#34;&lt;/span&gt;]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;environment&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;RAILS_ENV=production&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;REDIS_URL=redis://dawarich_redis:6379/0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DATABASE_HOST=dawarich_db&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DATABASE_PORT=5432&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DATABASE_USERNAME=${DAWARICH_POSTGRES_USER:-postgres}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DATABASE_PASSWORD=${DAWARICH_POSTGRES_PW:-password}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DATABASE_NAME=dawarich_production&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;MIN_MINUTES_SPENT_IN_CITY=${DAWARICH_MIN_MINS:-30}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;APPLICATION_HOSTS=localhost,::1,127.0.0.1,${DAWARICH_HOST_NAME:-dawarich}.${HOST_DOMAIN}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;TIME_ZONE=${TZ}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;APPLICATION_PROTOCOL=http&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#75715e&#34;&gt;# Can be either km or mi&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DISTANCE_UNIT=${DAWARICH_DISTANCE_UNIT:-mi}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;PROMETHEUS_EXPORTER_ENABLED=false&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;PROMETHEUS_EXPORTER_HOST=0.0.0.0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;PROMETHEUS_EXPORTER_PORT=9394&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;SECRET_KEY_BASE=${DAWARICH_SECRET_KEY_BASE:-1234567890}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;RAILS_LOG_TO_STDOUT=&amp;#34;true&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#75715e&#34;&gt;# SMTP settings&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;SMTP_SERVER=${DAWARICH_SMTP_SERVER}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;SMTP_PORT=${DAWARICH_SMTP_PORT}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;SMTP_USERNAME=${DAWARICH_SMTP_USERNAME}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;SMTP_PASSWORD=${DAWARICH_SMTP_PASSWORD}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;SMTP_FROM=${DAWARICH_SMTP_FROM}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;SMTP_DOMAIN=${DAWARICH_SMTP_DOMAIN}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;logging&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;driver&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;json-file&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;options&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;max-size&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;100m&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;max-file&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;5&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;healthcheck&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;test&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        [&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;CMD-SHELL&amp;#34;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;wget -qO - http://127.0.0.1:3000/api/v1/health | grep -q &amp;#39;\&amp;#34;status\&amp;#34;\\s*:\\s*\&amp;#34;ok\&amp;#34;&amp;#39;&amp;#34;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        ]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;interval&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;10s&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;retries&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;30&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;start_period&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;30s&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;timeout&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;10s&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;depends_on&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;dawarich_db&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;condition&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;service_healthy&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;dawarich_redis&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;condition&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;service_healthy&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;deploy&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;resources&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;limits&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#f92672&#34;&gt;cpus&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;0.50&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;# Limit CPU usage to 50% of one core&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#f92672&#34;&gt;memory&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;4G&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;# Limit memory usage to 2GB&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;labels&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;joyride.host.name=${DAWARICH_HOST_NAME:-dawarich}.${HOST_DOMAIN}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.enable=${DAWARICH_TRAEFIK_ENABLED:-true}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.dawarich.entrypoints=websecure&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.routers.dawarich.rule=Host(`${DAWARICH_HOST_NAME:-dawarich}.${HOST_DOMAIN}`)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#75715e&#34;&gt;# - traefik.http.services.dawarich.loadbalancer.server.scheme=https # enable if the service wants to connect over https&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik.http.services.dawarich.loadbalancer.server.port=3000&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;com.centurylinklabs.watchtower.enable=${DAWARICH_WATCHTOWER_ENABLED:-true}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;autoheal=${DAWARICH_AUTOHEAL_ENABLED:-true}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;dawarich_sidekiq&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;freikin/dawarich:${DAWARICH_DOCKER_TAG:-latest}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;container_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;dawarich_sidekiq&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./etc/dawarich/public:/var/app/public&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./etc/dawarich/watched:/var/app/tmp/imports/watched&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./etc/dawarich/storage:/var/app/storage&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;stdin_open&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;tty&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;entrypoint&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;sidekiq-entrypoint.sh&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;command&lt;/span&gt;: [&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;bundle&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;exec&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;sidekiq&amp;#34;&lt;/span&gt;]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;on&lt;/span&gt;-&lt;span style=&#34;color:#ae81ff&#34;&gt;failure&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;environment&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;RAILS_ENV=production&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;REDIS_URL=redis://dawarich_redis:6379/0&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DATABASE_HOST=dawarich_db&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DATABASE_PORT=5432&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DATABASE_USERNAME=${DAWARICH_POSTGRES_USER:-postgres}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DATABASE_PASSWORD=${DAWARICH_POSTGRES_PW:-password}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DATABASE_NAME=dawarich_production&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;APPLICATION_HOSTS=localhost,::1,127.0.0.1,${DAWARICH_HOST_NAME:-dawarich}.${HOST_DOMAIN}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;BACKGROUND_PROCESSING_CONCURRENCY=10&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;APPLICATION_PROTOCOL=http&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;DISTANCE_UNIT=km&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;PROMETHEUS_EXPORTER_ENABLED=false&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;PROMETHEUS_EXPORTER_HOST=dawarich&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;PROMETHEUS_EXPORTER_PORT=9394&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;SECRET_KEY_BASE=${DAWARICH_SECRET_KEY_BASE:-1234567890}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;RAILS_LOG_TO_STDOUT=&amp;#34;true&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;logging&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;driver&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;json-file&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;options&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;max-size&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;100m&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;max-file&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;5&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;healthcheck&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;test&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        [&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;CMD-SHELL&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;bundle exec sidekiqmon processes | grep $${HOSTNAME}&amp;#34;&lt;/span&gt;]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;interval&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;10s&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;retries&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;30&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;start_period&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;30s&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;timeout&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;10s&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;depends_on&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;dawarich_db&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;condition&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;service_healthy&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;dawarich_redis&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;condition&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;service_healthy&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;dawarich&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;condition&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;service_healthy&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;deploy&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;resources&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;limits&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#f92672&#34;&gt;cpus&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;0.50&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;# Limit CPU usage to 50% of one core&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;          &lt;span style=&#34;color:#f92672&#34;&gt;memory&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;4G&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;# Limit memory usage to 2GB&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;dawarich_redis&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;redis:7.4-alpine&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;container_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;dawarich_redis&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;command&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;redis-server&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./etc/dawarich/redis:/var/shared/redis&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;always&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;healthcheck&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;test&lt;/span&gt;: [&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;CMD&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;redis-cli&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;--raw&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;incr&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;ping&amp;#34;&lt;/span&gt;]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;interval&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;10s&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;retries&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;5&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;start_period&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;30s&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;timeout&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;10s&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;dawarich_db&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;postgis/postgis:17-3.5-alpine&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;shm_size&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;1G&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;container_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;dawarich_db&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;./etc/dawarich/db:/var/lib/postgresql/data&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;networks&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;traefik&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;environment&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;POSTGRES_USER=${DAWARICH_POSTGRES_USER:-postgres}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;POSTGRES_PASSWORD=${DAWARICH_POSTGRES_PW:-password}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;POSTGRES_DB=dawarich_production&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;always&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;healthcheck&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;test&lt;/span&gt;: [&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;CMD&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;pg_isready&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;-U&amp;#34;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;postgres&amp;#34;&lt;/span&gt;]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;interval&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;10s&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;retries&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;5&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;start_period&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;30s&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      &lt;span style=&#34;color:#f92672&#34;&gt;timeout&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;10s&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And here are the environment variables that I have set.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-env&#34; data-lang=&#34;env&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;DAWARICH_SMTP_SERVER&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;mail.mydomain.net&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;DAWARICH_SMTP_PORT&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;465&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;DAWARICH_SMTP_USERNAME&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;no-reply@mydomain.net&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;DAWARICH_SMTP_PASSWORD&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&amp;lt;your password here&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;DAWARICH_SMTP_FROM&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;no-reply@mydomain.net&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;DAWARICH_SMTP_DOMAIN&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;mydomain.net&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;DAWARICH_HOST_NAME&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;trips&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;DAWARICH_POSTGRES_PW&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;changeme&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;HOST_DOMAIN&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;mydomain.net&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;DAWARICH_SECRET_KEY_BASE&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;changeme &lt;span style=&#34;color:#75715e&#34;&gt;# you can generate this with openssl rand -hex 32&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;img alt=&#34;Dawarich screenshot&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/dawarich-google-location-history-alternative/images/dawarich-web-ss.png&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;/h2&gt;&#xA;&lt;p&gt;Most of the configuration is done for you already via the provided environment variables.&lt;/p&gt;&#xA;&lt;p&gt;I will also note here that while I&amp;rsquo;ve included the settings for SMTP - I have yet to actually get it working.&lt;/p&gt;&#xA;&lt;p&gt;From what I understand, SMTP support is relatively new to this application, so it could be either me being hamfisted, or an actual bug. I have not sorted that out yet.&lt;/p&gt;&#xA;&lt;p&gt;But it&amp;rsquo;s not critical, so I chose to leave it there and move on.&lt;/p&gt;&#xA;&lt;p&gt;The default username and password are &lt;code&gt;demo@dawarich.app&lt;/code&gt; and &lt;code&gt;password&lt;/code&gt;. Obviously we&amp;rsquo;ll need to change this&amp;hellip; but this is more complicated than you might expect, as I&amp;rsquo;ll get to in a moment.&lt;/p&gt;&#xA;&lt;h2 id=&#34;nitpicks&#34;&gt;Nitpicks&lt;/h2&gt;&#xA;&lt;p&gt;User management in the Dawarich web UI is &lt;em&gt;extremely&lt;/em&gt; basic, almost to the point of being useless. The only thing you can do is create a new, unprivileged user.&lt;/p&gt;&#xA;&lt;p&gt;If you want to create a new admin account and get rid of the default one, you&amp;rsquo;ll have to drop into the Ruby console for that.&lt;/p&gt;&#xA;&lt;p&gt;This is detailed on their website, but it&amp;rsquo;s not ideal.&lt;/p&gt;&#xA;&lt;h2 id=&#34;fixes&#34;&gt;Fixes&lt;/h2&gt;&#xA;&lt;h3 id=&#34;to-create-a-new-admin-user&#34;&gt;To create a new admin user&lt;/h3&gt;&#xA;&lt;p&gt;First, create a new user from the web interface.&lt;/p&gt;&#xA;&lt;p&gt;Then do the following steps on the command line:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Shell into the container&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;docker exec -it dawarich_app /bin/sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Enter the Ruby console&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;bin/rails console&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-ruby&#34; data-lang=&#34;ruby&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Promote your user to admin&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;User&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;find_by(&lt;span style=&#34;color:#e6db74&#34;&gt;email&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;user@example.com&amp;#39;&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;update(&lt;span style=&#34;color:#e6db74&#34;&gt;admin&lt;/span&gt;: &lt;span style=&#34;color:#66d9ef&#34;&gt;true&lt;/span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Exit the ruby console.&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;exit&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If you&amp;rsquo;d like to delete the default admin user (and I recommend that you do) enter this command before exiting the Ruby console:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-ruby&#34; data-lang=&#34;ruby&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;User&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;find_by(&lt;span style=&#34;color:#e6db74&#34;&gt;email&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;demo@dawarich.app&amp;#39;&lt;/span&gt;)&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;destroy&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;using-dawarich-with-owntracks&#34;&gt;Using Dawarich with OwnTracks&lt;/h2&gt;&#xA;&lt;p&gt;Using Dawarich with &lt;a href=&#34;https://owntracks.org/&#34;&gt;OwnTracks&lt;/a&gt; is quite straightforward.&lt;/p&gt;&#xA;&lt;h3 id=&#34;get-api-url&#34;&gt;Get API URL&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Log into the Dawarich web interface.&lt;/li&gt;&#xA;&lt;li&gt;Click on your email address in the top right hand side of the page and go to Account.&lt;/li&gt;&#xA;&lt;li&gt;From there you can copy the API URL example they&amp;rsquo;ve provided for OwnTracks.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;configuring-the-app&#34;&gt;Configuring the app&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Install the app on your smartphone from your app store of choice (I like using F-Droid whenever possible) and then go into Preferences&lt;/li&gt;&#xA;&lt;li&gt;In Preferences, click on Connection&lt;/li&gt;&#xA;&lt;li&gt;Change the Mode to HTTP&lt;/li&gt;&#xA;&lt;li&gt;Enter the URL into the provided field.&lt;/li&gt;&#xA;&lt;li&gt;You do &lt;strong&gt;&lt;em&gt;not&lt;/em&gt;&lt;/strong&gt; need to set a username and password under Credentials - the URL you copied earlier contains the needed API key for authentication.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;OwnTracks screenshot&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/dawarich-google-location-history-alternative/images/owntracks-ss.png&#34;&gt;&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Replacing Pocket Casts</title>
      <link>https://blog.ssb-tech.net/posts/replacing-pocket-casts/</link>
      <pubDate>Mon, 05 May 2025 08:53:26 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/replacing-pocket-casts/</guid>
      <description>&lt;h1 id=&#34;replacing-pocket-casts&#34;&gt;Replacing Pocket Casts&lt;/h1&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been a user of &lt;a href=&#34;https://pocketcasts.com&#34;&gt;Pocket Casts&lt;/a&gt; for a long time now. There&amp;rsquo;s nothing wrong with it, and in fact it&amp;rsquo;s been a fantastic experience the entire time I&amp;rsquo;ve used it.&lt;/p&gt;&#xA;&lt;p&gt;However, I&amp;rsquo;ve been trying to move whatever I can to open-source, self-hosted projects, and this was one that I&amp;rsquo;d wanted to take a crack at for quite a while.&lt;/p&gt;&#xA;&lt;p&gt;Here were my requirements for a podcast manager:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Self-hosted and open-source.&lt;/li&gt;&#xA;&lt;li&gt;The ability to listen on either mobile or desktop, and pick up from where I left off in either location.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;I went through a few iterations of this, and I&amp;rsquo;m still not quite happy with the result, but let me go over the projects that I tried out, and the issues I ran into with them.&lt;/p&gt;&#xA;&lt;h2 id=&#34;pinepods&#34;&gt;PinePods&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/madeofpendletonwool/PinePods&#34;&gt;PinePods&lt;/a&gt; is a newer project, built mostly with Rust and Python.&lt;/p&gt;&#xA;&lt;p&gt;I tried this one first because it had a pretty web interface, a companion Android app, and support for sync through Gpodder compatible servers like &lt;a href=&#34;https://github.com/kd2org/opodsync&#34;&gt;Opodsync&lt;/a&gt; or the &lt;a href=&#34;https://apps.nextcloud.com/apps/gpoddersync&#34;&gt;NextCloud GpodderSync app.&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Installation was fairly straightforward, and I chose to integrate it with my existing Authentik instance for OIDC sign on.&lt;/p&gt;&#xA;&lt;p&gt;All of that worked great - until I installed the mobile app and realized that OIDC is not yet supported. I assume that this is the reason that I was not seeing my progress synced between the mobile app and the web interface.&lt;/p&gt;&#xA;&lt;p&gt;Next I tried using &lt;a href=&#34;https://antennapod.org/&#34;&gt;AntennaPod&lt;/a&gt; for the mobile app, with GpodderSync on NextCloud as the backend.&lt;/p&gt;&#xA;&lt;p&gt;Somehow enabling GpodderSync in PinePods wiped out all of my existing podcast subscriptions. Thankfully I had them all backed up in an OPML file still, so it was just a matter of re-importing the file again.&lt;/p&gt;&#xA;&lt;p&gt;However, none of the podcasts I had added to PinePods ever showed up in GpodderSync on NextCloud. However, adding a podcast via AntennaPod worked fine.&lt;/p&gt;&#xA;&lt;p&gt;Supposedly there is a large update to sync coming to PinePods in the next few days, but I chose to move on and try out something else.&lt;/p&gt;&#xA;&lt;h2 id=&#34;podfetch&#34;&gt;PodFetch&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/SamTV12345/PodFetch&#34;&gt;PodFetch&lt;/a&gt; is another podcast manager. This one comes with its own built-in Gpodder sync mechanism that just needs to be enabled via an environment variable.&lt;/p&gt;&#xA;&lt;p&gt;The good:&lt;/p&gt;&#xA;&lt;p&gt;I actually think PodFetch has the nicer UI of the two.&lt;/p&gt;&#xA;&lt;p&gt;The bad:&lt;/p&gt;&#xA;&lt;p&gt;I found the documentation for this project severely lacking and often found myself digging through GitHub issues to try and figure out how to configure certain things correctly.&lt;/p&gt;&#xA;&lt;p&gt;Once again, OIDC is essentially a non-starter unless you&amp;rsquo;re not planning on ever using a mobile app.&lt;/p&gt;&#xA;&lt;p&gt;Also, make sure that the user you try to connect AntennaPod with is &lt;em&gt;not&lt;/em&gt; an administrator, or it will just fail. I had to enable additional logging in PodFetch to figure that out.&lt;/p&gt;&#xA;&lt;p&gt;Once I finally figured out that headache, I discovered that sync is essentially broken. Listening to a podcast on either end and then forcing a full sync in AntennaPod does not change either side. I&amp;rsquo;m not sure what&amp;rsquo;s going on here, but this was the nail in the coffin. I was no longer interested in spending more time trying to get this working.&lt;/p&gt;&#xA;&lt;h2 id=&#34;nextpod&#34;&gt;NextPod&lt;/h2&gt;&#xA;&lt;p&gt;Next, I tried out &lt;a href=&#34;https://apps.nextcloud.com/apps/nextpod&#34;&gt;NextPod&lt;/a&gt;. This is the companion app to GpodderSync.&lt;/p&gt;&#xA;&lt;p&gt;It is extremely basic and missing what I&amp;rsquo;d consider basic features like skip forward and back buttons, but at the very least - the synchronization of listen state &lt;em&gt;works reliably&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;For the moment I&amp;rsquo;ve settled on this setup:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;GpodderSync for the backend, which keeps track of my subscriptions and listen state&lt;/li&gt;&#xA;&lt;li&gt;NextPod for listening on desktop&lt;/li&gt;&#xA;&lt;li&gt;AntennaPod for listening on mobile&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;It does essentially everything that was on my laundry list, but I&amp;rsquo;m not particularly happy with NextPod as my desktop solution. It works, but it lacks even the most basic management features, and the playback UI is, as I said, barebones.&lt;/p&gt;&#xA;&lt;p&gt;If anyone else has any suggestions I&amp;rsquo;d like to hear about them. I&amp;rsquo;ll check out the updated PinePods when the sync updates drops, but for the moment I&amp;rsquo;ll leave this as it is.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; I was just made aware of &lt;a href=&#34;https://apps.nextcloud.com/apps/repod&#34;&gt;RePod&lt;/a&gt; which looks &lt;em&gt;much&lt;/em&gt; more functional than NextPod.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>PSA: Unifi IPSec site-to-site tunnels and DHCP</title>
      <link>https://blog.ssb-tech.net/posts/unifi-ipsec-and-dhcp/</link>
      <pubDate>Tue, 01 Apr 2025 13:09:28 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/unifi-ipsec-and-dhcp/</guid>
      <description>&lt;p&gt;Bit of a PSA of sorts, as this is the second time that I have run into this particular issue.&lt;/p&gt;&#xA;&lt;p&gt;Scenario: You had a Unifi gateway such as a UDM Pro with a static IP address. You switched your WAN IP from static to dynamic, for whatever reason. (In my case it was a different ISP that doesn&amp;rsquo;t hand out actual static IPs, only DHCP reservations.)&lt;/p&gt;&#xA;&lt;p&gt;You may find that the router holds onto that old IP, and if you&amp;rsquo;re like me, you&amp;rsquo;ll be confused as hell.&lt;/p&gt;&#xA;&lt;p&gt;The cause is your IPSec site-to-site tunnel.&lt;/p&gt;&#xA;&lt;p&gt;You&amp;rsquo;ll need to make note of any settings it had (Pre-shared keys, remote endpoints, remote subnets, etc), delete the tunnel completely, and then once you&amp;rsquo;ve successfully gotten your new IP from DHCP, recreate the tunnel from scratch.&lt;/p&gt;&#xA;&lt;p&gt;Once you remove the tunnel, you should get an IP from DHCP almost immediately.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>TrueNAS Scale - ZFS Replication Without Root</title>
      <link>https://blog.ssb-tech.net/posts/truenas-zfs-replication-without-root/</link>
      <pubDate>Fri, 21 Mar 2025 15:15:20 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/truenas-zfs-replication-without-root/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;ZFS replication is my favored way of doing backups. In my homelab I have 2 systems running TrueNAS scale - one on my production hypervisor, with the disk controller passed through, and the backup server, which is just a baremetal TrueNAS Scale installation.&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately, most of the tutorials on this process seem to use either the root account or at the very least, an account with admin privileges. In this article, I&amp;rsquo;m going to go over how you can get a ZFS replication setup working with a completely unprivileged user, without ever leaving the GUI.&lt;/p&gt;&#xA;&lt;p&gt;I will be doing a &lt;em&gt;pull replication&lt;/em&gt; - where the production system has NO access to the backup system. The backup system will reach out and initiate the backups.&lt;/p&gt;&#xA;&lt;p&gt;That way, there&amp;rsquo;s no risk of the backup server being compromised because you had SSH credentials for it just lying around on production.&lt;/p&gt;&#xA;&lt;p&gt;You should also lock down access to the backup system in other ways, but that&amp;rsquo;s beyond the scope of this article.&lt;/p&gt;&#xA;&lt;h2 id=&#34;create-user-accounts-for-backup&#34;&gt;Create user accounts for backup&lt;/h2&gt;&#xA;&lt;p&gt;Go to Credentials &amp;gt; Users and create new users. Just create normal user accounts. Don&amp;rsquo;t give it any extra permissions. I also recommend &lt;em&gt;unchecking&lt;/em&gt; the box that allows it to be used for SMB authentication.&lt;/p&gt;&#xA;&lt;p&gt;Make sure that you change the login shell from &amp;ldquo;nologin&amp;rdquo; to &amp;ldquo;bash&amp;rdquo; or &amp;ldquo;zsh&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;I normally just call mine backup_user, but you can make it anything you want.&lt;/p&gt;&#xA;&lt;h2 id=&#34;create-ssh-credentials&#34;&gt;Create SSH credentials&lt;/h2&gt;&#xA;&lt;h3 id=&#34;on-the-backup-system&#34;&gt;On the backup system:&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Click Credentials &amp;gt; Backup Credentials&lt;/li&gt;&#xA;&lt;li&gt;Add an SSH Keypair. Give it a name. Click on generate keypair.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;This will generate a PUBLIC key and a PRIVATE key. The private key will be used on the backup system to verify the public key.&lt;/li&gt;&#xA;&lt;li&gt;I recommend copying the public key into a notepad or something. We&amp;rsquo;ll need it again in a moment.&lt;/li&gt;&#xA;&lt;li&gt;Click Save.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Add a new SSH Connection. Name it something that makes sense.&lt;/li&gt;&#xA;&lt;li&gt;Setup method - manual&lt;/li&gt;&#xA;&lt;li&gt;For host, enter the IP address of the production system. If your machine is offsite and you have them both connected via &lt;a href=&#34;https://tailscale.com&#34;&gt;Tailscale&lt;/a&gt;, you can use the Tailscale IP here, &lt;em&gt;even if the machine is local&lt;/em&gt;. Tailscale connections are designed to be peer-to-peer, so it should stay in the same local network and get the full wire rate.&lt;/li&gt;&#xA;&lt;li&gt;For username, change it to the username of the user you created on the REMOTE system. That is, the PRODUCTION system.&lt;/li&gt;&#xA;&lt;li&gt;Select the private key you created in step 2.&lt;/li&gt;&#xA;&lt;li&gt;Click &amp;ldquo;Discover remote host key&amp;rdquo;.&lt;/li&gt;&#xA;&lt;li&gt;Click Save.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;on-the-production-system&#34;&gt;On the production system:&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Navigate to Credentials &amp;gt; Users. Edit the user you created for your backup tasks.&lt;/li&gt;&#xA;&lt;li&gt;Take the public key you copied earlier and paste it into the Authorized Keys field. (Or upload it if you saved it as a file.)&lt;/li&gt;&#xA;&lt;li&gt;Click save.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;giving-users-needed-permissions&#34;&gt;Giving users needed permissions&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Because we&amp;rsquo;re not using the root user, we need to give our backup users the ability to run certain commands with sudo, without a password. &lt;strong&gt;None of these commands can be used destructively.&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Navigate back to Credentials &amp;gt; Users. Edit the backup user.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;on-the-backup-system-1&#34;&gt;On the backup system:&lt;/h3&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Type the following into the &amp;ldquo;Allowed sudo commands with no password&amp;rdquo; box. The asterisks are wildcards.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;/sbin/zfs mount *&#xA;/sbin/zfs create *&#xA;/sbin/zfs receive *&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;on-the-production-system-1&#34;&gt;On the production system:&lt;/h3&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Type the following into the &amp;ldquo;Allowed sudo commands with no password&amp;rdquo; box. The asterisks are wildcards.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;/sbin/zfs send *&#xA;/sbin/zfs snapshot *&#xA;/sbin/zfs list *&#xA;/sbin/zfs get *&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This will allow a completely unprivileged user to run the backups for us.&lt;/p&gt;&#xA;&lt;h2 id=&#34;creating-the-replication-task&#34;&gt;Creating the replication task&lt;/h2&gt;&#xA;&lt;h3 id=&#34;on-the-backup-system-2&#34;&gt;On the backup system:&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Navigate to Data Protection &amp;gt; Replication Tasks. Click Add.&lt;/li&gt;&#xA;&lt;li&gt;For the source location, choose &amp;ldquo;On a different system&amp;rdquo;.&lt;/li&gt;&#xA;&lt;li&gt;Choose the SSH connection we created earlier.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;When prompted if you would like to use sudo for ZFS commands, allow it. This is needed because the user we&amp;rsquo;re doing this operation with does not have admin privileges.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;For the source, choose the dataset that you would like to back up. I usually also check off the recursive box, though this has no effect unless you&amp;rsquo;ve created nested datasets.&lt;/li&gt;&#xA;&lt;li&gt;For the destination, choose either the pool itself or the dataset ABOVE the one you want to replicate to. &lt;strong&gt;The dataset CANNOT exist prior to the first replication. It will fail if you create it in advance.&lt;/strong&gt; You&amp;rsquo;ll need to type in the name of the dataset in the text box. This is slightly unintuitive, I know. I don&amp;rsquo;t know why they did it this way.&lt;/li&gt;&#xA;&lt;li&gt;Choose a schedule and a retention policy.&lt;/li&gt;&#xA;&lt;li&gt;Run your first replication. The first one will take a long time if there is a lot of data to copy, but subsequent runs will take only as much time as it takes to send the changed blocks down the wire.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Keep in mind when choosing your retention policies on the source and destination systems that &lt;strong&gt;the source and destination systems NEED to have at least one snapshot in common!&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Happy replicating!&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Connecting rclone to SharePoint Online</title>
      <link>https://blog.ssb-tech.net/posts/using-rclone-for-sharepoint-online/</link>
      <pubDate>Wed, 19 Mar 2025 15:18:48 -0400</pubDate>
      <guid>https://blog.ssb-tech.net/posts/using-rclone-for-sharepoint-online/</guid>
      <description>&lt;h1 id=&#34;connecting-rclone-to-sharepoint-online&#34;&gt;Connecting rclone to SharePoint Online&lt;/h1&gt;&#xA;&lt;p&gt;I found the &lt;a href=&#34;https://rclone.org/onedrive/&#34;&gt;official instructions&lt;/a&gt; for this extremely difficult to follow, so here&amp;rsquo;s what worked for me, with an Office 365 Business tenant.&lt;/p&gt;&#xA;&lt;p&gt;First you need to create a custom client id. The default client ID will likely end up getting throttled, and the token will expire after an hour or so, causing your operations to stall.&lt;/p&gt;&#xA;&lt;h2 id=&#34;app-registration&#34;&gt;App Registration&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Open &lt;a href=&#34;https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade&#34;&gt;this link&lt;/a&gt; and log in with an administrator account that has privileges to create a new app registration for your tenant.&lt;/li&gt;&#xA;&lt;li&gt;Click &amp;ldquo;New registration&amp;rdquo;&lt;/li&gt;&#xA;&lt;li&gt;Give your app a name, I just called mine &amp;ldquo;rclone&amp;rdquo;.&lt;/li&gt;&#xA;&lt;li&gt;For Supported account types, you want the &amp;ldquo;Accounts in this organizational directory only&amp;rdquo; option.&lt;/li&gt;&#xA;&lt;li&gt;create a redirect URI of type Web. Type (don&amp;rsquo;t copy and paste) this into the URI field. &lt;code&gt;http://localhost:53682/&lt;/code&gt;. Don&amp;rsquo;t miss the trailing slash.&lt;/li&gt;&#xA;&lt;li&gt;Copy and keep the Application (client) ID under the app name for later use.&lt;/li&gt;&#xA;&lt;li&gt;Under manage select Certificates &amp;amp; secrets, click New client secret. Enter a description (can be anything) and set Expires to however long you&amp;rsquo;d like. Copy and keep that secret Value for later use (you won&amp;rsquo;t be able to see this value afterwards).&lt;/li&gt;&#xA;&lt;li&gt;Under Manage select API Permissions. Click &amp;ldquo;add a permission&amp;rdquo; and select Microsoft Graph. You want &amp;ldquo;Application Permissions&amp;rdquo;, not &amp;ldquo;Delegated permissions&amp;rdquo;.&lt;/li&gt;&#xA;&lt;li&gt;Give the API key the following permissions:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Files.ReadWrite&lt;/li&gt;&#xA;&lt;li&gt;Files.Read.All&lt;/li&gt;&#xA;&lt;li&gt;Files.ReadWrite.All&lt;/li&gt;&#xA;&lt;li&gt;User.Read&lt;/li&gt;&#xA;&lt;li&gt;Sites.Read.All&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Click the button for &amp;ldquo;Grant Admin consent for &lt;org name&gt;&amp;rdquo;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;create-rclone-remote&#34;&gt;Create rclone remote&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;code&gt;rclone config&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Give the remote a name&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Select &lt;code&gt;35&lt;/code&gt; for OneDrive.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Enter your client ID and client secret when prompted.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;When you get to the step where it asks you to authenticate in a browser, it will likely fail no matter what you do. This is okay.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Open your &lt;code&gt;rclone.conf&lt;/code&gt; in a text editor. On Linux it&amp;rsquo;s by default in &lt;code&gt;$HOME/.config/rclone&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;vim $HOME/rclone/rclone.conf&lt;/code&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;In the app registration you created earlier you can find the tenant ID in the overview. You can also find it in the Entra ID admin panel. Save that value.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Add the following lines to your &lt;code&gt;rclone.conf&lt;/code&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;auth_url &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; https://login.microsoftonline.com/YOUR_TENANT_ID/oauth2/v2.0/authorize&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;token_url &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; https://login.microsoftonline.com/YOUR_TENANT_ID/oauth2/v2.0/token&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;tenant &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; YOUR_TENANT_ID&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;client_credentials &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; true&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;getting-the-driveid&#34;&gt;Getting the DriveId&lt;/h2&gt;&#xA;&lt;p&gt;Next, get the DriveID of the SharePoint site that you&amp;rsquo;re trying to create a remote for.&lt;/p&gt;&#xA;&lt;p&gt;We&amp;rsquo;ll be using the Microsoft Graph PowerShell module for this. You&amp;rsquo;ll want to connect to Graph with a user that has admin privileges.&lt;/p&gt;&#xA;&lt;p&gt;The &amp;ldquo;site-name&amp;rdquo; mentioned here is the same one at the end of the SharePoint link, like&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://contoso.sharepoint.com/sites/&#34;&gt;https://contoso.sharepoint.com/sites/&lt;/a&gt;&lt;strong&gt;Accounting&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;So in this case, Accounting would be the site name.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-ps1&#34; data-lang=&#34;ps1&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Connect-MgGraph -Scopes &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Sites.Read.All&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$site = Get-MgSite -Search &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Site-name&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$drive = Get-MgSiteDrive -SiteId $site.Id&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$drive | Format-List&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The last command here will print quite a bit of information - there may be more than one document library associated with a single SharePoint site, especially if you&amp;rsquo;ve enabled Teams for that site.&lt;/p&gt;&#xA;&lt;p&gt;Add this as a line to your configured Sharepoint remote.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;drive_id &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; DRIVE_ID_HERE&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;drive_type &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; documentLibrary&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;attempt-reconnection&#34;&gt;Attempt reconnection&lt;/h2&gt;&#xA;&lt;p&gt;Run the following command:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rclone config reconnect &amp;lt;remotename&amp;gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;At this point you should be able to follow the steps and get rclone connected.&lt;/p&gt;&#xA;&lt;p&gt;You can verify by running:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rclone ls &amp;lt;remotename&amp;gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Don&amp;rsquo;t get me wrong, I&amp;rsquo;m sure there are some unnecessary steps here, but this is what I did, and it works.&lt;/p&gt;&#xA;&lt;p&gt;It will allow you to connect rclone to SharePoint with a custom client ID and avoid it timing out after an hour or so.&lt;/p&gt;&#xA;&lt;p&gt;I used this to migrate 3TB of data from a SharePoint site to a local NAS.&lt;/p&gt;&#xA;&lt;h2 id=&#34;additional-tips&#34;&gt;Additional tips&lt;/h2&gt;&#xA;&lt;p&gt;If you still run into issues with rate limiting, you can look into the &lt;code&gt;--tpslimit&lt;/code&gt;, &lt;code&gt;--transfers&lt;/code&gt; or &lt;code&gt;--checkers&lt;/code&gt; options to limit the number of API calls rclone is making to SharePoint. I wound up using &lt;code&gt;--tpslimit 10&lt;/code&gt;. It copied at a reasonable speed without making Microsoft throttle me down to nothing.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://rclone.org/&#34;&gt;rclone official website&lt;/a&gt;&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Configuring Apache for OIDC with an Authentik backend</title>
      <link>https://blog.ssb-tech.net/posts/apache-oidc-authentik/</link>
      <pubDate>Wed, 26 Feb 2025 20:06:16 -0500</pubDate>
      <guid>https://blog.ssb-tech.net/posts/apache-oidc-authentik/</guid>
      <description>&lt;h2 id=&#34;summary&#34;&gt;Summary&lt;/h2&gt;&#xA;&lt;p&gt;For the past year and half I&amp;rsquo;ve been running my own mailserver using &lt;a href=&#34;https://www.postfix.org/&#34;&gt;Postfix&lt;/a&gt; and &lt;a href=&#34;https://www.dovecot.org/&#34;&gt;Dovecot&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This setup works quite well, and I&amp;rsquo;ve also installed &lt;a href=&#34;https://roundcube.net/&#34;&gt;Roundcube&lt;/a&gt; to have a convenient web frontend. It&amp;rsquo;s nice to have, though most of the time I interact with the mailserver via apps like Thunderbird or FairEmail.&lt;/p&gt;&#xA;&lt;p&gt;While Roundcube is quite nice, I don&amp;rsquo;t necessarily trust the authentication mechanism to be exposed directly to the internet.&lt;/p&gt;&#xA;&lt;p&gt;Since I set this up, I put Apache basic authentication in front of it as a deterrent. However, the issue with basic auth is that it requires you to log in again &lt;em&gt;every single time&lt;/em&gt; you restart your browser.&lt;/p&gt;&#xA;&lt;p&gt;So, I decided on a more robust solution. I&amp;rsquo;ve already been running Authentik for some of the other services in my lab that support OIDC, so I decided to tie back into that system, which will give me nice single sign on features.&lt;/p&gt;&#xA;&lt;h2 id=&#34;configuring-apache&#34;&gt;Configuring Apache&lt;/h2&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s how you can set this up for yourself.&lt;/p&gt;&#xA;&lt;p&gt;First, install the Apache module that adds OIDC support:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo apt install mod_auth_openidc&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Enable the module:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo a2enmod auth_openidc&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Here&amp;rsquo;s an example Apache virtual host with working OIDC support:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;lt;VirtualHost *:443&amp;gt;&#xA;ServerAdmin webmaster@localhost&#xA;ServerName mail.example.net&#xA;&#xA;OIDCProviderMetadataURL &amp;#34;https://auth.example.net/application/o/roundcube-webmail/.well-known/openid-configuration&amp;#34;&#xA;OIDCClientID redacted&#xA;OIDCClientSecret redacted&#xA;OIDCRedirectURI &amp;#34;https://mail.example.net/roundcube&amp;#34;&#xA;OIDCCacheType file&#xA;OIDCCacheDir /var/cache/mod_auth_openidc&#xA;OIDCCryptoPassphrase redacted&#xA;&#xA;&amp;lt;Location /roundcube&amp;gt;&#xA;AuthType openid-connect&#xA;Require valid-user&#xA;&amp;lt;/Location&amp;gt;&#xA;&#xA;&amp;lt;Location /&amp;gt;&#xA;AuthType openid-connect&#xA;Require valid-user&#xA;&amp;lt;/Location&amp;gt;&#xA;&#xA;# Handle the case if someone hits the root location and redirect them to /roundcube &#xA;RewriteEngine On&#xA;RewriteCond %{REQUEST_URI} ^/$&#xA;RewriteCond %{HTTP_REFERER} !auth.example.net [NC]&#xA;RewriteRule ^/$ /roundcube/ [R=302,L]&#xA;&#xA;ErrorLog ${APACHE_LOG_DIR}/error.log&#xA;CustomLog ${APACHE_LOG_DIR}/access.log combined&#xA;&#xA;SSLEngine on&#xA;SSLCertificateFile      /etc/letsencrypt/live/mail.example.net/cert.pem&#xA;SSLCertificateKeyFile /etc/letsencrypt/live/mail.example.net/privkey.pem&#xA;SSLCertificateChainFile /etc/letsencrypt/live/mail.example.net/fullchain.pem&#xA;&amp;lt;/VirtualHost&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Once you have this set up, restart apache:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl restart apache2&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;On systems other than Ubuntu the service may be called httpd rather than apache2.&lt;/p&gt;&#xA;&lt;h2 id=&#34;oidc-configuration-options&#34;&gt;OIDC configuration options&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;OIDCClientId&lt;/code&gt;, &lt;code&gt;OIDCProviderMetadataURL&lt;/code&gt; and &lt;code&gt;OIDCClientSecret&lt;/code&gt; can both be found in your Authentik provider configuration.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;OIDCCryptoPassphrase&lt;/code&gt; is only used internally. You can generate any random string for this, I&amp;rsquo;d recommend at least 64 characters.&lt;/p&gt;&#xA;&lt;p&gt;Don&amp;rsquo;t forget that you also need to set the redirect URI in the provider settings!&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Thoughts on starting a media server in 2025</title>
      <link>https://blog.ssb-tech.net/posts/media-server-thoughts/</link>
      <pubDate>Fri, 03 Jan 2025 17:56:14 -0500</pubDate>
      <guid>https://blog.ssb-tech.net/posts/media-server-thoughts/</guid>
      <description>&lt;h1 id=&#34;thoughts-on-starting-a-media-server-in-2025&#34;&gt;Thoughts on starting a media server in 2025&lt;/h1&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;Be warned that the text below is an opinion piece. My way is not the be-all-end-all, but this is how &lt;em&gt;I&lt;/em&gt; would choose to do it if I was starting over from scratch.&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;Recently, someone on one of the less technical Discord servers that I frequent asked a question about setting up &lt;a href=&#34;https://plex.tv&#34;&gt;Plex&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;While Plex is still a perfectly capable media server - I still run it myself, simply because migrating the 20+ users I have using it to &lt;a href=&#34;https://jellyfin.org&#34;&gt;Jellyfin&lt;/a&gt; would be difficult - there are some &lt;a href=&#34;https://www.reddit.com/r/selfhosted/comments/180maoe/plex_crossed_a_line_with_your_week_in_review/&#34;&gt;privacy concerns&lt;/a&gt; over the changes that Plex has made in recent years.&lt;/p&gt;&#xA;&lt;p&gt;This got me thinking, how would &lt;em&gt;I&lt;/em&gt; suggest setting up a media server in 2025? What would that look like if someone was starting from nothing?&lt;/p&gt;&#xA;&lt;p&gt;This article is oriented at newer users who have little knowledge of networking, but want to break free from the tyranny that is their cable provider or the various streaming services.&lt;/p&gt;&#xA;&lt;p&gt;I used to recommend Alex Kretzschmar&amp;rsquo;s &lt;a href=&#34;https://perfectmediaserver.com&#34;&gt;PerfectMediaServer&lt;/a&gt; website to people who are getting started, but that&amp;rsquo;s gotten a bit too complicated, in my opinion. (Sorry Alex, but I don&amp;rsquo;t think I want to push Linux newbies towards NixOS.)&lt;/p&gt;&#xA;&lt;h2 id=&#34;1-which-media-server-do-i-want-to-use&#34;&gt;1. Which media server do I want to use?&lt;/h2&gt;&#xA;&lt;p&gt;If you don&amp;rsquo;t have interest in sharing your media outside of your home, go with Jellyfin.&lt;/p&gt;&#xA;&lt;p&gt;It&amp;rsquo;s a newer piece of software, but it is completely free and open source, and hardware transcoding is not locked behind a paywall like it is with Plex.&lt;/p&gt;&#xA;&lt;p&gt;Another potential option is &lt;a href=&#34;https://emby.media&#34;&gt;Emby&lt;/a&gt;, but while I&amp;rsquo;ve heard good things about it (Jellyfin happens to be a fork of it!) I have very little experience with it personally.&lt;/p&gt;&#xA;&lt;p&gt;Plex is still a viable option if you&amp;rsquo;re not super technical and want to be able to share your media library easily with friends and family. Just know that running Plex does now come with some privacy implications.&lt;/p&gt;&#xA;&lt;p&gt;If you do go with Plex, make sure you follow the steps in this &lt;a href=&#34;https://old.reddit.com/r/selfhosted/comments/180maoe/plex_crossed_a_line_with_your_week_in_review/ka7lzkv/&#34;&gt;Reddit comment&lt;/a&gt; to disable most of the problematic &amp;ldquo;features&amp;rdquo;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;2-what-hardware-do-i-need&#34;&gt;2. What hardware do I need?&lt;/h2&gt;&#xA;&lt;p&gt;The hardware requirements for running a basic, single person media server are more modest than you might expect. What I would recommend for someone getting started is a PC with a relatively recent Intel processor, 8GB of RAM, and an SSD boot drive. Something like an off-lease Dell Optiplex 3060 micro PC from eBay would work fine.&lt;/p&gt;&#xA;&lt;p&gt;What&amp;rsquo;s the reason for recommending an Intel CPU specifically?&lt;/p&gt;&#xA;&lt;p&gt;In short, &lt;strong&gt;QuickSync.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Intel QuickSync is a hardware transcoding technology integrated into the iGPU on modern Intel CPUs. This means that you don&amp;rsquo;t need a separate video card for handling transcoding tasks.&lt;/p&gt;&#xA;&lt;p&gt;Transcoding is important for media servers, as they often need to transcode one video format to another on the fly. Without hardware transcoding, you&amp;rsquo;ll be stuck with software transcoding, which will result in a ton of unnecessary CPU usage and power draw.&lt;/p&gt;&#xA;&lt;p&gt;QuickSync is by far the best in class when it comes to price to performance and performance per watt.&lt;/p&gt;&#xA;&lt;p&gt;That said, avoid the earlier iterations of QuickSync, as they were far less performant.&lt;/p&gt;&#xA;&lt;p&gt;Anything above 8th generation Intel should be sufficient for this task. Think i5-8500, i7-8700 - even the i3 variant would probably be enough for a low power machine with only a few users.&lt;/p&gt;&#xA;&lt;p&gt;You&amp;rsquo;ll also need some storage. This doesn&amp;rsquo;t have to be anything special - if your data needs are modest, you can probably get away with a single hard drive, or even a USB external hard drive, if that&amp;rsquo;s all you have on hand and you want to get started.&lt;/p&gt;&#xA;&lt;p&gt;If you need more space, though, look into getting a NAS to store the media. This will be a separate box that your media server will talk to over the network in order to get to the media files.&lt;/p&gt;&#xA;&lt;p&gt;There are pre-assembled solutions such as the &lt;a href=&#34;https://www.truenas.com/truenas-mini/&#34;&gt;TrueNAS Mini&lt;/a&gt;, or &lt;a href=&#34;https://www.synology.com/en-us&#34;&gt;Synology&lt;/a&gt;. However, these almost always come without hard drives that you will have provide yourself, and the units themselves are very expensive for the hardware that you&amp;rsquo;re getting.&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;d prefer to go the DIY route - I recommend having a look at &lt;a href=&#34;https://blog.briancmoses.com/categories/diy-nas/&#34;&gt;Brian C. Moses&amp;rsquo; blog&lt;/a&gt;. He has some excellent guides for setting up affordable and power efficient systems that don&amp;rsquo;t compromise too much on performance.&lt;/p&gt;&#xA;&lt;p&gt;In case you were wondering - yes - you &lt;em&gt;can&lt;/em&gt; combine both of these devices into one, and run your media server on your NAS. Just make sure you adjust your hardware requirements accordingly.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;You will need a more powerful processor and more RAM to run both of these services in one box.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I would recommend at &lt;em&gt;minimum&lt;/em&gt; an i5 processor, 8th gen or better, and 16GB of RAM. 32GB of RAM would be preferable.&lt;/p&gt;&#xA;&lt;h2 id=&#34;3-what-operating-system-should-i-run-this-on&#34;&gt;3. What operating system should I run this on?&lt;/h2&gt;&#xA;&lt;p&gt;I know it&amp;rsquo;s a difficult thing if all you&amp;rsquo;ve ever touched is Windows or Mac, but I don&amp;rsquo;t recommend running your media server on either of those platforms.&lt;/p&gt;&#xA;&lt;p&gt;You could run the media server on either Unraid or TrueNAS Scale - nothing wrong with either of those platforms, but I do recommend taking the time to learn how to install a Linux operating system like &lt;a href=&#34;https://ubuntu.com/download/desktop&#34;&gt;Ubuntu&lt;/a&gt; and a containerization stack like &lt;a href=&#34;https://www.docker.com&#34;&gt;Docker&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;I deliberately put the link for the Ubuntu Desktop installer there, as it will be less scary than the server operating systems I normally use, which are CLI only, without a graphical user interface.&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;Docker will give you &lt;em&gt;far&lt;/em&gt; more flexibility when you&amp;rsquo;re running it on a general purpose Linux OS rather than a specialized one like TrueNAS or Unraid.&lt;/p&gt;&#xA;&lt;p&gt;But, it&amp;rsquo;s all about what you&amp;rsquo;re comfortable with. If you want to get started with your media server while running everything on Windows - go for it!&lt;/p&gt;&#xA;&lt;h2 id=&#34;4-is-there-any-other-software-that-i-should-use&#34;&gt;4. Is there any other software that I should use?&lt;/h2&gt;&#xA;&lt;p&gt;Oh boy. I&amp;rsquo;m so glad you asked.&lt;/p&gt;&#xA;&lt;p&gt;This is a rabbit hole beyond imagining - once you start, I dare you to stop until &lt;em&gt;everything&lt;/em&gt; with regards to your media collection is automated.&lt;/p&gt;&#xA;&lt;p&gt;I will not go into more detail here, because it will make this post a &lt;em&gt;mile&lt;/em&gt; long if I do. Maybe I&amp;rsquo;ll make another post at some point going into detail about how I, in particular, have my media stack configured.&lt;/p&gt;&#xA;&lt;p&gt;In no particular order:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://sonarr.tv/&#34;&gt;Sonarr&lt;/a&gt; - TV show collection organizer / downloader&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://radarr.video/&#34;&gt;Radarr&lt;/a&gt; - Movies collection organizer / downloader&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://lidarr.audio/&#34;&gt;Lidarr&lt;/a&gt; - Music collection manager / downloader&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://prowlarr.com&#34;&gt;Prowlarr&lt;/a&gt; - Indexer manager for the other *Arr apps.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.bazarr.media/&#34;&gt;Bazarr&lt;/a&gt; - Subtitles manager&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://overseerr.dev/&#34;&gt;Overseerr&lt;/a&gt; / &lt;a href=&#34;https://github.com/Fallenbagel/jellyseerr&#34;&gt;Jellyseerr&lt;/a&gt; - Manage requests for movies and TV shows.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://sabnzbd.org/&#34;&gt;Sabnzbd&lt;/a&gt; - Usenet client&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://recyclarr.dev/wiki/getting-started/&#34;&gt;Recylarr&lt;/a&gt; - Automatically applies the &lt;a href=&#34;https://trash-guides.info&#34;&gt;TraSH Guides&lt;/a&gt; recommendations to your media. (I&amp;rsquo;ll admit this one is a bit niche, but I love it.)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;(Jellyseerr being a fork of Overseerr that works with Jellyfin. Supposedly, Jellyfin support is coming to Overseerr, but it hasn&amp;rsquo;t made it there yet.)&lt;/div&gt;&lt;/div&gt;&#xA;&lt;h2 id=&#34;5-final-thoughts&#34;&gt;5. Final Thoughts&lt;/h2&gt;&#xA;&lt;p&gt;Some final notes before I wrap this up.&lt;/p&gt;&#xA;&lt;p&gt;Please, if you care about your own sanity - organize your media in a way that makes sense.&lt;/p&gt;&#xA;&lt;p&gt;Make a central directory on whatever you&amp;rsquo;re using to store everything and call it whatever.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;/mnt/media&lt;/code&gt;, &lt;code&gt;D:\media&lt;/code&gt;, &lt;code&gt;/Volumes/Rick Astley Fan Page&lt;/code&gt;, I don&amp;rsquo;t care.&lt;/p&gt;&#xA;&lt;p&gt;I &lt;em&gt;highly&lt;/em&gt; recommend structuring it the way they suggest to in the aforementioned &lt;a href=&#34;https://trash-guides.info/File-and-Folder-Structure/&#34;&gt;TraSH Guides&lt;/a&gt; as it will save you a lot of headaches down the line.&lt;/p&gt;&#xA;&lt;p&gt;It all comes back to this - you have a &lt;em&gt;central&lt;/em&gt; folder, whatever it is called, and all of your media goes &lt;em&gt;inside it&lt;/em&gt;, and is broken down further from there.&lt;/p&gt;&#xA;&lt;p&gt;This allows you to have &lt;em&gt;one&lt;/em&gt; folder you need to share out rather than twenty, and in most cases will allow you to use &lt;a href=&#34;https://trash-guides.info/File-and-Folder-Structure/Hardlinks-and-Instant-Moves/#what-are-hardlinks&#34;&gt;hard links&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This also leads me into something else that is very important that will be made easier by having everything centralized into one root directory.&lt;/p&gt;&#xA;&lt;h1 id=&#34;backups&#34; style=&#34;color:red&#34;&gt;Backups.&lt;/h1&gt;&#xA;&lt;p&gt;I don&amp;rsquo;t care if you have hardware RAID, or ZFS, btrfs, whatever. I don&amp;rsquo;t care what level of redundancy you have.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://www.raidisnotabackup.com/&#34;&gt;RAID is not a backup!&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you don&amp;rsquo;t care if you lose your media collection, that&amp;rsquo;s fine. But if you&amp;rsquo;re like me, you&amp;rsquo;ve been collecting and curating this stuff for &lt;em&gt;years&lt;/em&gt; and losing it would hurt. So, I have backups.&lt;/p&gt;&#xA;&lt;p&gt;Even if your backup is just copying one external hard drive to another periodically - that&amp;rsquo;s better than nothing.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m of the opinion that backups should be automated, and monitored at all times, but that&amp;rsquo;s beyond the scope of this particular post.&lt;/p&gt;&#xA;&lt;p&gt;But please, however you have to do it - make backups!&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>PSA - alert policies in Office 365 depend on audit logging</title>
      <link>https://blog.ssb-tech.net/posts/365-quarantine-release-alerts/</link>
      <pubDate>Fri, 27 Dec 2024 13:18:28 -0500</pubDate>
      <guid>https://blog.ssb-tech.net/posts/365-quarantine-release-alerts/</guid>
      <description>&lt;p&gt;This post is a bit of a PSA of sorts.&lt;/p&gt;&#xA;&lt;p&gt;I spent at least an hour trying to figure out why this wasn&amp;rsquo;t working.&lt;/p&gt;&#xA;&lt;p&gt;As it turns out, in order for this feature to work, you&amp;rsquo;ll need to first &lt;a href=&#34;https://learn.microsoft.com/en-us/purview/audit-log-enable-disable?tabs=microsoft-purview-portal#turn-on-auditing&#34;&gt;turn on audit logging in your Office 365 tenant&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Maybe this seems obvious to some - it wasn&amp;rsquo;t at all obvious to me. I wrongly assumed that these events would be raised in some way - not that the alerts were just tracking the user activity logs.&lt;/p&gt;&#xA;&lt;p&gt;The Microsoft documentation I referenced above also claims that logging is enabled by default - but on every 365 tenant I checked (and through my work I have access to more than 2 dozen) it was NOT turned on by default, even on several newly created tenants. This feature really should be on by default.&lt;/p&gt;&#xA;&lt;p&gt;Once you enable the feature it may still be up to 24 hours before your alerts start working.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m currently using this feature to track when users submit requests to release messages from Quarantine - anyone else have some useful policies? Share down in the comments.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Caching Apt Repositories on TrueNAS</title>
      <link>https://blog.ssb-tech.net/posts/caching-apt-repositories/</link>
      <pubDate>Mon, 16 Dec 2024 18:28:57 -0500</pubDate>
      <guid>https://blog.ssb-tech.net/posts/caching-apt-repositories/</guid>
      <description>&lt;h1 id=&#34;overview&#34;&gt;Overview&lt;/h1&gt;&#xA;&lt;p&gt;Recently I watched the following YouTube video by &lt;a href=&#34;https://www.apalrd.net&#34;&gt;apalrd&lt;/a&gt; on how he was using Nginx as a caching reverse proxy for Debian, Ubuntu, and other APT repositories.&lt;/p&gt;&#xA;&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;&#xA;      &lt;iframe allow=&#34;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen&#34; loading=&#34;eager&#34; referrerpolicy=&#34;strict-origin-when-cross-origin&#34; src=&#34;https://www.youtube.com/embed/ydfsjWDPDyU?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; title=&#34;YouTube video&#34;&gt;&lt;/iframe&gt;&#xA;    &lt;/div&gt;&#xA;&#xA;&lt;p&gt;I was inspired by this to do the same, but instead of spinning up an LXC for this task, I&amp;rsquo;m using the built-in Docker functionality in TrueNAS. With &lt;a href=&#34;https://www.truenas.com/blog/truenas-electric-eel-powers-up-your-storage/&#34;&gt;Electric Eel introducing Docker Compose support&lt;/a&gt;, TrueNAS is now far more flexible in this regard.&lt;/p&gt;&#xA;&lt;h1 id=&#34;heres-how-to-accomplish-this&#34;&gt;Here&amp;rsquo;s how to accomplish this:&lt;/h1&gt;&#xA;&lt;h2 id=&#34;1-create-zfs-datasets&#34;&gt;1. Create ZFS datasets&lt;/h2&gt;&#xA;&lt;p&gt;If you don&amp;rsquo;t already have one, I recommend having a single root dataset to manage all of your docker app configurations. I just called mine &lt;code&gt;appdata.&lt;/code&gt; With how TrueNAS handles mounting datasets, the mountpoint for this ends up being &lt;code&gt;/mnt/&amp;lt;poolname&amp;gt;/appdata&lt;/code&gt;. This will be important later. My pool is just named &lt;code&gt;tank&lt;/code&gt;, so I&amp;rsquo;ll be using that name going forward.&lt;/p&gt;&#xA;&lt;p&gt;Create 2 child datasets of &lt;code&gt;appdata&lt;/code&gt; - one for the nginx config, and one for the actual proxy cache (as well as our access.log and error.log)&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;/mnt/tank/appdata/debcache&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/mnt/tank/appdata/nginx&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;I recommend setting the owner of these datasets to be &lt;code&gt;systemd-timesync&lt;/code&gt;, as the UID TrueNAS uses for that user matches up with the UID of the nginx user inside of the container. It will save a lot of headaches with regards to permissions. Alternatively, you could tell Nginx to run as a specific user.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;2-create-nginx-configuration-file&#34;&gt;2. Create Nginx configuration file&lt;/h2&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s my (slightly modified) version of apalrd&amp;rsquo;s debcache.conf:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-nginx&#34; data-lang=&#34;nginx&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Global Cache settings&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;proxy_cache_path&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;/var/debcache/cache&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;levels=2:2&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;keys_zone=generic:500m&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;inactive=90d&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;max_size=1000g&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;min_free=5g&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;loader_files=1000&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;loader_sleep=50ms&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;loader_threshold=300ms&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;use_temp_path=off&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Log with cache status&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;log_format&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;cachelog&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;&lt;/span&gt;$remote_addr &lt;span style=&#34;color:#e6db74&#34;&gt;[&lt;/span&gt;$time_local] &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$request&amp;#34; $status &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$http_user_agent&amp;#34; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;&lt;/span&gt;$upstream_cache_status&amp;#34;&amp;#39;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# URI paths to avoid cache&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# These paths will change to indicate new release contents&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# All other .deb files can be cached nearly indefinitely, as the&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# version number is coded into the file name.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;map&lt;/span&gt; $request_uri $nocache {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;~InRelease&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;~Release&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;~Contents&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# Deb Server&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;server&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# IF you need legacy IP, enable this one&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;listen&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;80&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;reuseport&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;#Log settings&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;access_log&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;/var/debcache/access.log&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;cachelog&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;error_log&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;/var/debcache/error.log&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Cache Location&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;slice&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1m&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_cache&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;generic&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_ignore_headers&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;Expires&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;Cache-Control&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_cache_valid&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;200&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;206&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;90d&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_cache_valid&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;301&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;302&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_set_header&lt;/span&gt;  &lt;span style=&#34;color:#e6db74&#34;&gt;Range&lt;/span&gt; $slice_range;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_cache_lock&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;on&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_cache_lock_age&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;2m&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_cache_lock_timeout&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;1h&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_cache_use_stale&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;error&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;timeout&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;invalid_header&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;updating&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;http_500&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;http_502&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;http_503&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;http_504&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_cache_revalidate&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;on&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;#Nocache for those entries&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_cache_bypass&lt;/span&gt; $nocache;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_no_cache&lt;/span&gt; $nocache;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# 1G max file&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_max_temp_file_size&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1024m&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Cache key&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_cache_key&lt;/span&gt;      $http_host$uri$slice_range;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Upstream Configuration&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_next_upstream&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;error&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;timeout&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;http_404&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Cache status&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;add_header&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;X-Cache-Status&lt;/span&gt; $upstream_cache_status;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_redirect&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;off&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_ignore_client_abort&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;on&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Upstream request headers&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;proxy_ssl_server_name&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;on&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Redirect Locations&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Must include trailing slash!&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Debian&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;location&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;/debian/&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_pass&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;http://deb.debian.org/debian/&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_set_header&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;Host&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;deb.debian.org&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;location&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;/debsec/&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_pass&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;http://deb.debian.org/debian-security/&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_set_header&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;Host&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;deb.debian.org&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Ubuntu&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;location&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;/ubuntu/&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_pass&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;http://us.archive.ubuntu.com/ubuntu/&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_set_header&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;Host&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;us.archive.ubuntu.com&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;location&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;/ubusec/&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_pass&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;http://security.ubuntu.com/ubuntu/&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_set_header&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;Host&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;security.ubuntu.com&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Kali&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;location&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;/kali/&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_pass&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;http://http.kali.org/kali/&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_set_header&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;Host&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;http.kali.org&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Proxmox (non-enterprise)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;location&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;/proxmox/&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_pass&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;http://download.proxmox.com/debian/&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_set_header&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;Host&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;download.proxmox.com&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Caddy Server&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;location&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;/caddy/&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_pass&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;https://dl.cloudsmith.io/public/caddy/stable/deb/debian/&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_set_header&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;Host&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;dl.cloudsmith.io&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Nodesource NodeJS&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;location&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;/node/&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_pass&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;https://deb.nodesource.com/node_20.x/&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;proxy_set_header&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;Host&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;deb.nodesource.com&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Stats endpoint&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;location&lt;/span&gt; = &lt;span style=&#34;color:#e6db74&#34;&gt;/nginx_status&lt;/span&gt; {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#f92672&#34;&gt;stub_status&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#75715e&#34;&gt;# Static Files (conversion scripts)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;root&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;/var/debcache/static/&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;autoindex&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;on&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;&lt;strong&gt;Save this configuration file to &lt;code&gt;/mnt/tank/appdata/nginx/debcache.conf&lt;/code&gt; on your TrueNAS server.&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;&lt;strong&gt;Some notes on what I&amp;rsquo;ve changed:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Inactive items are only kept for 90 days instead of 10 years.&lt;/li&gt;&#xA;&lt;li&gt;Fixed a missing slash in the nodesource repository (by the time you read this it may be fixed on apalrd&amp;rsquo;s original post).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;3-change-the-http-listening-port-for-the-truenas-gui-so-that-nginx-can-bind-that-port-instead&#34;&gt;3. Change the HTTP listening port for the TrueNAS GUI so that Nginx can bind that port instead.&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Go to System &amp;gt; General Settings and click on &lt;code&gt;Settings&lt;/code&gt; under the GUI box.&lt;/li&gt;&#xA;&lt;li&gt;Change the Web Interface HTTP port to something other than 80. I&amp;rsquo;ve set mine to 8080.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;TrueNAS GUI HTTP port setting&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/caching-apt-repositories/images/truenas-gui.png&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;4-install-nginx-as-a-custom-app&#34;&gt;4. Install Nginx as a custom app&lt;/h2&gt;&#xA;&lt;p&gt;Go to the &lt;code&gt;Apps&lt;/code&gt; screen, click on &lt;code&gt;Discover Apps&lt;/code&gt;, and click on the three dots to the right of &lt;code&gt;Custom App&lt;/code&gt;. You should have an option to &lt;code&gt;Install via YAML&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;TrueNAS Install via YAML&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/caching-apt-repositories/images/truenas-install.png&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Paste the below compose syntax into the &lt;code&gt;Custom Config&lt;/code&gt; box. Change the path names if necessary.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;services&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  &lt;span style=&#34;color:#f92672&#34;&gt;nginx&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;container_name&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;nginx-debcache&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;image&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;nginx&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;ports&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;80:80&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;restart&lt;/span&gt;: &lt;span style=&#34;color:#ae81ff&#34;&gt;unless-stopped&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#f92672&#34;&gt;volumes&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;/mnt/tank/appdata/debcache:/var/debcache&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      - &lt;span style=&#34;color:#ae81ff&#34;&gt;/mnt/tank/appdata/nginx:/etc/nginx/conf.d:ro&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Click save, and the Nginx container should deploy.&lt;/p&gt;&#xA;&lt;p&gt;You can test the configuration by going to &lt;code&gt;http://your-truenas-ip/debian&lt;/code&gt;. It should be proxying the Debian apt repository. If you see the index for that repo, the proxy is working.&lt;/p&gt;&#xA;&lt;h2 id=&#34;5-configure-a-dns-record-optional&#34;&gt;5. Configure a DNS record (optional)&lt;/h2&gt;&#xA;&lt;p&gt;This step is technically optional, but I recommend it. Whatever you&amp;rsquo;re using for local DNS resolution, whether it be PiHole, BIND, dnsmasq, etc - create a DNS A record or CNAME for TrueNAS that you&amp;rsquo;ll use for this specific purpose.&lt;/p&gt;&#xA;&lt;h2 id=&#34;6-modify-your-sourceslist-files&#34;&gt;6. Modify your sources.list files&lt;/h2&gt;&#xA;&lt;p&gt;I recommend either using the script that apalrd created, or the &lt;a href=&#34;https://gist.github.com/BladeWDR/355fe911e00dab959846db21a9084769&#34;&gt;Ansible playbook that I wrote.&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Please leave a comment if you run into any problems with the playbook - I have come across one or two edge cases that I didn&amp;rsquo;t account for already - if there are any more, please let me know which repositories and I will attempt to fix it. No promises on turnaround time, though. :P&lt;/p&gt;&#xA;&lt;h1 id=&#34;conclusion&#34;&gt;Conclusion&lt;/h1&gt;&#xA;&lt;p&gt;And that&amp;rsquo;s all she wrote! You should now have a caching web proxy running off your TrueNAS server with access to that big honking storage array you&amp;rsquo;ve got in your basement with all the Linux ISOs on it.&lt;/p&gt;&#xA;&lt;p&gt;Please leave a comment if you found this useful.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Fedora 41 and ZFS</title>
      <link>https://blog.ssb-tech.net/posts/fedora41-and-zfs/</link>
      <pubDate>Mon, 09 Dec 2024 20:40:18 -0500</pubDate>
      <guid>https://blog.ssb-tech.net/posts/fedora41-and-zfs/</guid>
      <description>&lt;div class=&#34;callout callout-note&#34; role=&#34;note&#34;&gt;&lt;div class=&#34;callout-title&#34;&gt;Note&lt;/div&gt;&lt;div class=&#34;callout-content&#34;&gt;ZFS 2.2.7 has been released with up to Linux kernel 6.12 support, so this workaround is no longer necessary.&#xA;I&amp;rsquo;ll leave the post up in case this is ever useful in the future.&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;I previously posted about how to &lt;a href=&#34;https://blog.ssb-tech.net/posts/building-fedora-server-into-a-desktop/&#34;&gt;build a desktop OS from the Fedora Server installer&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This is a bit of a follow up to that post.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve now been running Fedora 41 for a few days and it&amp;rsquo;s been a mostly pleasant experience.&lt;/p&gt;&#xA;&lt;p&gt;However, I am also an avid ZFS user, and the current stable release of OpenZFS &lt;a href=&#34;https://github.com/openzfs/zfs/issues/16590&#34;&gt;does not support Linux kernel 6.11 yet&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;So, being the enterprising fellow that I am, I chose to build ZFS 2.3.0 RC3 from source using the &lt;a href=&#34;https://openzfs.github.io/openzfs-docs/Developer%20Resources/Building%20ZFS.html&#34;&gt;official instructions&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;That went well, but one thing that tripped me up (and caused some issues for specific applications like syncthing, which keeps it&amp;rsquo;s local database in the user&amp;rsquo;s home directory) is that when you do this, unlike when you install &lt;code&gt;zfsutils-linux&lt;/code&gt; on Ubuntu, it doesn&amp;rsquo;t set up the automatic import and mounting of your pool.&lt;/p&gt;&#xA;&lt;p&gt;It took some digging around to find the correct process, because it seems to be a bit different between the official ZFS source and the one that ships with Ubuntu, but here&amp;rsquo;s what wound up working for me:&lt;/p&gt;&#xA;&lt;p&gt;First, go through and enable the following services:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl enable zfs.target zfs-mount.target zfs-import.target zfs-import-cache.service&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;There are plenty of posts online telling you that you should create your cache file in &lt;code&gt;/etc/zfs/zfs-list-cache/&lt;/code&gt;, but this is wrong (or at least outdated. I’m not sure if that location is Ubuntu specific?)&lt;/p&gt;&#xA;&lt;p&gt;The ACTUAL location of the cache file (which you can see if you actually read through the systemd unit file for zfs-import-cache.service) is &lt;code&gt;/usr/local/etc/zfs&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If the file doesn&amp;rsquo;t exist, create it.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo touch /usr/local/etc/zfs/zpool.cache&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Import your pool.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo zpool import poolname&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If you print out the cache file now it should no longer be empty.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cat /usr/local/etc/zfs/zpool.cache&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Next time you reboot your pools should automatically mount and mount all filesystems.&lt;/p&gt;&#xA;&lt;p&gt;And yes, I did cross post this over on the &lt;a href=&#34;https://discourse.practicalzfs.com/t/psa-zfs-automount-when-building-from-source/1970/1&#34;&gt;PracticalZFS forum.&lt;/a&gt;&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>How to build up Fedora Server Edition to a desktop</title>
      <link>https://blog.ssb-tech.net/posts/building-fedora-server-into-a-desktop/</link>
      <pubDate>Sun, 08 Dec 2024 16:44:53 -0500</pubDate>
      <guid>https://blog.ssb-tech.net/posts/building-fedora-server-into-a-desktop/</guid>
      <description>&lt;h1 id=&#34;how-to-build-up-fedora-server-edition-to-a-desktop&#34;&gt;How to build up Fedora Server Edition to a desktop&lt;/h1&gt;&#xA;&lt;p&gt;In this article I&amp;rsquo;ll go over how to take the Fedora Server Edition image and build it up into a full desktop.&lt;/p&gt;&#xA;&lt;h2 id=&#34;1-download-the-fedora-server-edition-iso&#34;&gt;1. Download the Fedora Server Edition ISO.&lt;/h2&gt;&#xA;&lt;p&gt;Download the latest .iso (DVD) release from &lt;a href=&#34;https://fedoraproject.org/server/download&#34;&gt;here.&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Burn it to a USB stick using whichever method you prefer, and boot into it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;2-set-software-selections-to-custom&#34;&gt;2. Set Software Selections to custom&lt;/h2&gt;&#xA;&lt;p&gt;Once in the Fedora installer, the first step we want to take is to go into &amp;ldquo;Software Selections&amp;rdquo; and set it to &amp;ldquo;custom&amp;rdquo; instead of the Server Edition.&lt;/p&gt;&#xA;&lt;p&gt;The &amp;ldquo;Server Edition&amp;rdquo; option will install the Cockpit web management package along with the OS. Not something I want installed on my desktop, personally, but if you think that&amp;rsquo;s something you&amp;rsquo;d like to have, go for it. It will make no difference to the rest of the process.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Fedora Software Selections&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/building-fedora-server-into-a-desktop/images/fedora-software-selections.png&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;3-create-disk-partitions&#34;&gt;3. Create disk partitions.&lt;/h2&gt;&#xA;&lt;p&gt;Enter the partition layout editor and select &amp;ldquo;custom&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Custom partition layout&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/building-fedora-server-into-a-desktop/images/fedora-custom-part.png&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;For the &amp;ldquo;New mount points&amp;rdquo; dropdown, pick btrfs.&lt;/p&gt;&#xA;&lt;p&gt;Click the plus button to create a new partition.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;BTRFS dropdown&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/building-fedora-server-into-a-desktop/images/fedora-btrfs-drop.png&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;We will create a single partition of 1GB for the EFI bootloader, leaving the rest for the OS and user data.&lt;/p&gt;&#xA;&lt;p&gt;Set the mountpoint of this partition to &lt;code&gt;/boot/efi&lt;/code&gt;, and check the box to reformat the disk.&#xA;This will allow you to select the &amp;ldquo;EFI System Partition&amp;rdquo; type.&lt;/p&gt;&#xA;&lt;p&gt;For the rest of the disk, create a single btrfs partition.&lt;/p&gt;&#xA;&lt;p&gt;We will subdivide this using btrfs subvolumes.&lt;/p&gt;&#xA;&lt;p&gt;Use the + button to create 4 more &amp;ldquo;partitions&amp;rdquo;, though since we&amp;rsquo;ve already occupied the entire disk these will be subvolumes instead of partitions. You can see this by looking on the right side under the &amp;ldquo;Volume&amp;rdquo; dropdown. By default the btrfs volume name is &amp;ldquo;fedora&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;There&amp;rsquo;s no real reason to change this, so we&amp;rsquo;ll leave it alone.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;For the first subvolume, give it a mount point of &lt;code&gt;/&lt;/code&gt; and change the name from &lt;code&gt;root&lt;/code&gt; to &lt;code&gt;@&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;For the second subvolume, the mount point will be &lt;code&gt;/home&lt;/code&gt; and the name will be &lt;code&gt;@home&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Subvolume 3 will be mounted at &lt;code&gt;/var/log&lt;/code&gt; and called &lt;code&gt;@log&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Subvolume 4 will be mounted at &lt;code&gt;/.snapshots&lt;/code&gt; and called &lt;code&gt;@.snapshots&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Following these naming conventions will allow us to use the &lt;code&gt;timeshift&lt;/code&gt; snapshotting tool, as it expects the Ubuntu btrfs naming conventions, as I&amp;rsquo;ve used here.&lt;/p&gt;&#xA;&lt;p&gt;If you wish to create any more subvolumes, you can do so now, but that&amp;rsquo;s enough for me.&lt;/p&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s what it should look like at the end:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Final partition layout&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/building-fedora-server-into-a-desktop/images/fedora-final-layout.png&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Keep in mind that if you&amp;rsquo;d like to use a different layout than the one I used here, or if you&amp;rsquo;d like to put your &lt;code&gt;/home&lt;/code&gt; partition on a different disk entirely, that&amp;rsquo;s entirely OK.&lt;/p&gt;&#xA;&lt;p&gt;Just keep in mind - you need &lt;em&gt;at least&lt;/em&gt; a root partition &lt;code&gt;/&lt;/code&gt; and an EFI partition &lt;code&gt;/boot/efi&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;4-create-a-user&#34;&gt;4. Create a user&lt;/h2&gt;&#xA;&lt;p&gt;I recommend creating a user at this point with superuser privileges. You can also, if you wish, enable the root account and give it a password, but I won&amp;rsquo;t bother.&lt;/p&gt;&#xA;&lt;h2 id=&#34;5-finish-the-installation&#34;&gt;5. Finish the installation&lt;/h2&gt;&#xA;&lt;p&gt;At this point you can proceed with installing the OS.&lt;/p&gt;&#xA;&lt;p&gt;Once the installation is done, reboot your machine and log into your new operating system.&lt;/p&gt;&#xA;&lt;h2 id=&#34;6-install-updates&#34;&gt;6. Install updates&lt;/h2&gt;&#xA;&lt;p&gt;You&amp;rsquo;ll be greeted with a command line only interface. Don&amp;rsquo;t worry, we&amp;rsquo;ll fix that in a moment.&lt;/p&gt;&#xA;&lt;p&gt;First, run the below command and get any pending updates out of the way.&lt;/p&gt;&#xA;&lt;p&gt;Reboot may or may not be necessary if there&amp;rsquo;s not a new kernel.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo dnf upgrade &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; sudo reboot now&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;7-install-software&#34;&gt;7. Install software.&lt;/h2&gt;&#xA;&lt;p&gt;I don&amp;rsquo;t use a typical desktop environment, I use SwayWM, but I do use GDM as my display manager, so we&amp;rsquo;ll be installing a few Gnome packages.&lt;/p&gt;&#xA;&lt;p&gt;If you wish to install Gnome instead of Sway, you can use the following command:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo dnf group install gnome&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;install-swaywm&#34;&gt;Install SwayWM&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo dnf group install swaywm&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;install-the-gnome-display-manager-gdm&#34;&gt;Install the Gnome Display Manager (GDM)&lt;/h3&gt;&#xA;&lt;p&gt;This package will handle our login sessions and give us the nice login screen to log into Sway with.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo dnf install gdm&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;set-default-systemd-target&#34;&gt;Set default systemd target&lt;/h3&gt;&#xA;&lt;p&gt;Right now, the multi-user.target is the default systemd target on login.&lt;/p&gt;&#xA;&lt;p&gt;If we want our GUI to start upon boot, we need to make this &lt;code&gt;graphical.target&lt;/code&gt; instead.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl set-default graphical.target&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;install-recommended-packages&#34;&gt;Install recommended packages&lt;/h3&gt;&#xA;&lt;p&gt;These packages can be useful if we need to build anything from source, or if you use anything like Neovim with &lt;code&gt;nvim-treesitter&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo dnf install make automake gcc gcc-c++ kernel-devel tar unzip&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;install-the-rpmfusion-repos-and-media-codecs&#34;&gt;Install the RPMFusion repos and media codecs.&lt;/h3&gt;&#xA;&lt;p&gt;Red Hat does not bundle these codecs with Fedora, so if you want hardware decoding for H264 and H265 (and you do), run this command to take care of all of that.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-&lt;span style=&#34;color:#66d9ef&#34;&gt;$(&lt;/span&gt;rpm -E %fedora&lt;span style=&#34;color:#66d9ef&#34;&gt;)&lt;/span&gt;.noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-&lt;span style=&#34;color:#66d9ef&#34;&gt;$(&lt;/span&gt;rpm -E %fedora&lt;span style=&#34;color:#66d9ef&#34;&gt;)&lt;/span&gt;.noarch.rpm&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo dnf group install multimedia sound-and-video&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If the above command doesn&amp;rsquo;t work for some reason, try running another &lt;code&gt;sudo dnf upgrade&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;For some reason the first time I added the rpmfusion repos, the multimedia group wasn&amp;rsquo;t available until after I ran that.&lt;/p&gt;&#xA;&lt;h3 id=&#34;extra-goodies&#34;&gt;Extra Goodies&lt;/h3&gt;&#xA;&lt;p&gt;Set dark GTK theme by default:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;gsettings set org.gnome.desktop.interface color-scheme &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;prefer-dark&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Most GTK applications will respect this and avoid the eye-rending white backgrounds.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update 2024/12/24&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;You probably also want to install some fonts. After writing this post, I discovered that Fedora Server is missing a &lt;code&gt;Dingbats&lt;/code&gt; font that contains specific symbols.&lt;/p&gt;&#xA;&lt;p&gt;You can get this by installing a font like &lt;a href=&#34;https://fontlibrary.org/en/font/symbola&#34;&gt;Symbola&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I also recommend installing a Nerd Font like FiraCode from &lt;a href=&#34;https://www.nerdfonts.com/font-downloads&#34;&gt;the Nerd Font website.&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;You can put them in a few different locations:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;/usr/share/fonts&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;/usr/local/share/fonts&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;~/.local/share/fonts&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Personally, I like installing them to &lt;code&gt;/usr/local/share/fonts&lt;/code&gt; so that they&amp;rsquo;re available to all users on the system. (Even though I&amp;rsquo;m typically the only user on my systems.)&lt;/p&gt;&#xA;&lt;p&gt;Download the font zip file.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo unzip font.zip -d /usr/local/share/fonts/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo chown root:root /usr/local/share/fonts/font*.ttf&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;start-and-enable-gdm&#34;&gt;Start and enable GDM&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo systemctl enable gdm &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; sudo systemctl start gdm&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will kick you over to the Gnome Display Manager and allow you to log into any desktop environments or Wayland compositors you may have installed.&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re using Gnome, it will be a very basic installation without any packages to speak of besides the absolute necessities, but this is why we install things from the server edition - to get a more minimal install without bloat.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve also created a script to make the process of getting things to a full desktop simpler - feel free to use it as a base!&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://gist.github.com/BladeWDR/e9c4d794458ec7715133f25a4318ed4e&#34;&gt;Fedora setup script gist&lt;/a&gt;&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Setting up OpnSense as an AirVPN client</title>
      <link>https://blog.ssb-tech.net/posts/airvpn-on-opnsense/</link>
      <pubDate>Tue, 03 Dec 2024 22:41:53 -0500</pubDate>
      <guid>https://blog.ssb-tech.net/posts/airvpn-on-opnsense/</guid>
      <description>&lt;p&gt;I recently set up my OpnSense firewall at home with a connection to AirVPN using Wireguard.&lt;/p&gt;&#xA;&lt;p&gt;It was a bit more complicated than when I did it for Mullvad last year, so I figured I&amp;rsquo;d document it here for anyone who finds this useful.&lt;/p&gt;&#xA;&lt;h2 id=&#34;1-device-creation&#34;&gt;1. Device Creation&lt;/h2&gt;&#xA;&lt;p&gt;Log into your AirVPN account and navigate to the client area. Click on&#xA;Manage Devices. You can either edit the existing &amp;ldquo;default&amp;rdquo; device or&#xA;create a new one. Either way, I recommend editing the name of the device&#xA;so that you know what it is, 6 months down the line. I called mine&#xA;&amp;ldquo;Opnsense&amp;rdquo;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;While you&amp;rsquo;re here, I recommend opening up a Notepad or equivalent and&#xA;copying and pasting the public key that&amp;rsquo;s on this page. We&amp;rsquo;ll need it later.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;AirVPN devices page&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/airvpn-on-opnsense/images/airvpn-devices.png&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;2-generate-wireguard-configuration-file&#34;&gt;2. Generate Wireguard configuration file&lt;/h2&gt;&#xA;&lt;p&gt;Next, head back to the client area and head into the Config Generator.&lt;/p&gt;&#xA;&lt;p&gt;For OS, you&amp;rsquo;ll want to choose &amp;ldquo;Router&amp;rdquo;. You&amp;rsquo;ll also want to decide which&#xA;device (if you have more than one) that this configuration will apply to.&lt;/p&gt;&#xA;&lt;p&gt;Pick the &amp;ldquo;Wireguard&amp;rdquo; protocol.&lt;/p&gt;&#xA;&lt;p&gt;Pick a server as well - I picked Switzerland.&lt;/p&gt;&#xA;&lt;p&gt;Once you&amp;rsquo;re done, click the Generate button at the bottom of the page.&#xA;This will download a Wireguard configuration file - save this, we&amp;rsquo;ll need&#xA;it in a moment.&lt;/p&gt;&#xA;&lt;h2 id=&#34;3-create-wireguard-tunnel-in-opnsense&#34;&gt;3. Create Wireguard tunnel in Opnsense.&lt;/h2&gt;&#xA;&lt;p&gt;Next, we&amp;rsquo;ll be heading into Opnsense. Log in and navigate to the VPN&#xA;section. Under Wireguard, create a peer.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Name: AirVPN &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Public Key: you can get this from the wireguard configuration file you downloaded in step 2.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Pre-Shared Key: you can get this from the wireguard configuration file you&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;downloaded in Step 2. &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Allowed IPs: 0.0.0.0/0 &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Endpoint Address: Get this from the config file as well.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Endpoint port: Get this from the config file as well. It&amp;#39;s usually 1637.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Keepalive Interval: You can either set this to 15 or leave it blank.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Save, and next we&amp;rsquo;ll head over to Instances. Configure a new instance with the following options:&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Make sure you enable advanced features.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Name: AirVPNLocal&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Public Key: Here you&amp;#39;ll want to put the public key we got in step 1. This is the public key of OPNSENSE.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Private Key: Grab this from the config file. It will be under the Interface section.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Tunnel address: Set this to the /32 address that was in the config file. It will be something in the 10.128.0.0/10 range.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Peer: Select the AirVPN peer we created earlier.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;MTU: 1320&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Disable Routes: Checked &#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;Make sure you have Disable Routes checked, it&amp;rsquo;s important.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Hit Save. Don&amp;rsquo;t forget to check the box to enable Wireguard, and hit apply at the bottom of the page.&lt;/p&gt;&#xA;&lt;p&gt;Once done, head over to the &amp;ldquo;Status&amp;rdquo; page - the tunnel should show a status of &amp;ldquo;Up&amp;rdquo; now, but we&amp;rsquo;ve still got some work to do before we can use it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;4-create-an-interface&#34;&gt;4. Create an interface.&lt;/h2&gt;&#xA;&lt;p&gt;Head over to Interfaces &amp;gt; Assignments.&lt;/p&gt;&#xA;&lt;p&gt;Under &amp;ldquo;Assign a new interface&amp;rdquo;, pick the Wireguard device we just created. If it&amp;rsquo;s your first one, it&amp;rsquo;ll be &lt;code&gt;wg0&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Click on the interface, Enable it. I also recommend giving it a descriptive name. Mine is called &amp;ldquo;airvpn_wg&amp;rdquo;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;5-create-a-gateway&#34;&gt;5. Create a gateway.&lt;/h2&gt;&#xA;&lt;p&gt;Next we have to create a gateway for AirVPN clients to use.&lt;/p&gt;&#xA;&lt;p&gt;Head over to System &amp;gt; Gateways &amp;gt; Configuration.&lt;/p&gt;&#xA;&lt;p&gt;Create a new gateway and give it a descriptive name. I called mine AIRVPN_GW.&lt;/p&gt;&#xA;&lt;p&gt;Here are the other settings you&amp;rsquo;ll need to configure on this gateway.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Interface: airvpn_wg&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Address family: IPv4&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;IP Address: 10.128.0.1&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Far Gateway: checked&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Disable Gateway Monitoring: checked.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Click Save, and then Apply.&lt;/p&gt;&#xA;&lt;h2 id=&#34;6-create-outbound-nat-rule&#34;&gt;6. Create Outbound NAT rule.&lt;/h2&gt;&#xA;&lt;p&gt;Most Wireguard VPN providers will require you to configure outbound NAT, and AirVPN is no exception.&lt;/p&gt;&#xA;&lt;p&gt;Go to Firewall &amp;gt; NAT &amp;gt; Outbound and add a rule.&lt;/p&gt;&#xA;&lt;p&gt;Configure only the following settings and leave everything else default.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Interface: airvpn_wg&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Source Address: LAN net (or whatever you&amp;#39;re using.)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Description: Outbound NAT for AirVPN&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;7-configure-policy-routing&#34;&gt;7. Configure Policy Routing&lt;/h2&gt;&#xA;&lt;p&gt;How we&amp;rsquo;re going to accomplish this is we&amp;rsquo;re going to create an alias for the devices we want to route out over the VPN tunnel.&lt;/p&gt;&#xA;&lt;p&gt;Call it VPN_Required or whatever you like.&lt;/p&gt;&#xA;&lt;p&gt;Once you&amp;rsquo;ve created the alias, navigate to Firewall &amp;gt; Rules &amp;gt; Your network.&lt;/p&gt;&#xA;&lt;p&gt;Create a pass rule with the following settings defined:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Interface: LAN&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Protocol: Any&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Source: VPN_Required&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Destination: Any&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Gateway: AIRVPN_GW&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Advanced features:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  Set local tag: vpntraffic&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Next head to Rules &amp;gt; Floating and define a Block rule.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Interface: Your WAN interface&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Source: Any&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Protocol: Any&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Destination: Any&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Advanced features:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  Match local tag: vpntraffic&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This block rule will serve as a &amp;ldquo;kill switch&amp;rdquo; preventing our VPN traffic from leaking if the tunnel goes down for some reason.&lt;/p&gt;&#xA;&lt;h2 id=&#34;8-test-it&#34;&gt;8. Test It&lt;/h2&gt;&#xA;&lt;p&gt;I recommend testing the connection at this point. Add your current device&amp;rsquo;s IP address to the alias you&amp;rsquo;re using for policy routing for testing purposes.&lt;/p&gt;&#xA;&lt;p&gt;Go to sites like &lt;a href=&#34;https://ipleak.net/&#34;&gt;https://ipleak.net/&lt;/a&gt; and make sure that everything is reported correctly. Make sure you don&amp;rsquo;t have any DNS leaks, either - it should show DNS servers in the same region as the AirVPN server that you chose.&lt;/p&gt;&#xA;&lt;h2 id=&#34;9-bonus-points---port-forwarding&#34;&gt;9. Bonus Points - Port Forwarding&lt;/h2&gt;&#xA;&lt;p&gt;If you have a need for port forwarding, AirVPN supports up to 5 ports per account.&lt;/p&gt;&#xA;&lt;p&gt;Head on back to the Client Area on their website and click on Ports.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;If you&amp;rsquo;re forwarding ports for a protocol like Bittorrent, you&amp;rsquo;ll need to use the &lt;code&gt;:1&lt;/code&gt; pool of addresses.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;I suggest using AirVPN&amp;rsquo;s tool on the same page to find a free port in that range.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;AirVPN port search tool&#34; loading=&#34;lazy&#34; src=&#34;https://blog.ssb-tech.net/posts/airvpn-on-opnsense/images/airvpn-port-checker.png&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Once you&amp;rsquo;ve determined which port to use, configure it for yourself. Configure which device it&amp;rsquo;s for, set the protocol to TCP+UDP.&lt;/p&gt;&#xA;&lt;p&gt;I recommend using ipv4 only.&lt;/p&gt;&#xA;&lt;p&gt;On Opnsense, configure a rule on the airvpn_wg interface. (Firewall &amp;gt; Rules &amp;gt; airvpn_wg)&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Action: Pass&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Protocol: TCP/UDP&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Destination: The IP address of your box of Linux ISOs.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Port: the port you defined in AirVPN.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Reply-To: AIRVPN_GW&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You&amp;rsquo;ll also want to configure a port forward under NAT &amp;gt; Port Forward.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Interface: airvpn_wg&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Protocol: TCP/UDP&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Destination: airvpn_wg address&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Destination port range: the port you defined in AirVPN.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Redirect target IP: The IP address of your box of Linux ISOs.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Redirect target port: the port you defined in AirVPN.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now, in your Bittorrent client, make sure you turn off port randomization, and set the port to the same one.&lt;/p&gt;&#xA;&lt;p&gt;You may also have to allow that port through the system firewall, if there is one.&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re running something like Transmission in Docker, don&amp;rsquo;t forget to publish the port in your docker compose.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Adventures in DNS (But it&#39;s actually DHCP this time.)</title>
      <link>https://blog.ssb-tech.net/posts/adventures-in-dhcp-and-dns/</link>
      <pubDate>Mon, 02 Dec 2024 23:57:12 -0500</pubDate>
      <guid>https://blog.ssb-tech.net/posts/adventures-in-dhcp-and-dns/</guid>
      <description>&lt;p&gt;So, story time.&lt;/p&gt;&#xA;&lt;p&gt;Boss has a friend who does IT for an electrical contractor 30 mins or so away from our primary office, and he brings us in because he’s having DNS issues he can’t figure out&lt;/p&gt;&#xA;&lt;p&gt;Get onsite there and go over his setup – typical mess of a network closet with no brand consistency and mismatched patch cables, whatever. Otherwise looks good from a network perspective.&lt;/p&gt;&#xA;&lt;p&gt;However, he mentions that he has no access to the firewall since it’s owned by the ISP.&lt;/p&gt;&#xA;&lt;p&gt;Personally, I would have been on top of the ISP until they either gave me the ability to log into that thing, or had them put it in bridge mode and installed my own firewall. I do not like and do not trust any firewall that I do not control. Sorry, it&amp;rsquo;s just the paranoid sysadmin in me.&lt;/p&gt;&#xA;&lt;p&gt;So we finally start looking at the problem and the issue is that he keeps having to hardcode his DNS settings and he’s having weird WiFi connectivity issues. Everything points to DHCP not setting the DNS settings consistently… which made me suspect a rogue DHCP server.&lt;/p&gt;&#xA;&lt;p&gt;So I connect my laptop and run an ifconfig – and I see that DHCP is coming from some IP address 10.0.0.69. Knowing at this point he didn’t have access to the firewall, I asked him if that was one of his servers, he says no. I asked him where he WAS running DHCP, and was told it was on one of the domain controllers, but he didn’t remember which one. Red flag #1.&lt;/p&gt;&#xA;&lt;p&gt;I do an nmap scan to see if I can grab the vendor of the device that has that IP – it reports back that it’s from Axis Communications. Not being familiar with it, I asked about that vendor, and was told that that was the brand of their security cameras and NVR.&lt;/p&gt;&#xA;&lt;p&gt;I go okay, so there’s your problem right there. You have 2 DHCP servers, and it’s a question of which one responds first to the DHCPDISCOVER broadcast.&lt;/p&gt;&#xA;&lt;p&gt;So we go look at the cameras – no passwords for ANYTHING. we lucked into finding the password for the computer controlling them written on a piece of paper near the rack it was installed in.&lt;/p&gt;&#xA;&lt;p&gt;Eventually I figured out that one of the cameras had DHCP running, and we turned it off, but then we tried getting a new DHCP lease – it got one, but in the wrong subnet entirely.&lt;/p&gt;&#xA;&lt;p&gt;This of course, understandably confuses me. I noticed that the DHCP server is now 192.168.0.1, which isn’t even the right subnet. What the deuce?&lt;/p&gt;&#xA;&lt;p&gt;Ran another network scan, that IP has the same vendor as before, but a different MAC address now, so it’s a totally different device.&lt;/p&gt;&#xA;&lt;p&gt;Turns out, the appliance they have running their cameras? it’s 2 devices in one – a windows PC acting as the controller, and the built in switch which has its own DHCP server (and presumably it’s own operating system and mainboard).&lt;/p&gt;&#xA;&lt;p&gt;Of course, no password for that either, so I Googled and found it’s on a sticker on the bottom of the unit. I found the password, logged in and turned off DHCP. That’s it, right? We’ve fixed it?&lt;/p&gt;&#xA;&lt;p&gt;Tried to get a lease once more… nothing happens at all.&lt;/p&gt;&#xA;&lt;p&gt;Turns out… he was NOT running DHCP on the domain controller. Or anywhere except for this NVR, that had it turned on by default.&lt;/p&gt;&#xA;&lt;p&gt;I installed the DHCP role on one of the domain controllers and configured it with the proper settings, and a reasonable scope, along with primary and secondary DNS for their domain. Did another ipconfig /renew on one of their machines and… success! We got an IP in the correct subnet, and it is assigning the correct DNS servers to the client machines. WiFi works perfectly as well!&lt;/p&gt;&#xA;&lt;p&gt;How the network got into this state and stayed operational for as long as it did? Who can say? Miracles happen every day, right?&lt;/p&gt;&#xA;&lt;p&gt;Like they say, it’s always DNS. But sometimes it’s not DNS, sometimes it’s badly misconfigured DHCP.&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
