<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Build a Homelab</title><description>Homelab guides from a working 4-node mini PC cluster: Proxmox VE, LXC, local AI with Ollama, Grafana, Tailscale, Plex, Jellyfin, and the *arr stack.</description><link>https://peira.dev/</link><language>en-us</language><item><title>My Hash Check Passed on Two Empty Strings</title><link>https://peira.dev/articles/field-note-empty-hash-check/</link><guid isPermaLink="true">https://peira.dev/articles/field-note-empty-hash-check/</guid><description>A download check printed sha256 OK when both hashes were empty. How a shell setting caused it, a reproduction, and checks that fail loudly instead.</description><pubDate>Thu, 15 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A download-verify step in one of my scripts printed &lt;strong&gt;&lt;code&gt;sha256 OK&lt;/code&gt;&lt;/strong&gt; while comparing two empty strings. Nothing had been verified at all. The fix is simple and worth adding to every script you have: &lt;strong&gt;before comparing two hashes, prove each one is non-empty and the right shape (64 hex characters for SHA-256), or let &lt;code&gt;sha256sum -c&lt;/code&gt; do the comparing for you.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is another entry in my field notes, the running log of things that went sideways in my lab. Like &lt;a href=&quot;https://peira.dev/articles/field-note-silent-backup-failure/&quot;&gt;my backups that silently failed for a week&lt;/a&gt;, the scary part isn’t that something broke. It’s that the check designed to catch it said everything was fine.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;a-green-light-with-nothing-behind-it&quot;&gt;A green light with nothing behind it&lt;/h2&gt;
&lt;p&gt;It happened on a busy day of deploys, the same day I set up &lt;a href=&quot;https://peira.dev/articles/append-only-laptop-backup-restic/&quot;&gt;append-only laptop backups&lt;/a&gt;. One step downloaded a compressed release file and checked its SHA-256 hash against the published one before using it. A boring, sensible step. My script fetched both, compared them, and printed &lt;code&gt;sha256 OK&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Then the next step, decompressing the file with &lt;code&gt;bunzip2&lt;/code&gt;, failed loudly. That failure is the only reason I noticed anything was wrong.&lt;/p&gt;
&lt;p&gt;When I went back and looked, the check hadn’t compared two hashes. It had compared &lt;strong&gt;nothing with nothing&lt;/strong&gt;. The expected hash was an empty string, the actual hash was an empty string, and as far as &lt;code&gt;[ &amp;quot;$expected&amp;quot; = &amp;quot;$actual&amp;quot; ]&lt;/code&gt; is concerned, those are equal.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;how-both-sides-came-back-empty&quot;&gt;How both sides came back empty&lt;/h2&gt;
&lt;p&gt;The script ran with &lt;code&gt;set -u&lt;/code&gt;, a &lt;a href=&quot;https://www.gnu.org/software/bash/manual/bash.html#The-Set-Builtin&quot;&gt;bash option&lt;/a&gt; that makes using an unset variable an error instead of quietly treating it as empty. That’s usually a good habit. But the shell my scripts were running in loaded a saved environment file first, and that file referred to &lt;code&gt;$ZSH_VERSION&lt;/code&gt;, a variable that only exists in zsh. In bash, under &lt;code&gt;set -u&lt;/code&gt;, that’s an “unbound variable” error.&lt;/p&gt;
&lt;p&gt;The error happened inside each &lt;code&gt;$(...)&lt;/code&gt; command substitution. The substitution’s little subshell died before printing anything, so each one handed back an empty string, and the comparison carried on with what it got. In the reproduction below you can see the error lines appear, but they sit right above a confident &lt;code&gt;sha256 OK&lt;/code&gt;, which is exactly the line you want to read.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;reproducing-it-in-five-lines&quot;&gt;Reproducing it in five lines&lt;/h2&gt;
&lt;p&gt;I wanted to be sure I understood it, so I rebuilt the failure in a scratch directory. &lt;code&gt;SHELL_FLAVOR&lt;/code&gt; stands in for the variable my environment file referenced; it’s unset, just like &lt;code&gt;ZSH_VERSION&lt;/code&gt; was under bash.&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;verify-naive.sh: the shape of my original check&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
#!/usr/bin/env bash
set -u
expected=$(echo &amp;quot;$SHELL_FLAVOR&amp;quot; &amp;gt;/dev/null; awk &amp;#39;{print $1}&amp;#39; SHA256SUMS)
actual=$(echo &amp;quot;$SHELL_FLAVOR&amp;quot; &amp;gt;/dev/null; sha256sum release.bin | awk &amp;#39;{print $1}&amp;#39;)
if [ &amp;quot;$expected&amp;quot; = &amp;quot;$actual&amp;quot; ]; then echo &amp;quot;sha256 OK&amp;quot;; else echo &amp;quot;sha256 MISMATCH&amp;quot;; fi
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Running it (GNU bash 5.3)&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
$ bash verify-naive.sh; echo &amp;quot;exit=$?&amp;quot;
verify-naive.sh: line 3: SHELL_FLAVOR: unbound variable
verify-naive.sh: line 4: SHELL_FLAVOR: unbound variable
sha256 OK
exit=0
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;Two error lines, then a confident &lt;code&gt;sha256 OK&lt;/code&gt;, then &lt;strong&gt;exit code 0&lt;/strong&gt;. If this ran inside a larger automation, nothing downstream would know anything had gone wrong.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 760 240&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Two command substitutions that should produce a 64-character expected hash and a 64-character actual hash both fail and return empty strings. An equality test compares the two empty strings, finds them equal, and prints sha256 OK. A shape check that requires 64 hex characters on each side would have stopped it before the comparison.&quot;&gt;&lt;defs&gt;&lt;linearGradient id=&quot;hash-bg&quot; x1=&quot;0&quot; y1=&quot;0&quot; x2=&quot;0&quot; y2=&quot;1&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#1C2C1F&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#0E1912&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;/defs&gt;&lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;760&quot; height=&quot;240&quot; rx=&quot;12&quot; fill=&quot;url(#hash-bg)&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;6&quot; y=&quot;6&quot; width=&quot;748&quot; height=&quot;228&quot; fill=&quot;none&quot; stroke=&quot;#223224&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;24&quot; y=&quot;34&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;monospace&quot;&gt;Empty equals empty&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;58&quot; width=&quot;250&quot; height=&quot;52&quot; rx=&quot;8&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;40&quot; y=&quot;80&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-family=&quot;monospace&quot;&gt;expected=$(…)&lt;/text&gt;&lt;text x=&quot;40&quot; y=&quot;99&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;should be 64 hex chars&lt;/text&gt;&lt;text x=&quot;258&quot; y=&quot;90&quot; text-anchor=&quot;end&quot; fill=&quot;#C8564A&quot; font-size=&quot;15&quot; font-family=&quot;monospace&quot;&gt;&amp;quot;&amp;quot;&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;128&quot; width=&quot;250&quot; height=&quot;52&quot; rx=&quot;8&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;40&quot; y=&quot;150&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-family=&quot;monospace&quot;&gt;actual=$(…)&lt;/text&gt;&lt;text x=&quot;40&quot; y=&quot;169&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;should be 64 hex chars&lt;/text&gt;&lt;text x=&quot;258&quot; y=&quot;160&quot; text-anchor=&quot;end&quot; fill=&quot;#C8564A&quot; font-size=&quot;15&quot; font-family=&quot;monospace&quot;&gt;&amp;quot;&amp;quot;&lt;/text&gt;&lt;line x1=&quot;274&quot; y1=&quot;84&quot; x2=&quot;330&quot; y2=&quot;118&quot; stroke=&quot;#94A684&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;274&quot; y1=&quot;154&quot; x2=&quot;330&quot; y2=&quot;122&quot; stroke=&quot;#94A684&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;330&quot; y=&quot;94&quot; width=&quot;170&quot; height=&quot;52&quot; rx=&quot;8&quot; fill=&quot;#223224&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;415&quot; y=&quot;117&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-family=&quot;monospace&quot;&gt;[ &amp;quot;&amp;quot; = &amp;quot;&amp;quot; ]&lt;/text&gt;&lt;text x=&quot;415&quot; y=&quot;135&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;true&lt;/text&gt;&lt;line x1=&quot;500&quot; y1=&quot;120&quot; x2=&quot;556&quot; y2=&quot;120&quot; stroke=&quot;#94A684&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;556&quot; y=&quot;94&quot; width=&quot;180&quot; height=&quot;52&quot; rx=&quot;8&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;646&quot; y=&quot;117&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot; font-family=&quot;monospace&quot;&gt;sha256 OK&lt;/text&gt;&lt;text x=&quot;646&quot; y=&quot;135&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;exit 0, nothing checked&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;196&quot; width=&quot;712&quot; height=&quot;26&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#E0BD63&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;40&quot; y=&quot;213&quot; fill=&quot;#E0BD63&quot; font-size=&quot;11.5&quot;&gt;The fix: check that each side is 64 hex characters before comparing, or let sha256sum -c compare.&lt;/text&gt;&lt;text x=&quot;750&quot; y=&quot;232&quot; text-anchor=&quot;end&quot; font-size=&quot;10&quot; fill=&quot;#94A684&quot; opacity=&quot;0.6&quot; font-family=&quot;monospace&quot;&gt;peira.dev&lt;/text&gt;&lt;/svg&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;would-set--e-have-caught-it-only-sometimes&quot;&gt;Would &lt;code&gt;set -e&lt;/code&gt; have caught it? Only sometimes&lt;/h2&gt;
&lt;p&gt;My script only had &lt;code&gt;set -u&lt;/code&gt;. The obvious question is whether adding &lt;code&gt;set -e&lt;/code&gt;, “exit on error”, would have caught this. It depends on exactly how the script is written, which is a good reason not to lean on it.&lt;/p&gt;
&lt;p&gt;When the substitution is a plain assignment like &lt;code&gt;expected=$(...)&lt;/code&gt;, the &lt;a href=&quot;https://www.gnu.org/software/bash/manual/bash.html#Simple-Command-Expansion&quot;&gt;bash manual&lt;/a&gt; says the assignment’s exit status is the exit status of the last command substitution. So a failed substitution makes the assignment fail, and &lt;code&gt;set -e&lt;/code&gt; stops the script. In my test, changing the first line to &lt;code&gt;set -eu&lt;/code&gt; made the script exit with code &lt;strong&gt;1&lt;/strong&gt; on line 3, before it ever compared anything.&lt;/p&gt;
&lt;p&gt;But move the substitutions into the test itself, which is a perfectly normal way to write it, and the result flips:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Same check, substitutions inline, with set -eu&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
$ cat verify-e-inline.sh
#!/usr/bin/env bash
set -eu
if [ &amp;quot;$(echo &amp;quot;$SHELL_FLAVOR&amp;quot; &amp;gt;/dev/null; awk &amp;#39;{print $1}&amp;#39; SHA256SUMS)&amp;quot; = &amp;quot;$(echo &amp;quot;$SHELL_FLAVOR&amp;quot; &amp;gt;/dev/null; sha256sum release.bin | awk &amp;#39;{print $1}&amp;#39;)&amp;quot; ]; then echo &amp;quot;sha256 OK&amp;quot;; else echo &amp;quot;MISMATCH&amp;quot;; fi

$ bash verify-e-inline.sh; echo &amp;quot;exit=$?&amp;quot;
verify-e-inline.sh: line 3: SHELL_FLAVOR: unbound variable
verify-e-inline.sh: line 3: SHELL_FLAVOR: unbound variable
sha256 OK
exit=0
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;Same &lt;code&gt;set -eu&lt;/code&gt;, same failure, and it still prints &lt;code&gt;sha256 OK&lt;/code&gt; with exit 0. The failure has nowhere to stop the script: the test just receives two empty strings and compares them. A safety net that works or doesn’t depending on where you put the parentheses isn’t one I want to rely on for a security check.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;two-checks-that-fail-loudly-instead&quot;&gt;Two checks that fail loudly instead&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Option one: prove the shape before you compare.&lt;/strong&gt; A SHA-256 hash written in hex is always exactly 64 characters from &lt;code&gt;0-9a-f&lt;/code&gt;. Check that for both values first, and an empty string can’t sneak through. This is the exact script I tested, so it keeps the same two &lt;code&gt;SHELL_FLAVOR&lt;/code&gt; lines that simulate the broken environment:&lt;/p&gt;
&lt;pre class=&quot;astro-code gruvbox-dark-hard&quot; style=&quot;background-color:#1d2021;color:#ebdbb2;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word&quot; tabindex=&quot;0&quot; data-language=&quot;bash&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#928374;font-style:italic&quot;&gt;# verify-strict.sh: assert both hashes are real before comparing&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#928374;font-style:italic&quot;&gt;#!/usr/bin/env bash&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#FE8019&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;color:#D3869B&quot;&gt; -u&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#83A598&quot;&gt;expected&lt;/span&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;color:#FE8019&quot;&gt;echo&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#83A598&quot;&gt;$SHELL_FLAVOR&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt; &amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;/dev/null&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color:#FABD2F&quot;&gt; awk&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;{print $1}&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; SHA256SUMS&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#83A598&quot;&gt;actual&lt;/span&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;$(&lt;/span&gt;&lt;span style=&quot;color:#FE8019&quot;&gt;echo&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#83A598&quot;&gt;$SHELL_FLAVOR&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt; &amp;gt;&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;/dev/null&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color:#FABD2F&quot;&gt; sha256sum&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; release.bin&lt;/span&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color:#FABD2F&quot;&gt; awk&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;{print $1}&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#FB4934&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color:#83A598&quot;&gt; name&lt;/span&gt;&lt;span style=&quot;color:#FB4934&quot;&gt; in&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; expected&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; actual&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color:#FB4934&quot;&gt; do&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#83A598&quot;&gt;  value&lt;/span&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#83A598&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#FB4934&quot;&gt;  if&lt;/span&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt; !&lt;/span&gt;&lt;span style=&quot;color:#FE8019&quot;&gt; [[&lt;/span&gt;&lt;span style=&quot;color:#83A598&quot;&gt; $value&lt;/span&gt;&lt;span style=&quot;color:#FB4934&quot;&gt; =~&lt;/span&gt;&lt;span style=&quot;color:#EBDBB2&quot;&gt; ^&lt;/span&gt;&lt;span style=&quot;color:#FE8019&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#EBDBB2&quot;&gt;0-9a-f&lt;/span&gt;&lt;span style=&quot;color:#FE8019&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color:#EBDBB2&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color:#D3869B&quot;&gt;64&lt;/span&gt;&lt;span style=&quot;color:#EBDBB2&quot;&gt;}$ &lt;/span&gt;&lt;span style=&quot;color:#FE8019&quot;&gt;]]&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color:#FB4934&quot;&gt; then&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#FE8019&quot;&gt;    echo&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;FAIL: &lt;/span&gt;&lt;span style=&quot;color:#83A598&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; hash is not 64 hex characters (got &lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;${&lt;/span&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color:#83A598&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt; &amp;gt;&amp;amp;2&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#FE8019&quot;&gt;    exit&lt;/span&gt;&lt;span style=&quot;color:#D3869B&quot;&gt; 1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#FB4934&quot;&gt;  fi&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#FB4934&quot;&gt;done&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#FB4934&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color:#FE8019&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#83A598&quot;&gt;$expected&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#FB4934&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#83A598&quot;&gt;$actual&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#FE8019&quot;&gt; ]&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color:#FB4934&quot;&gt; then&lt;/span&gt;&lt;span style=&quot;color:#FE8019&quot;&gt; echo&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;sha256 OK&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color:#FB4934&quot;&gt; else&lt;/span&gt;&lt;span style=&quot;color:#FE8019&quot;&gt; echo&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;sha256 MISMATCH&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt; &amp;gt;&amp;amp;2&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color:#FE8019&quot;&gt; exit&lt;/span&gt;&lt;span style=&quot;color:#D3869B&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color:#FB4934&quot;&gt; fi&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I ran this version three ways. With &lt;code&gt;SHELL_FLAVOR&lt;/code&gt; unset (the broken environment), it stopped with &lt;code&gt;FAIL: expected hash is not 64 hex characters (got 0)&lt;/code&gt; and exit code &lt;strong&gt;1&lt;/strong&gt;. With &lt;code&gt;SHELL_FLAVOR&lt;/code&gt; set (a working environment), it printed &lt;code&gt;sha256 OK&lt;/code&gt;. And with &lt;code&gt;SHELL_FLAVOR&lt;/code&gt; set but the file’s contents changed, it printed &lt;code&gt;sha256 MISMATCH&lt;/code&gt; and exited &lt;strong&gt;1&lt;/strong&gt;. That’s the behaviour you want from a check: it can only say OK when it actually compared two real hashes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Option two: don’t compare strings yourself at all.&lt;/strong&gt; GNU &lt;a href=&quot;https://man7.org/linux/man-pages/man1/sha256sum.1.html&quot;&gt;&lt;code&gt;sha256sum -c&lt;/code&gt;&lt;/a&gt; reads a checksum file, hashes each file it lists, and does the comparison itself. It exits non-zero on a mismatch (&lt;code&gt;release.bin: FAILED&lt;/code&gt; when I tampered with the file), and it also refuses to treat an empty checksum file as a pass:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;sha256sum -c on a good file, then on an empty checksum file&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
$ sha256sum -c SHA256SUMS; echo &amp;quot;exit=$?&amp;quot;
release.bin: OK
exit=0

$ sha256sum -c empty.sums; echo &amp;quot;exit=$?&amp;quot;
sha256sum: empty.sums: no properly formatted checksum lines found
exit=1
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;That’s from GNU coreutils 9.12. When a project publishes a checksum file, this is the option I reach for now. &lt;a href=&quot;https://peira.dev/articles/ventoy-bootable-usb/&quot;&gt;My Ventoy guide&lt;/a&gt; already works this way, checking the download against the release’s own checksum list.&lt;/p&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Keep one loud step downstream&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;What actually saved me wasn’t the check. It was the next step, &lt;code&gt;bunzip2&lt;/code&gt;, failing loudly on a file it couldn’t use. Even with a good check in place, it’s worth having something after it that will crash straight into reality if a bad input gets through.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-rule-i-added-to-my-scripts&quot;&gt;The rule I added to my scripts&lt;/h2&gt;
&lt;p&gt;An equality check is only a verification if &lt;strong&gt;both sides are proven to be real values first&lt;/strong&gt;. Empty equals empty is a true statement, and a script will happily report it as success. So every hash comparison in my scripts now either asserts length and format before comparing, or hands the job to &lt;code&gt;sha256sum -c&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The same trap shows up anywhere a check compares two things that might both be missing: two empty file lists that “match”, a count of zero errors from a log that was never read. If a check can pass without looking at anything, sooner or later it will.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/field-note-silent-backup-failure/&quot;&gt;My Backups Silently Failed for a Week&lt;/a&gt; — another check that reported success while nothing was happening&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/append-only-laptop-backup-restic/&quot;&gt;Append-only laptop backups with restic on your NAS&lt;/a&gt; — the setup I was building when this check lied to me&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/ventoy-bootable-usb/&quot;&gt;Ventoy: One USB Drive for Every ISO You Own&lt;/a&gt; — a download verified with &lt;code&gt;sha256sum -c&lt;/code&gt; against the release’s checksum list&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/field-note-alert-egress/&quot;&gt;Three of My Four Nodes Couldn’t Send the Alert&lt;/a&gt; — a field note about an alarm that could never have gone off&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/field-note-email-flood/&quot;&gt;The Email Flood Wasn’t Where I Looked&lt;/a&gt; — the first field note, and another case of trusting the wrong signal&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/nas-app-data-backup-restic/&quot;&gt;What backs up your NAS apps? Append-only restic for their data&lt;/a&gt; — restore drills that compare checksums of the restored files&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>linux</category><category>security</category></item><item><title>Tailscale Stuck on a DERP Relay? Give Each Device Its Own Port</title><link>https://peira.dev/articles/tailscale-derp-relay-shared-nat-port/</link><guid isPermaLink="true">https://peira.dev/articles/tailscale-derp-relay-shared-nat-port/</guid><description>My office-to-NAS Tailscale path sat on a DERP relay for most of a month. The cause: five devices sharing the default port behind one router.</description><pubDate>Thu, 15 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;If several &lt;a href=&quot;https://tailscale.com&quot;&gt;Tailscale&lt;/a&gt; devices sit behind the same router and only one of them gets a direct connection, &lt;strong&gt;give each device its own &lt;code&gt;tailscaled&lt;/code&gt; UDP port instead of the default 41641.&lt;/strong&gt; My office router kept port 41641 for exactly one machine. The other four fell back to a relay, including the node that carries all my traffic home, whose path to my NAS was relayed for most of a month. Four new port numbers fixed it in an afternoon.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;a-month-of-relay-alerts&quot;&gt;A month of relay alerts&lt;/h2&gt;
&lt;p&gt;My lab lives in two places. The &lt;a href=&quot;https://www.proxmox.com/en/proxmox-virtual-environment&quot;&gt;Proxmox&lt;/a&gt; cluster (four nodes, &lt;code&gt;pvelab01&lt;/code&gt; to &lt;code&gt;pvelab04&lt;/code&gt;) and my laptop sit at my office, behind a router that belongs to the building’s IT team, not me. My NAS sits at home. Tailscale joins the two sites, and one node, &lt;code&gt;pvelab04&lt;/code&gt;, acts as the &lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;subnet router&lt;/a&gt; that every NAS-bound flow goes through: file shares, the nightly offsite backup sync, restores.&lt;/p&gt;
&lt;p&gt;I’d built a small monitor for exactly this situation. A script on &lt;code&gt;pvelab04&lt;/code&gt; asks Tailscale every minute whether the path to the NAS is direct and publishes the answer to &lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;Prometheus&lt;/a&gt; as a 1 or a 0. A Grafana alert fires if it sits at 0 for 30 minutes. And I’d been getting its emails.&lt;/p&gt;
&lt;p&gt;When I finally sat down with the history, this is what Prometheus had recorded for that path, one sample per day across the 29 days it held:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Share of each day the office-to-NAS path was direct&lt;/th&gt;
&lt;th&gt;Days&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;0%&lt;/strong&gt; (relayed all day)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;27&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;About 21%&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;About 61%&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;So for almost the entire retention window, every byte between my cluster and my NAS went through a relay. Nothing was &lt;em&gt;broken&lt;/em&gt;, which is why I’d let the emails pile up. That’s the trap with relays.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-derp-is-and-why-its-a-fallback&quot;&gt;What DERP is, and why it’s a fallback&lt;/h2&gt;
&lt;p&gt;Tailscale’s preferred path is a direct, encrypted &lt;a href=&quot;https://www.wireguard.com/&quot;&gt;WireGuard&lt;/a&gt; tunnel between two devices. To build one across two routers, each side has to learn the public address and port the other can be reached on, then both send packets at the same moment so each router lets the other’s packets in. Tailscale’s own write-up, &lt;a href=&quot;https://tailscale.com/blog/how-nat-traversal-works&quot;&gt;How NAT traversal works&lt;/a&gt;, walks through it, and it’s honest about the limit: if one side can’t predict which outside port to send to, the direct path can’t be built.&lt;/p&gt;
&lt;p&gt;When that happens, Tailscale uses a &lt;a href=&quot;https://tailscale.com/kb/1232/derp-servers&quot;&gt;DERP relay server&lt;/a&gt;. The docs describe it as a last resort for when other connection types aren’t possible. Your traffic is still encrypted end to end; the relay just forwards packets it can’t read. It works, which is the problem. Everything keeps running, only slower and with more latency, and nothing tells you unless you go looking.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 760 330&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Before: five office devices all use Tailscale&apos;s default port 41641 behind one office router. The router keeps 41641 on the outside for only one of them, pvelab01, which connects directly to the NAS at home. The other four get different outside ports and fall back to a DERP relay. After: each device listens on its own port, 41641 to 41645, the router keeps each one, and all five connect directly.&quot;&gt;&lt;defs&gt;&lt;linearGradient id=&quot;derp-bg&quot; x1=&quot;0&quot; y1=&quot;0&quot; x2=&quot;0&quot; y2=&quot;1&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#1C2C1F&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#0E1912&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;/defs&gt;&lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;760&quot; height=&quot;330&quot; rx=&quot;12&quot; fill=&quot;url(#derp-bg)&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;6&quot; y=&quot;6&quot; width=&quot;748&quot; height=&quot;318&quot; fill=&quot;none&quot; stroke=&quot;#223224&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;24&quot; y=&quot;34&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;monospace&quot;&gt;Same router, same default port, one winner&lt;/text&gt;&lt;text x=&quot;24&quot; y=&quot;66&quot; fill=&quot;#E0BD63&quot; font-size=&quot;11.5&quot; font-weight=&quot;700&quot;&gt;BEFORE: EVERYONE ON 41641&lt;/text&gt;&lt;text x=&quot;400&quot; y=&quot;66&quot; fill=&quot;#E0BD63&quot; font-size=&quot;11.5&quot; font-weight=&quot;700&quot;&gt;AFTER: ONE PORT EACH&lt;/text&gt;&lt;line x1=&quot;380&quot; y1=&quot;54&quot; x2=&quot;380&quot; y2=&quot;306&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot; stroke-dasharray=&quot;4 4&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;24&quot; y=&quot;84&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;34&quot; y=&quot;103&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;pvelab01&lt;/text&gt;&lt;text x=&quot;140&quot; y=&quot;103&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;monospace&quot;&gt;:41641&lt;/text&gt;&lt;line x1=&quot;148&quot; y1=&quot;99&quot; x2=&quot;236&quot; y2=&quot;99&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;236&quot; y=&quot;84&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;298&quot; y=&quot;103&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;direct&lt;/text&gt;&lt;rect x=&quot;400&quot; y=&quot;84&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;410&quot; y=&quot;103&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;pvelab01&lt;/text&gt;&lt;text x=&quot;516&quot; y=&quot;103&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;monospace&quot;&gt;:41641&lt;/text&gt;&lt;line x1=&quot;524&quot; y1=&quot;99&quot; x2=&quot;612&quot; y2=&quot;99&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;612&quot; y=&quot;84&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;674&quot; y=&quot;103&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;direct&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;124&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;34&quot; y=&quot;143&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;pvelab02&lt;/text&gt;&lt;text x=&quot;140&quot; y=&quot;143&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;monospace&quot;&gt;:41641&lt;/text&gt;&lt;line x1=&quot;148&quot; y1=&quot;139&quot; x2=&quot;236&quot; y2=&quot;139&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;236&quot; y=&quot;124&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;298&quot; y=&quot;143&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;via DERP&lt;/text&gt;&lt;rect x=&quot;400&quot; y=&quot;124&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;410&quot; y=&quot;143&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;pvelab02&lt;/text&gt;&lt;text x=&quot;516&quot; y=&quot;143&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;monospace&quot;&gt;:41642&lt;/text&gt;&lt;line x1=&quot;524&quot; y1=&quot;139&quot; x2=&quot;612&quot; y2=&quot;139&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;612&quot; y=&quot;124&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;674&quot; y=&quot;143&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;direct&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;164&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;34&quot; y=&quot;183&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;pvelab03&lt;/text&gt;&lt;text x=&quot;140&quot; y=&quot;183&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;monospace&quot;&gt;:41641&lt;/text&gt;&lt;line x1=&quot;148&quot; y1=&quot;179&quot; x2=&quot;236&quot; y2=&quot;179&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;236&quot; y=&quot;164&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;298&quot; y=&quot;183&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;via DERP&lt;/text&gt;&lt;rect x=&quot;400&quot; y=&quot;164&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;410&quot; y=&quot;183&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;pvelab03&lt;/text&gt;&lt;text x=&quot;516&quot; y=&quot;183&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;monospace&quot;&gt;:41643&lt;/text&gt;&lt;line x1=&quot;524&quot; y1=&quot;179&quot; x2=&quot;612&quot; y2=&quot;179&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;612&quot; y=&quot;164&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;674&quot; y=&quot;183&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;direct&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;204&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;34&quot; y=&quot;223&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;pvelab04&lt;/text&gt;&lt;text x=&quot;140&quot; y=&quot;223&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;monospace&quot;&gt;:41641&lt;/text&gt;&lt;line x1=&quot;148&quot; y1=&quot;219&quot; x2=&quot;236&quot; y2=&quot;219&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;236&quot; y=&quot;204&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;298&quot; y=&quot;223&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;via DERP&lt;/text&gt;&lt;rect x=&quot;400&quot; y=&quot;204&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;410&quot; y=&quot;223&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;pvelab04&lt;/text&gt;&lt;text x=&quot;516&quot; y=&quot;223&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;monospace&quot;&gt;:41644&lt;/text&gt;&lt;line x1=&quot;524&quot; y1=&quot;219&quot; x2=&quot;612&quot; y2=&quot;219&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;612&quot; y=&quot;204&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;674&quot; y=&quot;223&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;direct&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;244&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;34&quot; y=&quot;263&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;laptop&lt;/text&gt;&lt;text x=&quot;140&quot; y=&quot;263&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;monospace&quot;&gt;:41641&lt;/text&gt;&lt;line x1=&quot;148&quot; y1=&quot;259&quot; x2=&quot;236&quot; y2=&quot;259&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;236&quot; y=&quot;244&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;298&quot; y=&quot;263&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;via DERP&lt;/text&gt;&lt;rect x=&quot;400&quot; y=&quot;244&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;410&quot; y=&quot;263&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;laptop&lt;/text&gt;&lt;text x=&quot;516&quot; y=&quot;263&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;monospace&quot;&gt;:41645&lt;/text&gt;&lt;line x1=&quot;524&quot; y1=&quot;259&quot; x2=&quot;612&quot; y2=&quot;259&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;612&quot; y=&quot;244&quot; width=&quot;124&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;674&quot; y=&quot;263&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;direct&lt;/text&gt;&lt;text x=&quot;24&quot; y=&quot;300&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;The router keeps 41641 for one device. The rest get other ports.&lt;/text&gt;&lt;text x=&quot;400&quot; y=&quot;300&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;Each port stays as it is, so every path goes direct.&lt;/text&gt;&lt;text x=&quot;750&quot; y=&quot;322&quot; text-anchor=&quot;end&quot; font-size=&quot;10&quot; fill=&quot;#94A684&quot; opacity=&quot;0.6&quot; font-family=&quot;monospace&quot;&gt;peira.dev&lt;/text&gt;&lt;/svg&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-pattern-one-winner-four-losers&quot;&gt;The pattern: one winner, four losers&lt;/h2&gt;
&lt;p&gt;The clue was in &lt;em&gt;who&lt;/em&gt; was direct. When I compared the office devices, &lt;code&gt;pvelab01&lt;/code&gt; was reaching the outside world from the office’s public address on port &lt;strong&gt;41641&lt;/strong&gt;, and its path to the NAS was direct. Every other office device was showing up on some other, seemingly random port, and every one of them was relayed. The home side was fine: the NAS was reachable on its usual 41641 the whole time.&lt;/p&gt;
&lt;p&gt;Tailscale listens on &lt;a href=&quot;https://tailscale.com/kb/1082/firewall-ports&quot;&gt;UDP port 41641 by default&lt;/a&gt;, and every one of my office devices was using that default. When a packet leaves through the office router, the router rewrites its source to the office’s public address and picks an outside port. In my office, the router kept a device’s own port number on the outside, but it can only hand any one outside port to one device at a time. &lt;code&gt;pvelab01&lt;/code&gt; had claimed 41641 first. Everyone else asking for 41641 got something else, and from home those other ports never worked for a direct connection.&lt;/p&gt;
&lt;p&gt;I can’t see inside a router I don’t manage, so I’m describing what it did, not how it’s built. But the behaviour was consistent, and it pointed straight at the fix: stop making five devices fight over one port.&lt;/p&gt;
&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Why not just forward a port?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Tailscale’s firewall page notes that allowing inbound traffic to the UDP port one device listens on can help it go direct. That needs control of a router. I don’t have it at the office, and at home I couldn’t set up a forward for the NAS because it doesn’t show up in my ISP router’s device list. Unique ports needed nothing from either router.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-fix-five-devices-five-ports&quot;&gt;The fix: five devices, five ports&lt;/h2&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The node names (&lt;code&gt;pvelab01&lt;/code&gt; to &lt;code&gt;pvelab04&lt;/code&gt;), the port numbers 41642 to 41645 and the peer name &lt;code&gt;nas&lt;/code&gt; are mine. Pick any free UDP ports you like, one per device behind the same router, and use your own device names. &lt;code&gt;203.0.113.10&lt;/code&gt; below stands in for an office’s public address and &lt;code&gt;198.51.100.20&lt;/code&gt; for a home one. If a value looks specific to one machine, it’s a placeholder to change, not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I left &lt;code&gt;pvelab01&lt;/code&gt; on 41641, since it already held it, and gave everyone else the next number up:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Device&lt;/th&gt;
&lt;th&gt;Port&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pvelab01&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;41641&lt;/strong&gt; (unchanged)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pvelab02&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;41642&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pvelab03&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;41643&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pvelab04&lt;/code&gt; (the subnet router)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;41644&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;laptop&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;41645&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;On a Debian or Ubuntu machine with Tailscale’s package installed, the port lives in &lt;code&gt;/etc/default/tailscaled&lt;/code&gt;. The systemd service reads that file and starts &lt;code&gt;tailscaled&lt;/code&gt; with &lt;code&gt;--port=$PORT&lt;/code&gt;, which you can confirm on your own machine with &lt;code&gt;systemctl cat tailscaled&lt;/code&gt;. Tailscale’s firewall page mentions the &lt;code&gt;FLAGS&lt;/code&gt; variable in the same file as another place to set it; on my install, changing &lt;code&gt;PORT&lt;/code&gt; is the direct route.&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;/etc/default/tailscaled on pvelab02 (only the PORT line changes)&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
PORT=&amp;quot;41642&amp;quot;
FLAGS=&amp;quot;&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Apply it and confirm the path&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
systemctl restart tailscaled
tailscale ping nas
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Don&amp;#39;t restart the tunnel you&amp;#39;re standing on&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Restarting &lt;code&gt;tailscaled&lt;/code&gt; drops that device’s tunnel for a few seconds. If your SSH session reaches the device through that same tunnel, or through a subnet route it provides, you’ll cut yourself off mid-change. My laptop reaches the office LAN through &lt;code&gt;pvelab04&lt;/code&gt;’s subnet route, so I restarted every node from &lt;code&gt;pvelab01&lt;/code&gt; over the office LAN instead of from the laptop.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;For my laptop I wrote a small script that backs up the file, sets the port, restarts the service and pings the NAS. The first run printed &lt;code&gt;unexpected state: NoState&lt;/code&gt;: the ping had raced &lt;code&gt;tailscaled&lt;/code&gt; coming back up. The script now waits until &lt;code&gt;tailscale status&lt;/code&gt; reports the backend as running before it pings. If you script this, add the same wait.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;how-i-know-it-worked&quot;&gt;How I know it worked&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;tailscale ping&lt;/code&gt; is the quickest check. On a direct path it answers with an address and port; on a relayed one it answers &lt;code&gt;via DERP(...)&lt;/code&gt; with the relay’s city code. Here’s &lt;code&gt;pvelab01&lt;/code&gt; today, with the addresses swapped for documentation ones:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Direct: an address and a port, not DERP&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
$ tailscale ping nas
pong from nas (100.64.0.0) via 198.51.100.20:41641 in 48ms
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;That &lt;code&gt;100.64.0.0&lt;/code&gt; is a stand-in for the NAS’s tailnet address, which will be somewhere in that range on your tailnet. From the NAS’s side, every node now shows up from the office’s public address on &lt;em&gt;its own&lt;/em&gt; port (&lt;code&gt;203.0.113.10:41642&lt;/code&gt;, &lt;code&gt;:41643&lt;/code&gt; and so on), all direct, and the laptop is direct too.&lt;/p&gt;
&lt;p&gt;The metric agreed. The office-to-NAS path flipped from 0 to &lt;strong&gt;1&lt;/strong&gt; at about 10:00 that morning and read 1 in every 15-minute sample through the rest of the day. The relay alert has gone quiet.&lt;/p&gt;
&lt;p&gt;What I haven’t done yet is compare the nightly backup and sync durations before and after, so I’m not going to claim a speed-up here. The point of this fix was getting off a detour I didn’t choose. Whether that detour was costing me minutes or hours each night is a separate measurement, and it’s one I’d rather make than guess.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-rule-i-keep-now&quot;&gt;The rule I keep now&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Every Tailscale device behind the same router gets its own port.&lt;/strong&gt; It’s written into my lab notes next to the port table above, so the next device I add at the office gets 41646 instead of quietly taking the default.&lt;/p&gt;
&lt;p&gt;And if the relay alert ever fires again, the first thing I’ll check is whether two devices behind one router have ended up sharing a port. A direct-or-relayed metric with an alert on it is what turned this from “everything works, just a bit slow” into something I could actually see. If you run Tailscale between sites, it’s worth having.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;Tailscale Subnet Router: Remote Homelab Access Without Port Forwarding&lt;/a&gt; — the subnet router whose path to the NAS was stuck on a relay&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/wireguard-vs-tailscale-vs-openvpn/&quot;&gt;WireGuard vs Tailscale vs OpenVPN: Which VPN for Your Homelab?&lt;/a&gt; — where Tailscale’s NAT traversal and DERP fallback fit among the options&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-offsite-backup-wireguard-buffer/&quot;&gt;Why a 208 KB Buffer Throttled My Tailscale Backups&lt;/a&gt; — a different slowdown on the same office-to-home path&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router-three-firewalls/&quot;&gt;The Packet Three Firewalls Ate: Debugging a Tailscale Subnet Route&lt;/a&gt; — another Tailscale problem across the same two sites, found one variable at a time&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/common-homelab-network-issues/&quot;&gt;Green Lights, No Packets: Common Homelab Network Issues&lt;/a&gt; — more ways a network keeps working while quietly doing the wrong thing&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;What Is Prometheus? Homelab Metrics and Alerts Explained&lt;/a&gt; — the metrics side of the direct-or-relayed alert&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-exit-node/&quot;&gt;Tailscale Exit Node: Route All Traffic Through Your Homelab&lt;/a&gt; — the other big Tailscale feature in a homelab&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>networking</category><category>tailscale</category></item><item><title>The Packet Three Firewalls Ate: Debugging a Tailscale Subnet Route</title><link>https://peira.dev/articles/tailscale-subnet-router-three-firewalls/</link><guid isPermaLink="true">https://peira.dev/articles/tailscale-subnet-router-three-firewalls/</guid><description>A container behind my Tailscale subnet router couldn&apos;t reach a device across the tailnet. Three separate layers were dropping it. Here is how I found each one.</description><pubDate>Thu, 15 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When a container behind a &lt;a href=&quot;https://tailscale.com&quot;&gt;Tailscale&lt;/a&gt; subnet router can’t reach a device across the tailnet but the router itself can, check three layers in this order: &lt;strong&gt;the container’s route, the tailnet access policy, and the destination’s own firewall.&lt;/strong&gt; My Prometheus scrape of Home Assistant was blocked by all three at once, and each one hid the next.&lt;/p&gt;
&lt;p&gt;This is the debugging story I promised at the end of &lt;a href=&quot;https://peira.dev/articles/home-assistant-container-nas/&quot;&gt;my Home Assistant on a NAS guide&lt;/a&gt;. That post is the happy path. This one is the evening it took to get a single metrics scrape across two sites.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;two-sites-one-scrape-up--0&quot;&gt;Two sites, one scrape, &lt;code&gt;up == 0&lt;/code&gt;&lt;/h2&gt;
&lt;p&gt;My lab is split across two buildings. The &lt;a href=&quot;https://www.proxmox.com/en/proxmox-virtual-environment&quot;&gt;Proxmox&lt;/a&gt; cluster lives at my office, and my NAS lives at home, where Home Assistant runs because that’s where the smart devices are. Tailscale joins the two sites. One cluster node acts as a &lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;subnet router&lt;/a&gt;: it advertises the office LAN to the tailnet, so my laptop can reach every container without each one running Tailscale itself.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;Prometheus&lt;/a&gt; runs in a container on that cluster. I added a scrape job for Home Assistant’s &lt;code&gt;/api/prometheus&lt;/code&gt; endpoint, reloaded, and got the least helpful result there is: the target was down, and the error was a bare timeout. No “connection refused”, no “401”. Just nothing coming back.&lt;/p&gt;
&lt;p&gt;A timeout tells you that something along the way dropped the packet without replying. It doesn’t tell you &lt;em&gt;which&lt;/em&gt; something, and in my setup there turned out to be three candidates.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 760 300&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;A packet from the Prometheus container at the office must pass three walls to reach Home Assistant on the NAS at home. Wall one is the container&apos;s routing table, which had no route to the tailnet. Wall two is the tailnet access policy on the NAS&apos;s Tailscale, which dropped the container&apos;s LAN source address. Wall three is the NAS&apos;s own allowlist firewall.&quot;&gt;&lt;defs&gt;&lt;linearGradient id=&quot;tfw-bg&quot; x1=&quot;0&quot; y1=&quot;0&quot; x2=&quot;0&quot; y2=&quot;1&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#1C2C1F&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#0E1912&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;/defs&gt;&lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;760&quot; height=&quot;300&quot; rx=&quot;12&quot; fill=&quot;url(#tfw-bg)&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;6&quot; y=&quot;6&quot; width=&quot;748&quot; height=&quot;288&quot; fill=&quot;none&quot; stroke=&quot;#223224&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;24&quot; y=&quot;34&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;monospace&quot;&gt;One scrape, three places to die quietly&lt;/text&gt;&lt;text x=&quot;24&quot; y=&quot;66&quot; fill=&quot;#E0BD63&quot; font-size=&quot;11.5&quot; font-weight=&quot;700&quot;&gt;OFFICE&lt;/text&gt;&lt;text x=&quot;736&quot; y=&quot;66&quot; text-anchor=&quot;end&quot; fill=&quot;#E0BD63&quot; font-size=&quot;11.5&quot; font-weight=&quot;700&quot;&gt;HOME&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;84&quot; width=&quot;128&quot; height=&quot;64&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;88&quot; y=&quot;111&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-weight=&quot;700&quot;&gt;Prometheus&lt;/text&gt;&lt;text x=&quot;88&quot; y=&quot;131&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;10.0.0.68&lt;/text&gt;&lt;rect x=&quot;226&quot; y=&quot;84&quot; width=&quot;128&quot; height=&quot;64&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;290&quot; y=&quot;111&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-weight=&quot;700&quot;&gt;Subnet router&lt;/text&gt;&lt;text x=&quot;290&quot; y=&quot;131&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;10.0.0.73&lt;/text&gt;&lt;rect x=&quot;608&quot; y=&quot;84&quot; width=&quot;128&quot; height=&quot;64&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;672&quot; y=&quot;111&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-weight=&quot;700&quot;&gt;Home Assistant&lt;/text&gt;&lt;text x=&quot;672&quot; y=&quot;131&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;on the NAS :8123&lt;/text&gt;&lt;line x1=&quot;152&quot; y1=&quot;116&quot; x2=&quot;226&quot; y2=&quot;116&quot; stroke=&quot;#94A684&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;5 4&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;354&quot; y1=&quot;116&quot; x2=&quot;608&quot; y2=&quot;116&quot; stroke=&quot;#94A684&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;5 4&quot;&gt;&lt;/line&gt;&lt;text x=&quot;446&quot; y=&quot;106&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;tailnet tunnel&lt;/text&gt;&lt;rect x=&quot;183&quot; y=&quot;74&quot; width=&quot;8&quot; height=&quot;84&quot; rx=&quot;2&quot; fill=&quot;#C8564A&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;560&quot; y=&quot;74&quot; width=&quot;8&quot; height=&quot;84&quot; rx=&quot;2&quot; fill=&quot;#C8564A&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;584&quot; y=&quot;74&quot; width=&quot;8&quot; height=&quot;84&quot; rx=&quot;2&quot; fill=&quot;#C8564A&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;564&quot; y=&quot;172&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;10.5&quot; font-family=&quot;monospace&quot;&gt;2&lt;/text&gt;&lt;text x=&quot;588&quot; y=&quot;172&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;10.5&quot; font-family=&quot;monospace&quot;&gt;3&lt;/text&gt;&lt;text x=&quot;187&quot; y=&quot;172&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;10.5&quot; font-family=&quot;monospace&quot;&gt;1&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;186&quot; width=&quot;224&quot; height=&quot;84&quot; rx=&quot;8&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;46&quot; cy=&quot;208&quot; r=&quot;11&quot; fill=&quot;#C8564A&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;46&quot; y=&quot;212&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-weight=&quot;700&quot;&gt;1&lt;/text&gt;&lt;text x=&quot;66&quot; y=&quot;212&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-weight=&quot;700&quot;&gt;No route&lt;/text&gt;&lt;text x=&quot;38&quot; y=&quot;238&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;The container sent tailnet&lt;/text&gt;&lt;text x=&quot;38&quot; y=&quot;256&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;traffic to the office gateway&lt;/text&gt;&lt;rect x=&quot;268&quot; y=&quot;186&quot; width=&quot;224&quot; height=&quot;84&quot; rx=&quot;8&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;290&quot; cy=&quot;208&quot; r=&quot;11&quot; fill=&quot;#C8564A&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;290&quot; y=&quot;212&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-weight=&quot;700&quot;&gt;2&lt;/text&gt;&lt;text x=&quot;310&quot; y=&quot;212&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-weight=&quot;700&quot;&gt;Tailnet policy&lt;/text&gt;&lt;text x=&quot;282&quot; y=&quot;238&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;A LAN source address matched&lt;/text&gt;&lt;text x=&quot;282&quot; y=&quot;256&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;no grant, so it was dropped&lt;/text&gt;&lt;rect x=&quot;512&quot; y=&quot;186&quot; width=&quot;224&quot; height=&quot;84&quot; rx=&quot;8&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;534&quot; cy=&quot;208&quot; r=&quot;11&quot; fill=&quot;#C8564A&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;534&quot; y=&quot;212&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-weight=&quot;700&quot;&gt;3&lt;/text&gt;&lt;text x=&quot;554&quot; y=&quot;212&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-weight=&quot;700&quot;&gt;NAS allowlist&lt;/text&gt;&lt;text x=&quot;526&quot; y=&quot;238&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;The NAS only answers&lt;/text&gt;&lt;text x=&quot;526&quot; y=&quot;256&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;addresses it was told to trust&lt;/text&gt;&lt;text x=&quot;750&quot; y=&quot;292&quot; text-anchor=&quot;end&quot; font-size=&quot;10&quot; fill=&quot;#94A684&quot; opacity=&quot;0.6&quot; font-family=&quot;monospace&quot;&gt;peira.dev&lt;/text&gt;&lt;/svg&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Every address here is an example. &lt;code&gt;10.0.0.68&lt;/code&gt; stands for your Prometheus container, &lt;code&gt;10.0.0.73&lt;/code&gt; for the LAN address of your subnet router, and &lt;code&gt;NAS_TAILSCALE_IP&lt;/code&gt; for the tailnet address of the device you’re trying to reach (yours will be in the &lt;code&gt;100.64.0.0/10&lt;/code&gt; range). Port &lt;code&gt;8123&lt;/code&gt; is Home Assistant’s default; use whatever port your service listens on. If a value looks specific to one machine, it’s a placeholder to change, not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;wall-one-the-container-had-nowhere-to-send-it&quot;&gt;Wall one: the container had nowhere to send it&lt;/h2&gt;
&lt;p&gt;The first thing I checked was the obvious one: does the container even know where tailnet addresses live? It didn’t.&lt;/p&gt;
&lt;p&gt;Here’s the part that’s easy to miss. Every one of my cluster nodes runs Tailscale itself, so from any node the NAS was reachable. But a container doesn’t share its host’s Tailscale connection or its routing table. It has its own network stack and its own default gateway, which in my case was the office router. The office router has no idea that &lt;code&gt;100.x&lt;/code&gt; tailnet addresses live behind one of my nodes, so the packets never got anywhere near the tunnel.&lt;/p&gt;
&lt;p&gt;The fix is one route inside the container, pointing the NAS’s tailnet address at the subnet router:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Inside the container: send the NAS&amp;#39;s tailnet address via the subnet router&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
ip route replace NAS_TAILSCALE_IP/32 via 10.0.0.73
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;&lt;code&gt;ip route replace&lt;/code&gt; adds the route, or updates it if it already exists, so it’s safe to run more than once. That matters for the next step.&lt;/p&gt;
&lt;p&gt;A route typed at a shell disappears at the next reboot, so it needs to live somewhere permanent. On a normal Debian box I’d drop a file in &lt;code&gt;/etc/network/interfaces.d/&lt;/code&gt;. Inside a Proxmox container I didn’t want to. The &lt;a href=&quot;https://pve.proxmox.com/wiki/Linux_Container&quot;&gt;Proxmox container documentation&lt;/a&gt; explains that Proxmox passes the network setup into the container and modifies some of the guest’s files itself, so the container’s own config is the source of truth, not files inside it. Instead I gave the route its own tiny systemd service:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;/etc/systemd/system/nas-tailscale-route.service (inside the container)&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
[Unit]
Description=Route to the NAS tailnet IP via the subnet router
After=network-online.target
Wants=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/sbin/ip route replace NAS_TAILSCALE_IP/32 via 10.0.0.73
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Enable it so it runs at every boot&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
systemctl daemon-reload
systemctl enable --now nas-tailscale-route.service
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;&lt;code&gt;Type=oneshot&lt;/code&gt; with &lt;code&gt;RemainAfterExit=yes&lt;/code&gt; means the service runs the command once and then shows as active, which is exactly what a “set this up at boot” job should look like. If you want more background on how container networking fits together, my &lt;a href=&quot;https://peira.dev/articles/proxmox-lxc-networking/&quot;&gt;Proxmox LXC networking guide&lt;/a&gt; covers bridges, gateways and static addresses.&lt;/p&gt;
&lt;p&gt;I reloaded Prometheus, feeling pretty good about myself. Still a timeout.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;a-detour-im-not-proud-of&quot;&gt;A detour I’m not proud of&lt;/h2&gt;
&lt;p&gt;With the route fixed and the scrape still dead, I guessed. My NAS runs &lt;a href=&quot;https://www.asustor.com/en/online/College_topic?topic=311&quot;&gt;ADM Defender&lt;/a&gt;, Asustor’s built-in allowlist and blocklist firewall, and I thought it might be blocking the office address. So I added the container’s address to its allowlist.&lt;/p&gt;
&lt;p&gt;Nothing changed. I’m telling you this because it’s the most common mistake in network debugging: changing something because it &lt;em&gt;might&lt;/em&gt; be the problem, with no test that would tell you whether it is. I’d have been better off proving where the packet died first. That’s what the next test did.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-test-that-split-it-open-same-box-different-source&quot;&gt;The test that split it open: same box, different source&lt;/h2&gt;
&lt;p&gt;On the subnet router itself, I ran the same request twice. The only thing I changed was the source address.&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;On the subnet router: same destination, two different sources&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
# 1. Let the router pick its source. It uses its own tailnet address.
curl -s -o /dev/null -w &amp;#39;%{http_code}\n&amp;#39; --max-time 5 http://NAS_TAILSCALE_IP:8123/api/prometheus

# 2. Force the source to be the router&amp;#39;s LAN address.
curl -s -o /dev/null -w &amp;#39;%{http_code}\n&amp;#39; --max-time 5 --interface 10.0.0.73 http://NAS_TAILSCALE_IP:8123/api/prometheus
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;The first request came back &lt;strong&gt;401&lt;/strong&gt;, which is good news: it reached Home Assistant, and Home Assistant wanted a token. The second one timed out. Curl’s &lt;a href=&quot;https://curl.se/docs/manpage.html&quot;&gt;&lt;code&gt;--interface&lt;/code&gt; option&lt;/a&gt; accepts an IP address and sends the request from it, so the two requests used the same machine, the same tunnel and the same destination. Only the source address differed.&lt;/p&gt;
&lt;p&gt;That one comparison ruled out the whole network path. If the tunnel were broken, both requests would fail. If Home Assistant were down, both would fail. When only the source address changes the outcome, something is filtering on the source.&lt;/p&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Keep this test in your back pocket&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Any time traffic times out across a tunnel, look for a way to send the same request with two different source addresses. A 401 or a 404 is a &lt;em&gt;reply&lt;/em&gt;: it proves the path works. A timeout on only one source points straight at a filter.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;wall-two-the-tailnet-policy-didnt-know-that-address-existed&quot;&gt;Wall two: the tailnet policy didn’t know that address existed&lt;/h2&gt;
&lt;p&gt;Tailscale’s access policy is &lt;a href=&quot;https://tailscale.com/kb/1337/policy-syntax&quot;&gt;deny by default&lt;/a&gt;: traffic is blocked unless a rule allows it. And per Tailscale’s &lt;a href=&quot;https://tailscale.com/kb/1018/acls&quot;&gt;access control docs&lt;/a&gt;, each device enforces the rules for its own incoming connections. My policy’s main rule let devices owned by members of my tailnet reach everything, which is what &lt;code&gt;autogroup:member&lt;/code&gt; means in Tailscale’s terms. My laptop, my phone and the cluster nodes all fall under that.&lt;/p&gt;
&lt;p&gt;A packet from my Prometheus container isn’t from any of those. It’s from a plain LAN address that travelled &lt;em&gt;through&lt;/em&gt; the subnet router. In my lab it arrived at the NAS still carrying the container’s LAN address, and nothing in my policy mentioned that address. So the NAS’s Tailscale dropped it quietly, as designed, without sending anything back. That’s the timeout.&lt;/p&gt;
&lt;p&gt;This also explained the earlier mystery of why the nodes had always worked. Each node talks to the NAS through its &lt;em&gt;own&lt;/em&gt; Tailscale connection, using its own tailnet address as the source, so node traffic matched the member rule and never hit this wall.&lt;/p&gt;
&lt;p&gt;The fix doesn’t need opening anything broadly. Tailscale’s &lt;a href=&quot;https://tailscale.com/kb/1538/grants-syntax&quot;&gt;grants&lt;/a&gt; accept single IP addresses as source and destination, plus a protocol and port, so I wrote the narrowest rule that would work: one container, one device, one port.&lt;/p&gt;
&lt;pre class=&quot;astro-code gruvbox-dark-hard&quot; style=&quot;background-color:#1d2021;color:#ebdbb2;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word&quot; tabindex=&quot;0&quot; data-language=&quot;json&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A89984&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A89984&quot;&gt;  &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#689D6A&quot;&gt;grants&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A89984&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A89984&quot;&gt;      &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#689D6A&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#83A598&quot;&gt;10.0.0.68&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;],&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A89984&quot;&gt;      &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#689D6A&quot;&gt;dst&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#83A598&quot;&gt;NAS_TAILSCALE_IP&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;],&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A89984&quot;&gt;      &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#689D6A&quot;&gt;ip&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;  [&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#83A598&quot;&gt;tcp:8123&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A89984&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A89984&quot;&gt;  ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A89984&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That snippet shows only the new entry. In the real policy file it sits alongside my existing rules. I made the change through the Tailscale API rather than the admin console, and had Tailscale validate the edited policy before saving it, so a typo couldn’t lock me out of anything. Either route works.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Resist the urge to allow the whole subnet&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;It’s tempting to grant the entire office LAN access to the NAS and move on. That would let every container and every device on that network talk to your NAS. One address, one destination and one port does the job and keeps the blast radius tiny.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;wall-three-the-nass-own-allowlist&quot;&gt;Wall three: the NAS’s own allowlist&lt;/h2&gt;
&lt;p&gt;With the grant saved, packets from the container finally reached the NAS itself, which meant the NAS’s own firewall now got a vote. This is where my earlier detour stopped being useless: the ADM Defender allowlist entry for the container’s address was already in place, so the packets were allowed through.&lt;/p&gt;
&lt;p&gt;I want to be careful about what I can claim here. I didn’t go back and remove that allowlist entry to prove the scrape would fail without it, so I can’t show you that third failure happening. What I can say is that once the tailnet policy let packets through, the NAS’s allowlist was the next filter they met, and the scrape only works because that filter is happy too. If your destination runs its own firewall, whether that’s ADM Defender, &lt;code&gt;ufw&lt;/code&gt; or anything else, it needs to allow the subnet source address as well.&lt;/p&gt;
&lt;p&gt;The scrape went green: &lt;code&gt;up&lt;/code&gt; flipped to &lt;strong&gt;1&lt;/strong&gt; and &lt;strong&gt;114 metric series&lt;/strong&gt; started flowing in. As I write this, two months later, it’s still up.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;keeping-the-token-out-of-the-config-file&quot;&gt;Keeping the token out of the config file&lt;/h2&gt;
&lt;p&gt;One last detail, because it’s the part people copy-paste wrong. Home Assistant’s &lt;a href=&quot;https://www.home-assistant.io/integrations/prometheus/&quot;&gt;Prometheus integration&lt;/a&gt; protects &lt;code&gt;/api/prometheus&lt;/code&gt; with a long-lived access token. Prometheus can read that token from a file instead of having it pasted into &lt;code&gt;prometheus.yml&lt;/code&gt;. The &lt;a href=&quot;https://prometheus.io/docs/prometheus/latest/configuration/configuration/&quot;&gt;&lt;code&gt;authorization&lt;/code&gt; block&lt;/a&gt; takes either &lt;code&gt;credentials&lt;/code&gt; or &lt;code&gt;credentials_file&lt;/code&gt;, never both. Here’s the shape of my job:&lt;/p&gt;
&lt;pre class=&quot;astro-code gruvbox-dark-hard&quot; style=&quot;background-color:#1d2021;color:#ebdbb2;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word&quot; tabindex=&quot;0&quot; data-language=&quot;yaml&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;scrape_configs&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#928374;font-style:italic&quot;&gt;  # ...your other jobs...&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A89984&quot;&gt;  -&lt;/span&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt; job_name&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; homeassistant&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;    scrape_interval&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; 60s&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;    metrics_path&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; /api/prometheus&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;    authorization&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;      credentials_file&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; /etc/prometheus/ha_token&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;    static_configs&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A89984&quot;&gt;      -&lt;/span&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt; targets&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;NAS_TAILSCALE_IP:8123&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;My token file is owned by &lt;code&gt;root&lt;/code&gt; with the &lt;code&gt;prometheus&lt;/code&gt; group and mode &lt;code&gt;0640&lt;/code&gt;, so Prometheus can read it and nobody else on the box can. With the token in its own file, the main config can be shared, diffed and backed up without leaking a credential.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-i-took-away-from-it&quot;&gt;What I took away from it&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A timeout is a question, not an answer.&lt;/strong&gt; It only tells you something stayed silent. Find a test that gets a &lt;em&gt;reply&lt;/em&gt; from part of the path, like the 401 above, and you’ve ruled out everything up to that point.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Change one variable at a time.&lt;/strong&gt; The source-address comparison worked because everything else stayed the same. My allowlist guess didn’t, because I had no way to tell whether it mattered.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Every security layer you’ve ever added is still there.&lt;/strong&gt; I set up the tailnet policy and the NAS allowlist months apart, for good reasons, and forgot that both would apply to this traffic. When something new can’t get through, list every filter between the two ends, including the ones you’ve forgotten.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Scope the fix as tightly as the problem.&lt;/strong&gt; One address, one device, one port.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you’d rather walk through this as a checklist next time it happens to you, the &lt;a href=&quot;https://peira.dev/tools/network-diagnostic/&quot;&gt;Overlay Network Diagnostic&lt;/a&gt; tool asks you the same questions in the same order: route, then policy, then host firewall. And if your symptom is a link that looks healthy but still won’t pass traffic, &lt;a href=&quot;https://peira.dev/articles/common-homelab-network-issues/&quot;&gt;Green Lights, No Packets&lt;/a&gt; collects the other ways a homelab network breaks quietly.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;Tailscale Subnet Router: Remote Homelab Access Without Port Forwarding&lt;/a&gt; — how the subnet router in this story was set up in the first place&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/home-assistant-container-nas/&quot;&gt;Home Assistant on a NAS: Why Placement Beats Hardware&lt;/a&gt; — the deployment this scrape was monitoring&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;What Is Prometheus? Homelab Metrics and Alerts Explained&lt;/a&gt; — the monitoring side of the scrape&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-lxc-networking/&quot;&gt;Proxmox LXC Networking: Static IPs, VLANs, and Bridge Configuration&lt;/a&gt; — why a container has its own gateway and routing table&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/common-homelab-network-issues/&quot;&gt;Green Lights, No Packets: Common Homelab Network Issues&lt;/a&gt; — more ways a network fails without telling you&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-firewall-guide/&quot;&gt;Proxmox Firewall: Securing a Home Cluster with Zone-Based Rules&lt;/a&gt; — another layer that can drop a packet silently&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-derp-relay-shared-nat-port/&quot;&gt;Tailscale Stuck on a DERP Relay? Give Each Device Its Own Port&lt;/a&gt; — the same two sites again, this time with the whole path quietly running through a relay&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-offsite-backup-wireguard-buffer/&quot;&gt;Why a 208 KB Buffer Throttled My Tailscale Backups&lt;/a&gt; — a different two-site Tailscale mystery, solved the same way: one variable at a time&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>networking</category><category>tailscale</category></item><item><title>I Got Tired of a Dozen Browser Tabs, So I Built Peira</title><link>https://peira.dev/articles/peira-homelab-control-panel/</link><guid isPermaLink="true">https://peira.dev/articles/peira-homelab-control-panel/</guid><description>Peira is a native desktop app that puts a whole homelab on one screen — Proxmox management, metrics, media status, an AI chat, and an embedded terminal. It is open source, Apache-2.0, and now public.</description><pubDate>Fri, 09 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A homelab has a way of sprawling across browser tabs. The Proxmox web UI in one. Grafana in another. Whatever dashboard the media stack exposes in a third. A terminal for SSH, an Open WebUI tab for the local models, the Wiki in the back somewhere. Individually all fine; collectively a tab bar I kept losing things in.&lt;/p&gt;
&lt;p&gt;So, in the grand tradition of solving a mild annoyance with a disproportionate amount of work, I built an app. It is called &lt;strong&gt;Peira&lt;/strong&gt;, it is a native desktop program rather than another tab, and it is now &lt;a href=&quot;https://github.com/peiralabs/peira&quot;&gt;public on GitHub&lt;/a&gt; under Apache-2.0.&lt;/p&gt;
&lt;p&gt;I should set expectations up front: I am not a professional app developer. Peira is a Flutter app I built against my own cluster because I wanted the thing to exist, and it carries some of that lab’s shape in its assumptions (more on that below — honestly). But it does real work, it reads safely, and it is genuinely useful if your homelab looks anything like mine.&lt;/p&gt;
&lt;h2 id=&quot;what-it-actually-does&quot;&gt;What it actually does&lt;/h2&gt;
&lt;p&gt;Peira is organised as tabs down a nav rail, each one a surface onto part of the lab:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Surface&lt;/th&gt;
&lt;th&gt;What it shows&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Proxmox&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Native VE management — nodes, containers, snapshots, container lifecycle (create, clone, snapshot, delete), live charts, and a drill-in on failed tasks. A standalone single node and a multi-node cluster both render correctly.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Metrics&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A Prometheus-backed tab reading &lt;code&gt;node_exporter&lt;/code&gt;; the guest panel can optionally use &lt;code&gt;prometheus-pve-exporter&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Media&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Status panels for Jellyfin, Plex, Radarr, Sonarr, Prowlarr, qBittorrent, and Jellyseerr — each appears once you configure it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;AI chat&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A chat against any OpenAI-compatible endpoint, with Ollama support for local models.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Terminal&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;An embedded terminal whose SSH targets are built from live Proxmox inventory, so the host you want is already in the list.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Embedded views&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Themed, in-app views of the web services that already have great UIs of their own — Grafana, Open WebUI, Wiki.js, Jellyseerr.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The first launch is a setup wizard that needs only your Proxmox URL and an API token, and it runs a real connection test before it lets you continue. The nice part: a read-only &lt;code&gt;PVEAuditor&lt;/code&gt; token is enough for everything except management actions, so you can point Peira at your cluster and look around without handing it the keys to delete anything. The wizard even prints the exact &lt;code&gt;pveum&lt;/code&gt; commands to create the token.&lt;/p&gt;
&lt;h2 id=&quot;eight-themes-because-i-could-not-pick-one&quot;&gt;Eight themes, because I could not pick one&lt;/h2&gt;
&lt;p&gt;Version 1.1.0 added eight theme families, each one re-skinning the whole shell — background, masthead, panels, nav rail, ornaments — through its own palette and typography, with a dark and a light variant for every family:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Family&lt;/th&gt;
&lt;th&gt;Look&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Brass&lt;/strong&gt; (default)&lt;/td&gt;
&lt;td&gt;green and gold, engraved serif&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Graphite&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;neutral slate, clean sans&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Terminal&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;black and neon-green phosphor, monospace&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Nord&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;cool arctic blue&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Ember&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;warm crimson&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Obsidian&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;matte black&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Aqua&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;macOS-inspired&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Catppuccin&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;soft modern pastel&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Is eight themes a reasonable number for a one-person homelab app? Absolutely not. Did I build them anyway? Yes.&lt;/p&gt;
&lt;h2 id=&quot;try-it-before-you-trust-it&quot;&gt;Try it before you trust it&lt;/h2&gt;
&lt;p&gt;You do not need a Proxmox cluster to take it for a spin. Demo mode boots a fully populated, obviously-fake lab — no configuration, no keyring writes, no network access — with a persistent banner so a demo screenshot can never be mistaken for a real one.&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Kick the tyres in demo mode&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
chmod +x Peira-x86_64.AppImage
./Peira-x86_64.AppImage --demo
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;When you do want to run it for real, verify the download first. Every release ships a &lt;code&gt;SHA256SUMS&lt;/code&gt; file and a detached GPG signature from the Peira Labs signing key:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Verify a release before running it&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
sha256sum -c SHA256SUMS
gpg --verify SHA256SUMS.asc SHA256SUMS
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;Updates are manual by design — an AppImage cannot replace itself in place — and the public build’s update check is a single GET against the releases API only when you ask for it. No telemetry of any kind.&lt;/p&gt;
&lt;h2 id=&quot;the-honest-part&quot;&gt;The honest part&lt;/h2&gt;
&lt;p&gt;The rule I try to hold to on this blog is that honesty about something new beats making it sound finished, so here is what Peira assumes and where it is rough:&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;What Peira expects about your setup&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Proxmox is the centre.&lt;/strong&gt; It is the one hard requirement; everything else is optional and degrades gracefully.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Self-signed certificates are trusted for the Proxmox host only&lt;/strong&gt; — a deliberate boundary with a settings toggle, not a global bypass.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The terminal connects as &lt;code&gt;root&lt;/code&gt; by default.&lt;/strong&gt; Targets come from live Proxmox inventory; the username is configurable for setups that disable root SSH, and nodes must be SSH-reachable from the machine running the app.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;VMs are created as bare hardware&lt;/strong&gt; — you attach an installer ISO and install the OS yourself. Provisioning straight from a cloud image with cloud-init is not supported yet.&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;And the elephant in the AppImage: it is about &lt;strong&gt;329 MB&lt;/strong&gt;. That is almost entirely the embedded Chromium engine (CEF) that powers those in-app views of Grafana and friends. Trimming that down is the next real job on the list. It is Linux-only today, too — GTK 3, an X11 or Wayland-with-XWayland session, and a Secret Service provider (GNOME Keyring or KWallet) for storing credentials.&lt;/p&gt;
&lt;h2 id=&quot;a-smaller-cousin-from-the-same-workbench&quot;&gt;A smaller cousin from the same workbench&lt;/h2&gt;
&lt;p&gt;If you run the media side of a homelab, there is a much smaller, single-purpose tool from the same lab worth a look. When my qBittorrent downloads sat at &lt;strong&gt;0 KB/s for four days&lt;/strong&gt; behind a VPN while every port-sync tool happily reported success, I wrote &lt;a href=&quot;https://github.com/peiralabs/deadair&quot;&gt;deadair&lt;/a&gt;, a tiny Rust checker that tells you when a gluetun + qBittorrent stack has quietly stopped moving data rather than merely being configured correctly. The &lt;a href=&quot;https://peira.dev/articles/qbittorrent-stalled-vpn-port-check/&quot;&gt;full story is here&lt;/a&gt; — it is the same lesson Peira is built around, really: &lt;em&gt;configured is not the same as working.&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&quot;links&quot;&gt;Links&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Source:&lt;/strong&gt; &lt;a href=&quot;https://github.com/peiralabs/peira&quot;&gt;github.com/peiralabs/peira&lt;/a&gt; (Apache-2.0)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Download:&lt;/strong&gt; the signed x86_64 AppImage on the &lt;a href=&quot;https://github.com/peiralabs/peira/releases/latest&quot;&gt;releases page&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you try it — especially in &lt;code&gt;--demo&lt;/code&gt;, which needs nothing — I would genuinely like to know what breaks. That is the whole point of putting it out there.&lt;/p&gt;</content:encoded><category>proxmox</category><category>homelab</category><category>flutter</category><category>self-hosted</category></item><item><title>Append-only laptop backups with restic on your NAS</title><link>https://peira.dev/articles/append-only-laptop-backup-restic/</link><guid isPermaLink="true">https://peira.dev/articles/append-only-laptop-backup-restic/</guid><description>Back up your laptop to a restic rest-server your laptop can write to but never delete from. If ransomware hits the client, your backup history survives.</description><pubDate>Wed, 30 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;Back up your laptop to a server it can write to but never delete from.&lt;/strong&gt; That one property, called append-only, is the difference between a backup and a backup that survives the thing you are backing up getting hacked. This guide stands up a &lt;a href=&quot;https://restic.net&quot;&gt;restic&lt;/a&gt; &lt;a href=&quot;https://github.com/restic/rest-server&quot;&gt;rest-server&lt;/a&gt; on a NAS in append-only mode, points a laptop at it, automates the whole thing with a dead-man switch, and proves it restores. No root on the laptop, client-side encryption, and history a compromised machine cannot erase.&lt;/p&gt;
&lt;p&gt;I built this because of an embarrassing gap. My lab had three backup tiers protecting the servers, the containers, and the photos, and then one day I realized the machine I actually &lt;em&gt;work&lt;/em&gt; on every day, the laptop with my half-finished projects and my configs and my scripts, was backed up by nothing. It was the last unprotected machine in the house, and it was the one most likely to catch something nasty from the open internet.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 360&quot; width=&quot;100%&quot; role=&quot;img&quot; aria-label=&quot;Diagram: a laptop sends new restic snapshots to an append-only rest-server on a NAS. The add arrow is allowed; a delete arrow from the laptop is rejected at the server. A separate server-side prune job, using its own credential, removes old snapshots on a schedule.&quot;&gt;&lt;rect width=&quot;720&quot; height=&quot;360&quot; rx=&quot;12&quot; fill=&quot;#0E1912&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;34&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;15&quot; font-weight=&quot;bold&quot;&gt;Append-only: the client adds, the server alone deletes&lt;/text&gt;&lt;rect x=&quot;40&quot; y=&quot;90&quot; width=&quot;200&quot; height=&quot;90&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;140&quot; y=&quot;128&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;bold&quot;&gt;Laptop&lt;/text&gt;&lt;text x=&quot;140&quot; y=&quot;150&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;restic client + timer&lt;/text&gt;&lt;text x=&quot;140&quot; y=&quot;167&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;encrypts before sending&lt;/text&gt;&lt;rect x=&quot;480&quot; y=&quot;90&quot; width=&quot;200&quot; height=&quot;90&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A227&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;580&quot; y=&quot;124&quot; text-anchor=&quot;middle&quot; fill=&quot;#C9A227&quot; font-size=&quot;13&quot; font-weight=&quot;bold&quot;&gt;rest-server on NAS&lt;/text&gt;&lt;text x=&quot;580&quot; y=&quot;146&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;–append-only&lt;/text&gt;&lt;text x=&quot;580&quot; y=&quot;163&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;holds ciphertext only&lt;/text&gt;&lt;line x1=&quot;240&quot; y1=&quot;118&quot; x2=&quot;480&quot; y2=&quot;118&quot; stroke=&quot;#22c55e&quot; stroke-width=&quot;2&quot;&gt;&lt;/line&gt;&lt;polygon points=&quot;480,118 470,113 470,123&quot; fill=&quot;#22c55e&quot;&gt;&lt;/polygon&gt;&lt;text x=&quot;360&quot; y=&quot;110&quot; text-anchor=&quot;middle&quot; fill=&quot;#22c55e&quot; font-size=&quot;11&quot;&gt;add snapshot (allowed)&lt;/text&gt;&lt;line x1=&quot;480&quot; y1=&quot;156&quot; x2=&quot;240&quot; y2=&quot;156&quot; stroke=&quot;#ef4444&quot; stroke-width=&quot;2&quot; stroke-dasharray=&quot;6 5&quot;&gt;&lt;/line&gt;&lt;text x=&quot;360&quot; y=&quot;174&quot; text-anchor=&quot;middle&quot; fill=&quot;#ef4444&quot; font-size=&quot;11&quot;&gt;delete / overwrite (rejected)&lt;/text&gt;&lt;rect x=&quot;480&quot; y=&quot;240&quot; width=&quot;200&quot; height=&quot;74&quot; rx=&quot;10&quot; fill=&quot;#182617&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.4&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;580&quot; y=&quot;270&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-weight=&quot;bold&quot;&gt;Server-side prune&lt;/text&gt;&lt;text x=&quot;580&quot; y=&quot;290&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot;&gt;own credential, own schedule&lt;/text&gt;&lt;line x1=&quot;580&quot; y1=&quot;240&quot; x2=&quot;580&quot; y2=&quot;180&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.4&quot;&gt;&lt;/line&gt;&lt;text x=&quot;360&quot; y=&quot;300&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;The laptop never holds the credential that can delete. Ransomware on it can only add.&lt;/text&gt;&lt;text x=&quot;360&quot; y=&quot;338&quot; text-anchor=&quot;middle&quot; fill=&quot;#6E7F62&quot; font-size=&quot;10&quot;&gt;Retention is a server job, because an append-only client is not allowed to prune its own history&lt;/text&gt;&lt;/svg&gt;
&lt;h2 id=&quot;why-a-plain-copy-is-not-enough&quot;&gt;Why a plain copy is not enough&lt;/h2&gt;
&lt;p&gt;The obvious fix is to rsync the laptop to a share on the NAS. The problem is that a copy the laptop can write is a copy the laptop can also destroy. Ransomware does exactly that: it encrypts your files and then hunts down and encrypts or deletes any backups it can reach, including network shares. A synced copy on the NAS is right in its blast radius.&lt;/p&gt;
&lt;p&gt;Append-only flips the trust. The client is allowed to &lt;em&gt;push new data&lt;/em&gt; and nothing else. The server refuses every delete and overwrite, so the worst a compromised laptop can do is add more snapshots. Your existing history stays intact. That is the whole idea, and restic plus rest-server give it to you with deduplication and client-side encryption on top, so the NAS only ever holds encrypted blobs it cannot read.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The commands below use placeholders. Replace &lt;strong&gt;&lt;code&gt;10.0.0.50&lt;/code&gt;&lt;/strong&gt; with your NAS’s IP, &lt;strong&gt;&lt;code&gt;8500&lt;/code&gt;&lt;/strong&gt; with the port you publish, the repo username &lt;strong&gt;&lt;code&gt;laptop&lt;/code&gt;&lt;/strong&gt; with a name for this machine, and every &lt;strong&gt;&lt;code&gt;CHANGE_ME&lt;/code&gt;&lt;/strong&gt; with a real secret kept in your password manager, never pasted into a note. If a value looks specific to one machine, it’s a placeholder to change, not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 id=&quot;stand-up-the-rest-server-on-the-nas&quot;&gt;Stand up the rest-server on the NAS&lt;/h2&gt;
&lt;p&gt;rest-server ships as a container. The one non-obvious thing is that its Docker image &lt;strong&gt;always&lt;/strong&gt; sets &lt;code&gt;--path /data&lt;/code&gt; and &lt;code&gt;--htpasswd-file /data/.htpasswd&lt;/code&gt; for you through its entrypoint, so the &lt;code&gt;OPTIONS&lt;/code&gt; variable is only for &lt;em&gt;extra&lt;/em&gt; flags on top of those. You add the two that matter here: &lt;code&gt;--append-only&lt;/code&gt; and &lt;code&gt;--private-repos&lt;/code&gt;.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Write the compose file&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Pin the image version so an upstream change never surprises you. Publish the internal port 8000 on whatever host port you like.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;docker-compose.yml for rest-server&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
services:
  restic-rest:
    image: restic/rest-server:0.14.0
    restart: always
    environment:
      OPTIONS: &amp;quot;--append-only --private-repos&amp;quot;
    ports:
      - &amp;quot;8500:8000&amp;quot;
    volumes:
      - ./data:/data
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Create the repo user and password&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;With &lt;code&gt;--private-repos&lt;/code&gt;, a user can only reach the repository whose path matches their username. So a user named &lt;code&gt;laptop&lt;/code&gt; uses the repo at &lt;code&gt;/laptop&lt;/code&gt; and is denied everything else. Create a bcrypt htpasswd entry for that user.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Create the htpasswd entry&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
htpasswd -B -c ./data/.htpasswd laptop
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;3&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Start it and confirm it listens&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Bring it up and check the port answers on the NAS.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Launch and probe&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
docker compose up -d
curl -s -o /dev/null -w &amp;#39;%{http_code}\n&amp;#39; http://10.0.0.50:8500/
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Two gotchas the docs never put together&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Because the entrypoint already supplies &lt;code&gt;--path&lt;/code&gt; and &lt;code&gt;--htpasswd-file&lt;/code&gt;, putting them in &lt;code&gt;OPTIONS&lt;/code&gt; again just double-sets them; leave them out. And &lt;code&gt;--private-repos&lt;/code&gt; means the &lt;em&gt;repository path is the username&lt;/em&gt;, so there is no separate repo name to invent. The URL you give restic ends in &lt;code&gt;/laptop&lt;/code&gt;, and that has to match the htpasswd user exactly.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 id=&quot;point-the-laptop-at-the-repository&quot;&gt;Point the laptop at the repository&lt;/h2&gt;
&lt;p&gt;On the laptop, restic runs as your normal user from a user-space binary. Keep the credentials out of the repository URL by putting the rest-server username and password in environment variables, &lt;a href=&quot;https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html&quot;&gt;which restic reads natively&lt;/a&gt;: &lt;code&gt;RESTIC_REST_USERNAME&lt;/code&gt; and &lt;code&gt;RESTIC_REST_PASSWORD&lt;/code&gt;. That also keeps them out of any error message that echoes the URL.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Create the restic environment file&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Store the repository address and both credential pairs in one file with tight permissions. The repository password encrypts your data; the rest-server password authenticates to the server.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;~/.config/restic/env&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
export RESTIC_REPOSITORY=&amp;quot;rest:http://10.0.0.50:8500/laptop&amp;quot;
export RESTIC_PASSWORD_FILE=&amp;quot;$HOME/.config/restic/repo-pass&amp;quot;
export RESTIC_REST_USERNAME=&amp;quot;laptop&amp;quot;
export RESTIC_REST_PASSWORD=&amp;quot;CHANGE_ME&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Initialize the repository&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Source the env file and initialize once. The repository password you set here is the one you must be able to recover later, so save it somewhere off the laptop.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Initialize&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
source ~/.config/restic/env
restic init
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;3&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Choose what to skip&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Back up your home directory and exclude the noise: caches, downloads, build artifacts, and anything already protected elsewhere. &lt;code&gt;--one-file-system&lt;/code&gt; stops restic from wandering into mounted filesystems.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;~/.config/restic/excludes.txt&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
**/node_modules
**/.venv
**/target
**/.terraform
$HOME/.cache
$HOME/Downloads
$HOME/.local/share/Trash
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 id=&quot;automate-it-with-a-user-timer&quot;&gt;Automate it with a user timer&lt;/h2&gt;
&lt;p&gt;A backup you have to remember to run is a backup you will forget to run. A systemd &lt;strong&gt;user&lt;/strong&gt; timer schedules it inside your account with no root involved. Two details make it dependable: &lt;code&gt;Persistent=true&lt;/code&gt; catches up after the laptop has been closed for days, and an &lt;code&gt;ExecCondition&lt;/code&gt; that probes the server first means a day spent off the network skips cleanly instead of logging a failure.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Write the backup script&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;One script does the whole cycle: back up, verify the repository with &lt;code&gt;restic check&lt;/code&gt;, then signal success. Only signal after &lt;em&gt;both&lt;/em&gt; the backup and the check pass, so a corrupt repository still trips the alarm.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;~/.local/bin/laptop-restic-backup.sh&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
#!/usr/bin/env bash
set -euo pipefail
source &amp;quot;$HOME/.config/restic/env&amp;quot;

restic backup &amp;quot;$HOME&amp;quot; \
  --exclude-file &amp;quot;$HOME/.config/restic/excludes.txt&amp;quot; \
  --one-file-system

restic check

curl -fsS &amp;quot;$KUMA_PUSH_URL&amp;quot; &amp;gt;/dev/null
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Create the service and timer&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;The service probes the server before running. The timer fires daily with a little jitter so every machine does not hit the NAS at the same second.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;~/.config/systemd/user/laptop-restic.service&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
[Service]
Type=oneshot
ExecCondition=curl -fsS -o /dev/null http://10.0.0.50:8500/
ExecStart=%h/.local/bin/laptop-restic-backup.sh
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;~/.config/systemd/user/laptop-restic.timer&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
[Timer]
OnCalendar=*-*-* 12:00:00
RandomizedDelaySec=15m
Persistent=true

[Install]
WantedBy=timers.target
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;3&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Enable it, and let it run while logged out&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Enable the timer, then enable lingering so the timer fires even when you are not logged in graphically.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Enable&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
systemctl --user enable --now laptop-restic.timer
loginctl enable-linger $USER
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 id=&quot;wire-a-dead-man-switch&quot;&gt;Wire a dead-man switch&lt;/h2&gt;
&lt;p&gt;A silent backup is the dangerous kind: it stops working and you find out months later when you need it. Invert the alarm. The script pings a push monitor &lt;em&gt;only on success&lt;/em&gt;, and the monitor shouts if it does not hear from it. &lt;a href=&quot;https://github.com/louislam/uptime-kuma&quot;&gt;Uptime Kuma&lt;/a&gt; does this with a push monitor: set the heartbeat window a little longer than a day, point the &lt;code&gt;KUMA_PUSH_URL&lt;/code&gt; in your env file at it, and route its alert to &lt;a href=&quot;https://ntfy.sh&quot;&gt;ntfy&lt;/a&gt; or your channel of choice. No heartbeat in 25 hours means no good backup happened, and you hear about it the same day.&lt;/p&gt;
&lt;h2 id=&quot;prove-it-actually-restores&quot;&gt;Prove it actually restores&lt;/h2&gt;
&lt;p&gt;The most common backup mistake is never testing the restore. A repository that accepts backups can still fail to give them back. Do a real drill: restore one file to a scratch directory and compare it byte for byte against the original.&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Restore drill with a checksum compare&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
source ~/.config/restic/env
restic restore latest --target /tmp/restore-test --include &amp;quot;$HOME/.config/restic/env&amp;quot;
sha256sum &amp;quot;$HOME/.config/restic/env&amp;quot; /tmp/restore-test/$HOME/.config/restic/env
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;If the two hashes match, you have a real backup. One more thing to internalize: &lt;strong&gt;“it boots” is not a restore test, and neither is “the job says success.”&lt;/strong&gt; Only a checksum compare of restored data proves the bytes came back, as long as both hashes are really there: I once had &lt;a href=&quot;https://peira.dev/articles/field-note-empty-hash-check/&quot;&gt;a hash check pass on two empty strings&lt;/a&gt;. And because restic encrypts client-side, the repository password is the whole ballgame; keep it somewhere you can reach even if this laptop is a brick, or the ciphertext on the NAS is unrecoverable. Once this works, the same append-only server can protect &lt;a href=&quot;https://peira.dev/articles/nas-app-data-backup-restic/&quot;&gt;the NAS’s own app data&lt;/a&gt;, which adds one wrinkle a laptop never has: a live database.&lt;/p&gt;
&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;The one risk append-only does not cover&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Append-only protects you from a compromised &lt;em&gt;client&lt;/em&gt;. It does nothing about someone with access to the &lt;em&gt;server&lt;/em&gt;. The NAS now holds the only deletable copy of your history, so the server’s own security, and ideally its own off-box backup, is what protects the protector.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-restore-rto-measured/&quot;&gt;Measure how fast your backups actually restore&lt;/a&gt; — the restore drill discipline, applied to the whole cluster.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/nas-app-data-backup-restic/&quot;&gt;What backs up your NAS apps? Append-only restic&lt;/a&gt; — the same append-only pattern, pointed at the NAS’s own app data.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-stop-backup-emails/&quot;&gt;Stop Proxmox Backup Server flooding your inbox&lt;/a&gt; — quieting backup noise without losing the failure alerts that matter.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/self-healing-arr-stack/&quot;&gt;Self-healing arr stack&lt;/a&gt; — the same dead-man-switch pattern on a different service.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;What is Prometheus?&lt;/a&gt; — the monitoring that catches a silently-dead backup job.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;Tailscale subnet router for your homelab&lt;/a&gt; — how the laptop reaches the NAS securely from anywhere.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-create-lxc/&quot;&gt;Create your first Proxmox LXC container&lt;/a&gt; — where a rest-server lives if you run it on the cluster instead of a NAS.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>self-hosted</category><category>security</category><category>linux</category></item><item><title>The best small LLM for a CPU-only homelab node</title><link>https://peira.dev/articles/best-small-llm-cpu-homelab/</link><guid isPermaLink="true">https://peira.dev/articles/best-small-llm-cpu-homelab/</guid><description>I benchmarked seven small LLMs on a GPU-less homelab node across two generations. The newest 4B models are slower on CPU, and an older 3B still wins on speed.</description><pubDate>Wed, 30 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;TL;DR — on a CPU-only homelab node, an older 3B model is still the pick.&lt;/strong&gt; I benchmarked seven small models across two generations on the same graphics-card-free server. Every one of them now passes the quality tests, so speed decides, and &lt;strong&gt;Qwen2.5 3B is fastest at 8.7 tokens per second&lt;/strong&gt; with full marks. The newest 4B-class models (Gemma 4, Qwen3.5) are more capable but slower on CPU. The surprise of 2026 is that the shiny new model is usually the &lt;em&gt;wrong&lt;/em&gt; answer for a processor with no GPU.&lt;/p&gt;
&lt;p&gt;If you self-host a small model to tag your notes, summarize pages, or answer questions over your own documents, you do not need a GPU. You need the &lt;em&gt;right&lt;/em&gt; model. I run &lt;a href=&quot;https://ollama.com&quot;&gt;Ollama&lt;/a&gt; on a few small nodes with four CPU cores each, about 14 GB of RAM, and no discrete graphics card. I first ran this bake-off in August; small models move fast, so I re-ran it with the current generation added and three passes per model to average out noise. Every number below came off my own hardware.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 400&quot; width=&quot;100%&quot; role=&quot;img&quot; aria-label=&quot;Horizontal bar chart of tokens per second for seven small models on a CPU-only node, averaged over three runs. Qwen2.5 3B is fastest at 8.7, then Llama 3.2 3B at 8.35, Phi-4-mini at 6.82, Gemma 3 4B at 6.76, Qwen3.5 4B at 5.67, Gemma 4 E2B at 5.53, and Gemma 4 E4B slowest at 3.27. All seven passed every quality test, so the newest and heaviest models sit at the bottom on speed.&quot;&gt;&lt;rect width=&quot;720&quot; height=&quot;400&quot; rx=&quot;12&quot; fill=&quot;#0E1912&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;32&quot; y=&quot;38&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;16&quot; font-weight=&quot;bold&quot;&gt;All seven passed every quality test, so speed decides&lt;/text&gt;&lt;text x=&quot;32&quot; y=&quot;58&quot; fill=&quot;#94A684&quot; font-size=&quot;11.5&quot;&gt;Tokens per second on one 4-core node, no GPU, averaged over three runs&lt;/text&gt;&lt;text x=&quot;32&quot; y=&quot;96&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-weight=&quot;bold&quot;&gt;Qwen2.5 3B&lt;/text&gt;&lt;rect x=&quot;160&quot; y=&quot;79&quot; width=&quot;331&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#C9A227&quot; opacity=&quot;0.88&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;499&quot; y=&quot;95&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11.5&quot;&gt;8.7 tok/s&lt;/text&gt;&lt;text x=&quot;557&quot; y=&quot;95&quot; fill=&quot;#94A684&quot; font-size=&quot;9.5&quot;&gt;fastest&lt;/text&gt;&lt;text x=&quot;32&quot; y=&quot;138&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-weight=&quot;bold&quot;&gt;Llama 3.2 3B&lt;/text&gt;&lt;rect x=&quot;160&quot; y=&quot;121&quot; width=&quot;317&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#4FAE96&quot; opacity=&quot;0.88&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;485&quot; y=&quot;137&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11.5&quot;&gt;8.35 tok/s&lt;/text&gt;&lt;text x=&quot;543&quot; y=&quot;137&quot; fill=&quot;#94A684&quot; font-size=&quot;9.5&quot;&gt;&lt;/text&gt;&lt;text x=&quot;32&quot; y=&quot;180&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-weight=&quot;bold&quot;&gt;Phi-4-mini&lt;/text&gt;&lt;rect x=&quot;160&quot; y=&quot;163&quot; width=&quot;259&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#4FAE96&quot; opacity=&quot;0.88&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;427&quot; y=&quot;179&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11.5&quot;&gt;6.82 tok/s&lt;/text&gt;&lt;text x=&quot;485&quot; y=&quot;179&quot; fill=&quot;#94A684&quot; font-size=&quot;9.5&quot;&gt;new&lt;/text&gt;&lt;text x=&quot;32&quot; y=&quot;222&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-weight=&quot;bold&quot;&gt;Gemma 3 4B&lt;/text&gt;&lt;rect x=&quot;160&quot; y=&quot;205&quot; width=&quot;257&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#4FAE96&quot; opacity=&quot;0.88&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;425&quot; y=&quot;221&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11.5&quot;&gt;6.76 tok/s&lt;/text&gt;&lt;text x=&quot;483&quot; y=&quot;221&quot; fill=&quot;#94A684&quot; font-size=&quot;9.5&quot;&gt;&lt;/text&gt;&lt;text x=&quot;32&quot; y=&quot;264&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-weight=&quot;bold&quot;&gt;Qwen3.5 4B&lt;/text&gt;&lt;rect x=&quot;160&quot; y=&quot;247&quot; width=&quot;215&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#6E7F62&quot; opacity=&quot;0.88&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;383&quot; y=&quot;263&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11.5&quot;&gt;5.67 tok/s&lt;/text&gt;&lt;text x=&quot;441&quot; y=&quot;263&quot; fill=&quot;#94A684&quot; font-size=&quot;9.5&quot;&gt;new&lt;/text&gt;&lt;text x=&quot;32&quot; y=&quot;306&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-weight=&quot;bold&quot;&gt;Gemma 4 E2B&lt;/text&gt;&lt;rect x=&quot;160&quot; y=&quot;289&quot; width=&quot;210&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#6E7F62&quot; opacity=&quot;0.88&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;378&quot; y=&quot;305&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11.5&quot;&gt;5.53 tok/s&lt;/text&gt;&lt;text x=&quot;436&quot; y=&quot;305&quot; fill=&quot;#94A684&quot; font-size=&quot;9.5&quot;&gt;new&lt;/text&gt;&lt;text x=&quot;32&quot; y=&quot;348&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-weight=&quot;bold&quot;&gt;Gemma 4 E4B&lt;/text&gt;&lt;rect x=&quot;160&quot; y=&quot;331&quot; width=&quot;124&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#6E7F62&quot; opacity=&quot;0.88&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;292&quot; y=&quot;347&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11.5&quot;&gt;3.27 tok/s&lt;/text&gt;&lt;text x=&quot;350&quot; y=&quot;347&quot; fill=&quot;#94A684&quot; font-size=&quot;9.5&quot;&gt;new&lt;/text&gt;&lt;text x=&quot;360&quot; y=&quot;384&quot; text-anchor=&quot;middle&quot; fill=&quot;#6E7F62&quot; font-size=&quot;10&quot;&gt;The four newest models (marked “new”) are the four slowest: added capability at a cost in CPU speed&lt;/text&gt;&lt;/svg&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-field-in-late-2026-the-whole-bench-passed&quot;&gt;The field in late 2026: the whole bench passed&lt;/h2&gt;
&lt;p&gt;Here is the current generation, averaged over three runs each. The big change since my first run is not the leaderboard order, it is that &lt;strong&gt;there is no longer a loser&lt;/strong&gt;. Every model returned faithful, correctly-cited answers, hit an exact format, and produced valid JSON. A year ago that was not true.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Maker&lt;/th&gt;
&lt;th&gt;Size&lt;/th&gt;
&lt;th&gt;tok/s (avg of 3)&lt;/th&gt;
&lt;th&gt;Faithful RAG&lt;/th&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;th&gt;JSON&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Qwen2.5 3B&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://ollama.com/library/qwen2.5&quot;&gt;Alibaba&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;1.9 GB&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;8.70&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓ clean&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Llama 3.2 3B&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://www.llama.com/&quot;&gt;Meta&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;2.0 GB&lt;/td&gt;
&lt;td&gt;8.35&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓ clean&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Phi-4-mini&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://ollama.com/library/phi4-mini&quot;&gt;Microsoft&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;2.5 GB&lt;/td&gt;
&lt;td&gt;6.82&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;fenced&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Gemma 3 4B&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://ai.google.dev/gemma&quot;&gt;Google&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;3.3 GB&lt;/td&gt;
&lt;td&gt;6.76&lt;/td&gt;
&lt;td&gt;✓ tightest&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;fenced&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Qwen3.5 4B&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://ollama.com/library/qwen3.5&quot;&gt;Alibaba&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;3.4 GB&lt;/td&gt;
&lt;td&gt;5.67&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓ clean&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Gemma 4 E2B&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://ai.google.dev/gemma/docs/releases&quot;&gt;Google&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;4.6 GB&lt;/td&gt;
&lt;td&gt;5.53&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓ clean&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Gemma 4 E4B&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;https://ai.google.dev/gemma/docs/releases&quot;&gt;Google&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;6.6 GB&lt;/td&gt;
&lt;td&gt;3.27&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓&lt;/td&gt;
&lt;td&gt;✓ clean&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The run-to-run spread was tiny. Most models stayed within a few hundredths of a token per second across all three passes, so these averages are solid, not lucky single runs. The two things that still separate the field are &lt;strong&gt;speed&lt;/strong&gt; and one small tell: Gemma 3 4B and Phi-4-mini wrapped their JSON in a markdown code fence, while the others returned a bare object. If a script is going to parse that output, bare JSON is one less thing to strip.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The pattern jumps out of the table: the four newest models are the four slowest.&lt;/strong&gt; Qwen3.5 and both Gemma 4 edge builds sit at the bottom. They are not worse, they are heavier, and a CPU feels every extra parameter.&lt;/p&gt;
&lt;h2 id=&quot;how-i-scored-them-three-times-each&quot;&gt;How I scored them, three times each&lt;/h2&gt;
&lt;p&gt;A fair test has to be reproducible, hard to game, and repeated. I ran every model on the same node, freeing its memory between models so none got a warm-cache or a crowded-RAM advantage, with identical sampling (temperature 0.2, low enough that answers stay stable), and I repeated each test three times to expose any single-run wobble.&lt;/p&gt;
&lt;p&gt;Four tests, each standing in for something a homelab actually asks of a model:&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 250&quot; width=&quot;100%&quot; role=&quot;img&quot; aria-label=&quot;Four test cards: T1 speed measured in tokens per second, T2 retrieval faithfulness using invented facts so training data cannot help, T3 strict format scored on exactly three bullets, T4 JSON discipline scored by whether the output parses.&quot;&gt;&lt;rect width=&quot;720&quot; height=&quot;250&quot; rx=&quot;12&quot; fill=&quot;#0E1912&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;32&quot; y=&quot;38&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;15&quot; font-weight=&quot;bold&quot;&gt;The four tests, run three times per model&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;64&quot; width=&quot;156&quot; height=&quot;150&quot; rx=&quot;10&quot; fill=&quot;#182617&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.4&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;102&quot; y=&quot;98&quot; text-anchor=&quot;middle&quot; fill=&quot;#C9A227&quot; font-size=&quot;12.5&quot; font-weight=&quot;bold&quot;&gt;T1 · Speed&lt;/text&gt;&lt;text x=&quot;102&quot; y=&quot;128&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11.5&quot;&gt;Tokens per second&lt;/text&gt;&lt;text x=&quot;102&quot; y=&quot;170&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9.8&quot;&gt;Generation rate on CPU&lt;/text&gt;&lt;rect x=&quot;196&quot; y=&quot;64&quot; width=&quot;156&quot; height=&quot;150&quot; rx=&quot;10&quot; fill=&quot;#182617&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.4&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;274&quot; y=&quot;98&quot; text-anchor=&quot;middle&quot; fill=&quot;#C9A227&quot; font-size=&quot;12.5&quot; font-weight=&quot;bold&quot;&gt;T2 · Retrieval&lt;/text&gt;&lt;text x=&quot;274&quot; y=&quot;128&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11.5&quot;&gt;Cite invented facts&lt;/text&gt;&lt;text x=&quot;274&quot; y=&quot;170&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9.8&quot;&gt;Made-up snippets, memory cannot cheat&lt;/text&gt;&lt;rect x=&quot;368&quot; y=&quot;64&quot; width=&quot;156&quot; height=&quot;150&quot; rx=&quot;10&quot; fill=&quot;#182617&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.4&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;446&quot; y=&quot;98&quot; text-anchor=&quot;middle&quot; fill=&quot;#C9A227&quot; font-size=&quot;12.5&quot; font-weight=&quot;bold&quot;&gt;T3 · Format&lt;/text&gt;&lt;text x=&quot;446&quot; y=&quot;128&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11.5&quot;&gt;Exactly 3 bullets&lt;/text&gt;&lt;text x=&quot;446&quot; y=&quot;170&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9.8&quot;&gt;Counted, no partial credit&lt;/text&gt;&lt;rect x=&quot;540&quot; y=&quot;64&quot; width=&quot;156&quot; height=&quot;150&quot; rx=&quot;10&quot; fill=&quot;#182617&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.4&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;618&quot; y=&quot;98&quot; text-anchor=&quot;middle&quot; fill=&quot;#C9A227&quot; font-size=&quot;12.5&quot; font-weight=&quot;bold&quot;&gt;T4 · JSON&lt;/text&gt;&lt;text x=&quot;618&quot; y=&quot;128&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11.5&quot;&gt;One valid object&lt;/text&gt;&lt;text x=&quot;618&quot; y=&quot;170&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9.8&quot;&gt;Scored by whether it parses&lt;/text&gt;&lt;text x=&quot;360&quot; y=&quot;238&quot; text-anchor=&quot;middle&quot; fill=&quot;#6E7F62&quot; font-size=&quot;10&quot;&gt;The retrieval test uses facts I invented, so a model that “already knows” the answer gets no free points&lt;/text&gt;&lt;/svg&gt;
&lt;p&gt;The retrieval test is the one I trust most, because I made it impossible to fake. Instead of asking about something a model might have memorized, I fed it a short passage of &lt;strong&gt;invented facts&lt;/strong&gt; (fictional firmware notes for a made-up storage device) and asked for a two-sentence summary with a citation next to each claim. A model cannot lean on training data for facts that never existed. This is the same skill a &lt;a href=&quot;https://peira.dev/articles/homelab-wiki-rag-cited-answers/&quot;&gt;cited-answer RAG system over your own notes&lt;/a&gt; depends on, and in this round every model handled it.&lt;/p&gt;
&lt;h2 id=&quot;then-versus-now-two-generations-on-the-same-node&quot;&gt;Then versus now: two generations on the same node&lt;/h2&gt;
&lt;p&gt;My August run told a cleaner story because the field was weaker. Here is what changed. Three models were in both runs, so I can compare them directly, with one honest caveat: between the runs I upgraded Ollama (the engine that runs the models), so part of the shift is the runtime, not the model.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Aug 2026 (single run)&lt;/th&gt;
&lt;th&gt;Sep 2026 (avg of 3)&lt;/th&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Qwen2.5 3B&lt;/td&gt;
&lt;td&gt;7.4 tok/s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;8.70&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;+18% faster&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Llama 3.2 3B&lt;/td&gt;
&lt;td&gt;6.3 tok/s&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;8.35&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;+33% faster&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemma 3 4B&lt;/td&gt;
&lt;td&gt;7.4 tok/s&lt;/td&gt;
&lt;td&gt;6.76&lt;/td&gt;
&lt;td&gt;−9% slower&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Why this comparison is not apples-to-apples&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Between the two runs I upgraded Ollama from 0.30.x to 0.34.4 on these nodes. The same model can get faster or slower purely from a runtime change, which is exactly what you see above: two models sped up and one slowed down without their weights changing at all. Treat cross-run numbers as a trend, not a clean model-versus-model result. The within-run comparisons (all seven on 0.34.4) are the fair ones.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Two clear reads come out of it. First, &lt;strong&gt;most of the year’s speed change on these models was the runtime, not the model&lt;/strong&gt;. Llama 3.2 3B got a third faster on the same weights. Second, and more interesting, the &lt;em&gt;new generation&lt;/em&gt; went the other way on speed: the models Alibaba and Google shipped in 2026 are more capable but heavier, so on a CPU they run slower than the 3B models they succeed.&lt;/p&gt;
&lt;h2 id=&quot;why-the-newest-model-is-not-the-fastest&quot;&gt;Why the newest model is not the fastest&lt;/h2&gt;
&lt;p&gt;The clearest example is Qwen. In August I tested Qwen3 4B and &lt;strong&gt;disqualified it&lt;/strong&gt;: it was a reasoning model, and even with thinking turned off it narrated its reasoning inside every answer, failing the format and JSON tests and wasting 30-plus seconds per reply on a CPU.&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Qwen3 4B, August run, with thinking off, and the monologue still leaked in&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
&amp;gt; Summarize the passage in exactly two sentences with citations.

Hmm, the user is asking for a two-sentence summary. Let me look at
the passage first. Okay, so the key facts seem to be... I should
probably cite each one. Wait, do they want the citations inline?
The firmware note says the buffer is 4 MB [1], and...
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;Its 2026 successor, &lt;a href=&quot;https://ollama.com/library/qwen3.5&quot;&gt;Qwen3.5 4B&lt;/a&gt;, fixes this. The small Qwen3.5 models ship with reasoning &lt;strong&gt;off by default&lt;/strong&gt;, and run that way they behaved perfectly: faithful citations, exact format, clean bare JSON, three times out of three. Reasoning models grew up. The catch is speed: Qwen3.5 4B managed 5.67 tokens per second, well behind the 8.70 of the older, smaller Qwen2.5 3B. You get a better-behaved, more capable model, and you pay for it in CPU time.&lt;/p&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;The rule that held up across both runs&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;On CPU-only hardware, prefer a plain instruction-tuned model over a reasoning model, and an older small model over a heavier new one, unless you specifically need what the new one adds. The tokens a bigger model spends are tokens your processor pays for one at a time.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 id=&quot;the-gemma-4-e4b-that-once-filled-a-disk&quot;&gt;The Gemma 4 E4B that once filled a disk&lt;/h2&gt;
&lt;p&gt;Google’s current small models are the &lt;a href=&quot;https://ai.google.dev/gemma/docs/releases&quot;&gt;Gemma 4&lt;/a&gt; “E” edge variants, which use selective parameter activation to run at an effective 2B or 4B size. They are genuinely good, and they are heavier than their names suggest. The default &lt;code&gt;gemma4:e4b&lt;/code&gt; build is around &lt;strong&gt;9.5 GB&lt;/strong&gt; on disk, and the first time I tried to pull it onto a node with a 30 GB root disk, the download filled the filesystem to 100% before it finished. (Ollama cleaned up the partial layers and the service was fine.)&lt;/p&gt;
&lt;p&gt;The fix is to pull a smaller quantization. The &lt;code&gt;gemma4:e4b-it-q4_K_M&lt;/code&gt; build is &lt;strong&gt;6.6 GB&lt;/strong&gt;, it fits comfortably now that I have grown that node’s disk, and it runs, though it was the slowest model in the whole bench at 3.27 tokens per second. The lesson stands from both runs: &lt;strong&gt;a model tag with “4B” in the name is not a promise about the file size.&lt;/strong&gt; Check the actual download before you pull onto a small node, and pick a quantization that fits.&lt;/p&gt;
&lt;h2 id=&quot;what-i-actually-run-on-these-nodes&quot;&gt;What I actually run on these nodes&lt;/h2&gt;
&lt;p&gt;Nothing in the re-run made me change my daily setup, and that is itself the point. &lt;strong&gt;Gemma 3 4B is still my default model&lt;/strong&gt; for cited retrieval work, where its tight per-claim citations earn their keep, and it is what I point my local &lt;a href=&quot;https://peira.dev/articles/karakeep-local-ai-bookmarks/&quot;&gt;AI bookmark tagger&lt;/a&gt; at. &lt;strong&gt;Qwen2.5 3B is the task model&lt;/strong&gt; for cheap background chores, and it turns out it is also the fastest thing on the node. Both sit behind &lt;a href=&quot;https://peira.dev/articles/olla-ollama-load-balancer/&quot;&gt;an Ollama load balancer&lt;/a&gt; so the nodes share load and fail over, and both feed &lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;private web-search answers in Open WebUI&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you are choosing today: start with Qwen2.5 3B for speed, keep Gemma 3 4B around for citation-heavy work, and only reach for Gemma 4 or Qwen3.5 when you need their newer capabilities more than you need the throughput.&lt;/p&gt;
&lt;h2 id=&quot;run-the-bake-off-yourself&quot;&gt;Run the bake-off yourself&lt;/h2&gt;
&lt;p&gt;You do not have to trust my scoreboard. The point of a method is that you can rerun it on &lt;em&gt;your&lt;/em&gt; hardware, which is what actually matters.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The model &lt;strong&gt;tags&lt;/strong&gt; below (&lt;code&gt;gemma3:4b&lt;/code&gt;, &lt;code&gt;qwen2.5:3b&lt;/code&gt;) are real Ollama names you can use as-is. Anything that looks specific to one machine, like a hostname or an IP, is a placeholder to change. If a value looks specific to one machine, it’s a placeholder, not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Pull the models you want to compare&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Downloads are small, but pull them one at a time if your node’s disk is tight, and check the size of anything with an “E” in the name first.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Pull a few small models&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
ollama pull qwen2.5:3b
ollama pull gemma3:4b
ollama pull phi4-mini:3.8b
ollama pull qwen3.5:4b
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Measure raw speed, more than once&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Ollama reports timing with the &lt;code&gt;--verbose&lt;/code&gt; flag. Read the &lt;code&gt;eval rate&lt;/code&gt; line, which is your tokens per second. Run each model two or three times so a single slow start does not fool you.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Time one model&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
ollama run qwen2.5:3b --verbose &amp;quot;Write two sentences about backups.&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;3&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Test retrieval with invented facts&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;15 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Paste a short passage of facts you make up, then ask for a two-sentence summary with a citation next to each claim. Because the facts are invented, a model can only score by reading what you gave it.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;4&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Test format and JSON discipline&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Ask for “exactly three bullet points” and count them. Then ask for a single valid JSON object and pipe it through a parser. If it does not parse, it fails, and note whether the model wrapped it in a code fence.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Score speed, retrieval, format, and JSON the same way for each model, repeat a couple of times, and your own winner falls out. On CPU in late 2026, mine was a model that has been around for a while.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/olla-ollama-load-balancer/&quot;&gt;Put an Ollama load balancer in front of your nodes&lt;/a&gt; — where the winning model actually runs, with failover across the cluster.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;Private web search in Open WebUI with SearXNG&lt;/a&gt; — the front end these models answer through, and the one setting that makes web search work on small models.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/homelab-wiki-rag-cited-answers/&quot;&gt;Cited answers over your own homelab wiki (local RAG)&lt;/a&gt; — the retrieval job the faithfulness test was standing in for.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/karakeep-local-ai-bookmarks/&quot;&gt;Local AI bookmark tagging with Karakeep&lt;/a&gt; — the background tagger I point Gemma 3 4B at.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/read-only-homelab-mcp-server/&quot;&gt;Build a read-only homelab MCP server for your LLM&lt;/a&gt; — let a model query your cluster safely once you have picked one.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/150-dollar-homelab-used-mini-pc/&quot;&gt;A $150 used mini PC homelab&lt;/a&gt; — the kind of low-power, GPU-less box these small models are sized for.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>ai</category><category>ollama</category><category>self-hosted</category></item><item><title>What backs up your NAS apps? Append-only restic for their data</title><link>https://peira.dev/articles/nas-app-data-backup-restic/</link><guid isPermaLink="true">https://peira.dev/articles/nas-app-data-backup-restic/</guid><description>Your NAS backs up the whole house, but what backs up Immich, Home Assistant, and Paperless themselves? Append-only restic for app data, and the database catch.</description><pubDate>Wed, 30 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;Your NAS backs up everything except the things running on it.&lt;/strong&gt; The photos in &lt;a href=&quot;https://immich.app&quot;&gt;Immich&lt;/a&gt;, the configuration in &lt;a href=&quot;https://www.home-assistant.io&quot;&gt;Home Assistant&lt;/a&gt;, the scanned documents in &lt;a href=&quot;https://github.com/paperless-ngx/paperless-ngx&quot;&gt;Paperless-ngx&lt;/a&gt; all live in Docker volumes &lt;em&gt;on the NAS&lt;/em&gt;, and a backup that lives on the same box is not a backup. This guide pushes that app data off the NAS to an &lt;a href=&quot;https://peira.dev/articles/append-only-laptop-backup-restic/&quot;&gt;append-only restic&lt;/a&gt; server on a cluster node, so the NAS can add snapshots but never delete them, and it covers the one thing the laptop version did not have to worry about: a live database.&lt;/p&gt;
&lt;p&gt;I found this gap the same embarrassing way as the last one. I had built a tidy backup that protected my laptop and my PCs, and then I looked at the NAS itself and realized the services I would actually miss, years of photos and every scanned document, had nothing protecting them but the disks they sat on.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 380&quot; width=&quot;100%&quot; role=&quot;img&quot; aria-label=&quot;Diagram: three app data classes on the NAS (Immich photos, Home Assistant config, Paperless documents) are pushed by a nightly restic client to an append-only rest-server on a cluster node, which the NAS cannot delete from. A separate warning notes that a live database must be dumped, not file-copied.&quot;&gt;&lt;rect width=&quot;720&quot; height=&quot;380&quot; rx=&quot;12&quot; fill=&quot;#0E1912&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;32&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;15&quot; font-weight=&quot;bold&quot;&gt;Push the NAS’s own app data off the NAS&lt;/text&gt;&lt;rect x=&quot;36&quot; y=&quot;70&quot; width=&quot;230&quot; height=&quot;150&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;151&quot; y=&quot;94&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-weight=&quot;bold&quot;&gt;NAS app volumes&lt;/text&gt;&lt;rect x=&quot;52&quot; y=&quot;118&quot; width=&quot;198&quot; height=&quot;26&quot; rx=&quot;6&quot; fill=&quot;#182617&quot; stroke=&quot;#3A4A38&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;151&quot; y=&quot;135&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;Immich: photos + DB dump&lt;/text&gt;&lt;rect x=&quot;52&quot; y=&quot;148&quot; width=&quot;198&quot; height=&quot;26&quot; rx=&quot;6&quot; fill=&quot;#182617&quot; stroke=&quot;#3A4A38&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;151&quot; y=&quot;165&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;Home Assistant: config files&lt;/text&gt;&lt;rect x=&quot;52&quot; y=&quot;178&quot; width=&quot;198&quot; height=&quot;26&quot; rx=&quot;6&quot; fill=&quot;#182617&quot; stroke=&quot;#3A4A38&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;151&quot; y=&quot;195&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;Paperless: documents + DB&lt;/text&gt;&lt;text x=&quot;151&quot; y=&quot;210&quot; text-anchor=&quot;middle&quot; fill=&quot;#6E7F62&quot; font-size=&quot;9.5&quot;&gt;nightly restic client&lt;/text&gt;&lt;rect x=&quot;454&quot; y=&quot;90&quot; width=&quot;230&quot; height=&quot;90&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A227&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;569&quot; y=&quot;124&quot; text-anchor=&quot;middle&quot; fill=&quot;#C9A227&quot; font-size=&quot;12.5&quot; font-weight=&quot;bold&quot;&gt;Append-only server&lt;/text&gt;&lt;text x=&quot;569&quot; y=&quot;146&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;on a cluster node, not the NAS&lt;/text&gt;&lt;text x=&quot;569&quot; y=&quot;163&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;prune runs here, weekly&lt;/text&gt;&lt;line x1=&quot;266&quot; y1=&quot;120&quot; x2=&quot;454&quot; y2=&quot;120&quot; stroke=&quot;#22c55e&quot; stroke-width=&quot;2&quot;&gt;&lt;/line&gt;&lt;polygon points=&quot;454,120 444,115 444,125&quot; fill=&quot;#22c55e&quot;&gt;&lt;/polygon&gt;&lt;text x=&quot;360&quot; y=&quot;112&quot; text-anchor=&quot;middle&quot; fill=&quot;#22c55e&quot; font-size=&quot;10.5&quot;&gt;add only&lt;/text&gt;&lt;rect x=&quot;120&quot; y=&quot;270&quot; width=&quot;480&quot; height=&quot;76&quot; rx=&quot;10&quot; fill=&quot;#2A1F12&quot; stroke=&quot;#f59e0b&quot; stroke-width=&quot;1.4&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;298&quot; text-anchor=&quot;middle&quot; fill=&quot;#f59e0b&quot; font-size=&quot;12&quot; font-weight=&quot;bold&quot;&gt;The catch: a running database is not a file copy&lt;/text&gt;&lt;text x=&quot;360&quot; y=&quot;320&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;Dump Immich’s Postgres with its own tool; copying the live DB directory restores broken&lt;/text&gt;&lt;/svg&gt;
&lt;h2 id=&quot;the-backup-that-has-no-backup&quot;&gt;The backup that has no backup&lt;/h2&gt;
&lt;p&gt;It is easy to assume the NAS is the safe place, because it is where the backups go. But the applications &lt;em&gt;hosted&lt;/em&gt; on the NAS are just more data, and that data is inside the failure domain of the one machine. If a disk stack dies or ransomware reaches the NAS, the photos and the documents go with it, and so does any copy sitting on the same box. The apps that feel the most permanent are often the least protected.&lt;/p&gt;
&lt;p&gt;The rule is the same one behind every good backup: it has to survive the thing it is protecting. That means the copy belongs on a &lt;em&gt;different&lt;/em&gt; machine, and ideally one the NAS cannot reach in to delete.&lt;/p&gt;
&lt;h2 id=&quot;same-pattern-pointed-the-other-way&quot;&gt;Same pattern, pointed the other way&lt;/h2&gt;
&lt;p&gt;If you have already set up the &lt;a href=&quot;https://peira.dev/articles/append-only-laptop-backup-restic/&quot;&gt;append-only laptop backup&lt;/a&gt;, you have done ninety percent of this. It is the identical &lt;a href=&quot;https://restic.net&quot;&gt;restic&lt;/a&gt; &lt;a href=&quot;https://github.com/restic/rest-server&quot;&gt;rest-server&lt;/a&gt; setup, with the roles swapped: this time the &lt;strong&gt;NAS is the client&lt;/strong&gt; and a &lt;strong&gt;cluster node hosts the append-only server&lt;/strong&gt;. The NAS runs a nightly restic job that pushes the app volumes to &lt;code&gt;rest:http://10.0.0.60:8501/nas&lt;/code&gt;, and because the server runs with &lt;code&gt;--append-only&lt;/code&gt;, the NAS can write new snapshots but cannot delete or rewrite old ones.&lt;/p&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Reuse the playbook, swap two things&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The &lt;a href=&quot;https://peira.dev/playbooks/nas-restic-rest-server/&quot;&gt;nas-restic-rest-server playbook&lt;/a&gt; is the whole setup. To apply it here, change the server’s host from the NAS to a cluster node, and change what the client backs up from &lt;code&gt;$HOME&lt;/code&gt; to the app data paths below. The append-only flag, the &lt;code&gt;--private-repos&lt;/code&gt; repo-equals-username rule, and the &lt;code&gt;RESTIC_REST_USERNAME&lt;/code&gt;/&lt;code&gt;RESTIC_REST_PASSWORD&lt;/code&gt; credentials all work exactly the same.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Replace &lt;strong&gt;&lt;code&gt;10.0.0.60&lt;/code&gt;&lt;/strong&gt; with your cluster node’s IP, &lt;strong&gt;&lt;code&gt;8501&lt;/code&gt;&lt;/strong&gt; with the port it publishes, the repo user &lt;strong&gt;&lt;code&gt;nas&lt;/code&gt;&lt;/strong&gt; with a name for this machine, and the volume paths with wherever your apps actually store data. If a value looks specific to one machine, it’s a placeholder to change, not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 id=&quot;the-catch-a-laptop-never-had-live-databases&quot;&gt;The catch a laptop never had: live databases&lt;/h2&gt;
&lt;p&gt;A laptop backup is mostly files sitting still. App data is not. Two of these three services keep a &lt;strong&gt;running database&lt;/strong&gt;, and that changes the rules. A database being written to is not crash-consistent on disk, so if restic copies the database directory mid-write, you can capture a half-finished state that restores into corruption. The backup will look perfectly healthy right up until the day you need it.&lt;/p&gt;
&lt;p&gt;Each app has a correct way to handle this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Immich&lt;/strong&gt; keeps photo &lt;em&gt;metadata and file paths in PostgreSQL&lt;/em&gt; and never rescans the library folder, so the database is not optional. Immich’s own documentation is blunt: “database backups are essential.” Back up the &lt;code&gt;library&lt;/code&gt;, &lt;code&gt;upload&lt;/code&gt;, and &lt;code&gt;profile&lt;/code&gt; folders &lt;strong&gt;and&lt;/strong&gt; a &lt;code&gt;pg_dumpall&lt;/code&gt; of the database, and take the database dump first (or stop the server) so the two agree with each other.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Paperless-ngx&lt;/strong&gt; stores documents as files but keeps its index in a database too. Its maintainers recommend the built-in &lt;code&gt;document_exporter&lt;/code&gt;, which writes documents, metadata, and database contents into one folder that restic can then back up consistently.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Home Assistant&lt;/strong&gt; is the easy one: its configuration is plain YAML and files, so a file-level backup of the config directory is genuinely fine.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;The honest gap in my own setup&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;When I first built this, the nightly job backed up the Immich &lt;em&gt;photo tree&lt;/em&gt; but not a dump of its Postgres database, because adding the dump step needed a container exec I had not wired up yet. The photos were covered; the database was not. I am calling that out because it is exactly the trap: a backup that captures the files and quietly skips the database is the one that surprises you at restore time. Add the dump step, or your “Immich backup” is a folder of orphaned files.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Practically, the nightly script runs each app’s dump command first, then hands restic the dump files plus the file trees in one snapshot.&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Shape of the nightly NAS backup job&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
# 1. dump the databases to a staging dir (runs inside/against each app)
pg_dumpall ... &amp;gt; /volume1/backups/staging/immich.sql

# 2. one restic snapshot: the dumps + the file trees
source /volume1/Docker/restic-rest/env
restic backup \
  /volume1/backups/staging \
  /volume1/Docker/immich/library \
  /volume1/Docker/homeassistant/config \
  /volume1/Docker/paperless/media

restic check
curl -fsS &amp;quot;$HEARTBEAT_URL&amp;quot; &amp;gt;/dev/null
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;h2 id=&quot;prune-on-the-server-never-the-client&quot;&gt;Prune on the server, never the client&lt;/h2&gt;
&lt;p&gt;Append-only has one consequence people trip over: the client is not allowed to delete, which means it cannot prune its own old snapshots either. That is the point, not a bug. Retention runs on the &lt;strong&gt;server&lt;/strong&gt; instead, on its own schedule, with a credential the NAS never holds. A weekly job on the cluster node runs &lt;code&gt;restic forget --prune&lt;/code&gt; with a policy like keep 14 daily, 8 weekly, 6 monthly. The NAS keeps adding; the server alone decides what ages out.&lt;/p&gt;
&lt;h2 id=&quot;make-a-dead-backup-loud&quot;&gt;Make a dead backup loud&lt;/h2&gt;
&lt;p&gt;A backup job that silently stops is worse than one that was never set up, because you think you are covered. The same heartbeat pattern from the laptop guide applies: the script pings a monitor only after the backup &lt;em&gt;and&lt;/em&gt; the &lt;code&gt;restic check&lt;/code&gt; both succeed, and the monitor alerts if the ping does not arrive. Wire it into whatever you already run, whether that is &lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;Prometheus&lt;/a&gt; with a staleness alert or an Uptime Kuma push monitor, so a NAS that stops backing itself up tells you within a day.&lt;/p&gt;
&lt;h2 id=&quot;prove-it-comes-back&quot;&gt;Prove it comes back&lt;/h2&gt;
&lt;p&gt;You do not have a backup until you have restored one. Pull a document and a photo out to a scratch directory and checksum them against the originals, and if a database is involved, restore the dump into a throwaway instance and confirm the app starts and can see its data.&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Restore drill&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
source /volume1/Docker/restic-rest/env
restic restore latest --target /tmp/nas-restore --include /volume1/Docker/paperless/media
sha256sum &amp;lt;original-file&amp;gt; /tmp/nas-restore/&amp;lt;original-file&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;On the real build this covered the Immich photo tree, the Home Assistant config, and Paperless, and the restore drill matched byte for byte. The database dump is the piece to add before you call it done, and the way you confirm it is done is the same as everything else here: restore it and check.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/append-only-laptop-backup-restic/&quot;&gt;Append-only laptop backups with restic&lt;/a&gt; — the base pattern this reuses, explained end to end with the paired playbook.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/immich-proxmox-photos/&quot;&gt;Immich on Proxmox: private photo backup&lt;/a&gt; — the photo service whose database this post insists you dump.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/paperless-ngx-document-archive/&quot;&gt;Paperless-ngx: a searchable archive for every document&lt;/a&gt; — the document store on the other end of this backup.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/home-assistant-container-nas/&quot;&gt;Home Assistant in a container on your NAS&lt;/a&gt; — the config that is the easy one to protect.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-restore-rto-measured/&quot;&gt;Measure how fast your backups actually restore&lt;/a&gt; — the restore-drill discipline, applied to the whole cluster.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;What is Prometheus?&lt;/a&gt; — where the “this backup went quiet” alert can live.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>self-hosted</category><category>security</category><category>linux</category></item><item><title>Running on Out-of-Date AI Memory — Eight Tools, Same Gap</title><link>https://peira.dev/articles/ai-memory-stale-answer-revision/</link><guid isPermaLink="true">https://peira.dev/articles/ai-memory-stale-answer-revision/</guid><description>I read the source of eight open-source AI memory tools looking for one field: the version of your notes an answer was built from. Not one of them returns it, and the near-misses are the interesting part.</description><pubDate>Tue, 29 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I spent an afternoon reading the source of eight open-source AI memory tools, hunting for one field. &lt;strong&gt;Not one of them has it.&lt;/strong&gt; When any of these tools hands back an answer, nothing in that answer says which version of your notes it was built from.&lt;/p&gt;
&lt;p&gt;That sounds like a small omission. It is the difference between a tool you can check and a tool you have to trust.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-copy-problem&quot;&gt;The copy problem&lt;/h2&gt;
&lt;p&gt;Almost every memory tool has the same anatomy. Your actual notes live somewhere durable: markdown files, a database, a Git repository. Sitting on top is a search index, which exists because the durable thing is the wrong shape for answering questions quickly.&lt;/p&gt;
&lt;p&gt;That index is a photocopy. Photocopies do not update themselves.&lt;/p&gt;
&lt;p&gt;So there is always a gap, usually small and occasionally not, between what you have written and what the search box knows about. Add a note, ask about it a second later, and a perfectly healthy system will tell you the note does not exist. Nothing errors. No log line goes red. You simply get a wrong answer wearing the same confident formatting as a right one.&lt;/p&gt;
&lt;p&gt;Everything in my fridge admits how old it is. My search index would not.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;three-questions-i-asked-every-tool&quot;&gt;Three questions I asked every tool&lt;/h2&gt;
&lt;p&gt;I wanted to know whether a tool could be caught out, so I scored each one on three things that build on each other.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does a result carry its version?&lt;/strong&gt; When you get an answer back, is the revision it was derived from sitting right there in the payload, next to the content?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Is there a way to check the copy against the original?&lt;/strong&gt; Can you ask the system whether its index and its source actually agree, and get a straight answer naming the laggard?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And if they disagree, does it stop?&lt;/strong&gt; Or does it shrug and answer anyway, from the copy it already knows is behind?&lt;/p&gt;
&lt;p&gt;A tool that does all three can be checked by whatever is calling it. A tool that does none has to be taken at its word.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-eight-tools-answered&quot;&gt;What eight tools answered&lt;/h2&gt;
&lt;p&gt;I read the read path in every one of these. Star counts are from the day I checked.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Stars&lt;/th&gt;
&lt;th&gt;Carries a version&lt;/th&gt;
&lt;th&gt;Can check the copy&lt;/th&gt;
&lt;th&gt;Stops when they disagree&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;mem0&lt;/td&gt;
&lt;td&gt;66,303&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hindsight&lt;/td&gt;
&lt;td&gt;42,133&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cognee&lt;/td&gt;
&lt;td&gt;31,210&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DiffMem&lt;/td&gt;
&lt;td&gt;904&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Remnic&lt;/td&gt;
&lt;td&gt;211&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Partly&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inspeximus&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Talamus&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Partly&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitOfThoughts&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Only one you passed in&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;I also want to be careful about what the table means. It does not say these are bad tools. Most of them are working on recall quality, which is a harder problem and a more useful one to most people than the question I turned up asking. Several are very good at it. What the table says is that a property I care about is absent from all eight, including the ones built on Git, where the version is sitting right there for free.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Warning&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;I read the function that answers a search in each of the eight and listed the fields it returns. For Hindsight I read its generated API client models, which are the contract its callers actually receive. If I have missed a version field somewhere, I would genuinely like to hear about it.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;so-close-and-yet&quot;&gt;So close, and yet&lt;/h2&gt;
&lt;p&gt;The near-misses are where this got interesting, because three of these tools clearly thought hard about exactly this kind of ambiguity and then thought about a different axis of it.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;mem0 gives every memory a &lt;code&gt;hash&lt;/code&gt;.&lt;/strong&gt; A content hash, of that one memory. So it can tell you whether a particular note has changed since you last saw it, which is genuinely useful. It cannot tell you whether the store you just searched was current. It dates the page, not the edition.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;cognee has the richest provenance of anything I looked at.&lt;/strong&gt; Its evidence references carry &lt;code&gt;chunk_id&lt;/code&gt;, &lt;code&gt;chunk_index&lt;/code&gt;, &lt;code&gt;assertion_id&lt;/code&gt;, &lt;code&gt;source_node_id&lt;/code&gt;, &lt;code&gt;document_name&lt;/code&gt;, &lt;code&gt;source_ref_key&lt;/code&gt;. It will tell you, in forensic detail, precisely which fragments of which documents fed the answer you are holding. What it will not tell you is what state the dataset was in when it did that. This is the finding that convinced me the gap is real and specific: this is not a field that forgot about provenance. It is a field that solved provenance beautifully and never asked “as of when”.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Hindsight sweats the small ambiguities.&lt;/strong&gt; Its search results return a &lt;code&gt;snippet&lt;/code&gt;, and the documentation for that one field explains that a page with no body comes back saying “No content yet.” in words, rather than as an empty string, so that a caller can tell an unwritten page from a page that failed to render. Someone sat down and thought carefully about a caller being silently confused. They did it for one field. Currency was not the field.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-two-traditions-that-almost-get-there&quot;&gt;The two traditions that almost get there&lt;/h2&gt;
&lt;p&gt;Step back and the eight stop in two distinct places, approaching from opposite directions.&lt;/p&gt;
&lt;p&gt;The first tradition is &lt;strong&gt;cache invalidation&lt;/strong&gt;. Remnic and Talamus both keep a version number and use it to throw derived data away when it goes bad. They are not the same number: Remnic’s tracks content and bumps whenever the corpus changes, while Talamus’s tracks the cache &lt;em&gt;format&lt;/em&gt; and trips only when the layout on disk stops matching what the code expects. Remnic’s is the closer of the two to what I wanted, and there is a comment in its source warning that keying the cache on the wrong signal would let a second process serve a stale map missing newly written memories. Exactly the right instinct, and it goes further than I first credited: the counter is backed by a sentinel file on disk, so peer processes see the same value rather than each keeping a private tally. What it does not do is leave the building. The search result you get has a title, a score, a path, and no version at all.&lt;/p&gt;
&lt;p&gt;The second tradition is &lt;strong&gt;the tamper-evident log&lt;/strong&gt;. Inspeximus is the most serious piece of verification engineering in the whole survey, from a project with seven stars. Merkle trees, signed checkpoints, external witnesses, consistency proofs: the machinery certificate transparency runs on. You can prove nobody rewrote its history. What you cannot do is look at a recall result and see which state of that log produced it, because the log machinery and the read path never meet each other.&lt;/p&gt;
&lt;p&gt;One tradition keeps a copy honest behind the scenes, for speed. The other proves the past was not edited, after the fact. Neither carries the version across to the reader at the moment the reader is about to act on it.&lt;/p&gt;
&lt;p&gt;Once I saw it in that shape the gap stopped looking like an oversight and started looking like unclaimed ground between two mature neighbourhoods.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-four-days-of-silence&quot;&gt;The four days of silence&lt;/h2&gt;
&lt;p&gt;I care about this because it has bitten me, and never once as an error message.&lt;/p&gt;
&lt;p&gt;My own vault has three things reading from it: a wiki that renders the pages, a local search index, and a backup mirror on another machine. I watched that mirror report success and exit cleanly while pushing precisely nothing, because the filesystem layer underneath was serving a cached view from before the commit. Every indicator was green. The mirror was a day behind and perfectly happy about it. The fix was not a better mirror. It was making every reader state the revision it read, and refusing to call the system current unless all of them said the same thing. I wrote that health model up in &lt;a href=&quot;https://peira.dev/articles/second-brain-projection-health/&quot;&gt;proving your docs are actually up to date&lt;/a&gt;, and the agent side of it in &lt;a href=&quot;https://peira.dev/articles/second-brain-ai-begin-end-skills/&quot;&gt;making your agents read the docs first&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The same shape turns up everywhere once you have a name for it. My download client once reported a correctly synced port while moving zero bytes for four days. The part that did the configuring reported on the configuring. Nothing checked the outcome.&lt;/p&gt;
&lt;p&gt;A memory tool that cannot report its revision is that trap with better typography. It will answer from a week-old index just as smoothly as from a current one, in the same font, with the same confidence.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;check-any-tool-yourself-in-ten-minutes&quot;&gt;Check any tool yourself in ten minutes&lt;/h2&gt;
&lt;p&gt;You do not need to install anything. This is reading, and it is the same three steps in any language.&lt;/p&gt;
&lt;p&gt;Find the function that answers a search or recall call. Follow it to whatever structure it returns and read the field names out loud. You are looking for anything that names a version: a commit hash, a revision id, a snapshot number, a sequence number, an ETag. If every field is content or scoring, you have your answer.&lt;/p&gt;
&lt;p&gt;Then search the whole project for that same vocabulary. If the only hits are in tests, database migrations or the benchmark harness, it is not in the serving path. That distinction caught me repeatedly: three projects turned out to be full of careful staleness language that lived entirely in their documentation tooling and benchmark harness, and never touched a real query.&lt;/p&gt;
&lt;p&gt;What you are hoping to find, and what I did not find anywhere, is the version sitting in the same structure as the answer.&lt;/p&gt;
&lt;p&gt;If it matters to you, there is a small and answerable question to put to a project: &lt;em&gt;would you take a patch that returns the corpus version alongside search results?&lt;/em&gt; For a tool already computing one internally, that is a modest change, and it turns a private detail into something a caller can act on. The spec writes the check out in full, including the two harder tests this section skips: whether a system can compare its copies against the source at all, and what it does when they disagree.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-i-actually-want&quot;&gt;What I actually want&lt;/h2&gt;
&lt;p&gt;The property has a plain description, and none of it is exotic. Every read reports the revision it came from. Every copy has to report the same revision as the original. When they disagree, the system says so instead of answering. I have written that up properly as &lt;a href=&quot;https://github.com/peiralabs/revision-agreement&quot;&gt;a conformance specification&lt;/a&gt;, with the requirements in RFC 2119 terms and five conformance levels, because “I would like this” is easier to argue with than “here is the property, here is how to test it”.&lt;/p&gt;
&lt;p&gt;That last clause is the one with a price on it, because it means occasionally refusing to be helpful. A tool that declines to answer while its index rebuilds feels worse for about five seconds and is better to rely on forever. For anything I am going to act on, I will take that trade every time.&lt;/p&gt;
&lt;p&gt;None of this needs the Git-backed design I happen to run. My vault is &lt;a href=&quot;https://peira.dev/articles/second-brain-git-markdown-vault/&quot;&gt;plain markdown in a Git repository&lt;/a&gt; with &lt;a href=&quot;https://peira.dev/articles/second-brain-local-rag-embeddings/&quot;&gt;a local embeddings index&lt;/a&gt; over the top, and Git hands me a revision identifier for nothing. A sequence number from a database would do the same work. The identifier is not the clever part. Carrying it to the reader is.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/second-brain-projection-health/&quot;&gt;Prove Your Homelab Docs Are Actually Up to Date&lt;/a&gt; — the health model this post measures other tools against, with the checks written out.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/second-brain-ai-begin-end-skills/&quot;&gt;Make Your AI Agents Read the Docs First, Every Time&lt;/a&gt; — how an agent verifies the revision before trusting anything it loads.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/second-brain-multi-machine-reader/&quot;&gt;Share Your Vault Across Machines Without Split-Brain&lt;/a&gt; — many readers, one authoritative copy, and a reader that labels what it serves.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/second-brain-git-markdown-vault/&quot;&gt;Never Lose a Homelab Note Again: A Git + Markdown Vault&lt;/a&gt; — the storage layer underneath all of this, and where the revision identifier comes from.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/second-brain-local-rag-embeddings/&quot;&gt;Semantic Search for Your Notes, Running Locally&lt;/a&gt; — the derived index that has to agree with the source, and what happens when it drifts.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/second-brain-controlled-write-lock/&quot;&gt;Why Auto-Syncing Your Notes Repo Will Corrupt It&lt;/a&gt; — the write side, where single-writer discipline is what keeps a revision meaningful.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>ai</category><category>self-hosted</category><category>tools</category></item><item><title>qBittorrent Stuck at 0 KB/s? Your Synced VPN Port Is Lying</title><link>https://peira.dev/articles/qbittorrent-stalled-vpn-port-check/</link><guid isPermaLink="true">https://peira.dev/articles/qbittorrent-stalled-vpn-port-check/</guid><description>My downloads sat at zero for four days while every port-sync tool reported success. Here is the gap they share, and the checker I wrote to close it.</description><pubDate>Mon, 28 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;If qBittorrent is sitting at 0 KB/s while your port-sync tool reports success, &lt;strong&gt;the sync is not the thing to check&lt;/strong&gt;. A forwarded port that matches is a statement about your configuration, not about your traffic, and the two can disagree for days without anything raising its voice. Mine disagreed for four.&lt;/p&gt;
&lt;p&gt;This is the story of how that happened, what I found when I went looking for a tool that would have caught it, and the small checker I ended up writing instead.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Every address, port, and name below is a placeholder. Swap in your own before you run anything: &lt;code&gt;10.0.0.x&lt;/code&gt; for your own LAN addresses, &lt;code&gt;homelab.lan&lt;/code&gt; for your own internal domain, &lt;code&gt;203.0.113.42&lt;/code&gt; wherever a public VPN address appears, &lt;code&gt;51413&lt;/code&gt; and &lt;code&gt;6881&lt;/code&gt; for your own ports, and &lt;code&gt;CHANGE_ME&lt;/code&gt; for any secret, which belongs in your password manager and never in a note. If a value looks specific to one machine, it is a placeholder to change, not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;What this stack is for&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;
  Everything in this guide automates managing and streaming media you have the
  rights to — your own rips, DRM-free purchases, home video, Linux ISOs, and
  public-domain or Creative Commons releases. Downloading copyrighted material
  you haven&apos;t paid for is illegal in most places, and it isn&apos;t what this guide
  teaches. What you point these tools at is on you.
&lt;/div&gt;&lt;/div&gt;
&lt;svg viewBox=&quot;0 0 760 250&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;A port syncer checks one thing: that gluetun&apos;s forwarded port number and qBittorrent&apos;s listening port number are equal. Four other conditions must also hold for data to move — the tunnel must carry a public address, the port must be reachable from outside, and bytes must actually be arriving — and two of them are failing while the port still matches.&quot;&gt;&lt;defs&gt;&lt;linearGradient id=&quot;dabg&quot; x1=&quot;0&quot; y1=&quot;0&quot; x2=&quot;0&quot; y2=&quot;1&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#1C2C1F&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#0E1912&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;pattern id=&quot;gp-deadair&quot; width=&quot;20&quot; height=&quot;20&quot; patternUnits=&quot;userSpaceOnUse&quot;&gt;&lt;path d=&quot;M 20 0 H 0 V 20&quot; fill=&quot;none&quot; stroke=&quot;#1C2C1F&quot; stroke-width=&quot;1&quot;&gt;&lt;/path&gt;&lt;/pattern&gt;&lt;/defs&gt;&lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;760&quot; height=&quot;250&quot; rx=&quot;12&quot; fill=&quot;url(#dabg)&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;760&quot; height=&quot;250&quot; fill=&quot;url(#gp-deadair)&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;6&quot; y=&quot;6&quot; width=&quot;748&quot; height=&quot;238&quot; fill=&quot;none&quot; stroke=&quot;#223224&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M 11,16 H 21 M 16,11 V 21 M 739,16 H 749 M 744,11 V 21 M 11,234 H 21 M 16,229 V 239 M 739,234 H 749 M 744,229 V 239&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot; fill=&quot;none&quot;&gt;&lt;/path&gt;&lt;text x=&quot;24&quot; y=&quot;34&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;monospace&quot;&gt;Configured is not the same as working&lt;/text&gt;&lt;text x=&quot;24&quot; y=&quot;64&quot; fill=&quot;#E0BD63&quot; font-size=&quot;11.5&quot; font-weight=&quot;700&quot;&gt;WHAT A PORT SYNCER PROVES&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;78&quot; width=&quot;212&quot; height=&quot;112&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;130&quot; y=&quot;106&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-weight=&quot;700&quot;&gt;gluetun says 51413&lt;/text&gt;&lt;text x=&quot;130&quot; y=&quot;128&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;16&quot;&gt;=&lt;/text&gt;&lt;text x=&quot;130&quot; y=&quot;152&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-weight=&quot;700&quot;&gt;qBittorrent says 51413&lt;/text&gt;&lt;text x=&quot;130&quot; y=&quot;174&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;11&quot;&gt;match → reports success&lt;/text&gt;&lt;line x1=&quot;254&quot; y1=&quot;78&quot; x2=&quot;254&quot; y2=&quot;222&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot; stroke-dasharray=&quot;4 4&quot;&gt;&lt;/line&gt;&lt;text x=&quot;276&quot; y=&quot;64&quot; fill=&quot;#E0BD63&quot; font-size=&quot;11.5&quot; font-weight=&quot;700&quot;&gt;WHAT HAS TO BE TRUE FOR DATA TO MOVE&lt;/text&gt;&lt;rect x=&quot;276&quot; y=&quot;78&quot; width=&quot;460&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;294&quot; cy=&quot;93&quot; r=&quot;5&quot; fill=&quot;#7BB26A&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;310&quot; y=&quot;97&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;Tunnel carries a public address&lt;/text&gt;&lt;text x=&quot;724&quot; y=&quot;97&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;203.0.113.42&lt;/text&gt;&lt;rect x=&quot;276&quot; y=&quot;116&quot; width=&quot;460&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;294&quot; cy=&quot;131&quot; r=&quot;5&quot; fill=&quot;#7BB26A&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;310&quot; y=&quot;135&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;Forwarded port matches the client&lt;/text&gt;&lt;text x=&quot;724&quot; y=&quot;135&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;51413&lt;/text&gt;&lt;rect x=&quot;276&quot; y=&quot;154&quot; width=&quot;460&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;294&quot; cy=&quot;169&quot; r=&quot;5&quot; fill=&quot;#C8564A&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;310&quot; y=&quot;173&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;That port is reachable from outside&lt;/text&gt;&lt;text x=&quot;724&quot; y=&quot;173&quot; text-anchor=&quot;end&quot; fill=&quot;#C8564A&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;firewalled&lt;/text&gt;&lt;rect x=&quot;276&quot; y=&quot;192&quot; width=&quot;460&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;circle cx=&quot;294&quot; cy=&quot;207&quot; r=&quot;5&quot; fill=&quot;#C8564A&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;310&quot; y=&quot;211&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot;&gt;Bytes are actually arriving&lt;/text&gt;&lt;text x=&quot;724&quot; y=&quot;211&quot; text-anchor=&quot;end&quot; fill=&quot;#C8564A&quot; font-size=&quot;11&quot; font-family=&quot;monospace&quot;&gt;0 in 15 min&lt;/text&gt;&lt;text x=&quot;750&quot; y=&quot;242&quot; text-anchor=&quot;end&quot; font-size=&quot;10&quot; fill=&quot;#94A684&quot; opacity=&quot;0.6&quot; font-family=&quot;monospace&quot;&gt;peira.dev&lt;/text&gt;&lt;/svg&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-alert-that-fired-once-then-went-quiet&quot;&gt;The alert that fired once, then went quiet&lt;/h2&gt;
&lt;p&gt;I found it by accident. I went to check how a 4K re-download batch was progressing and noticed the queue had not moved. Not slowed down — &lt;strong&gt;stopped, at zero, for four days&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The cause sat upstream of qBittorrent entirely. My VPN container failed its own health check and restarted itself. On the way through, its port-forwarding service stopped, cleared the file holding the forwarded port, and then failed to start again. That file sat empty for four days. qBittorrent knew none of this and carried on listening on the last port it had been handed, so nothing outside could open a connection to it, and every new magnet link sat in &lt;code&gt;metaDL&lt;/code&gt; waiting for metadata that was never going to arrive.&lt;/p&gt;
&lt;p&gt;There is a second half to this, and it matters more than the fix does. My assumption, once I understood the port, was that nothing had detected any of it. That assumption was wrong. A check did notice, and it did notify me, on the day it broke. &lt;strong&gt;Two alerts reached my phone on the 21st.&lt;/strong&gt; I glanced at them between other things and did not take in what they meant.&lt;/p&gt;
&lt;p&gt;Then it went quiet for four days, because it only ever spoke on a &lt;strong&gt;change of state&lt;/strong&gt;. The monitor fired once on the transition from working to broken and never spoke again, because nothing changed after that. It stayed broken. Four days of silence read exactly like four days of fine.&lt;/p&gt;
&lt;p&gt;This is the same shape as a problem I have hit before with this stack: in the &lt;a href=&quot;https://peira.dev/articles/self-healing-arr-stack/&quot;&gt;self-healing arr stack&lt;/a&gt; it was rotated API keys, where a rejected request returned an HTTP 401 that nothing crashed on. Different cause, identical silence.&lt;/p&gt;
&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;An event is not a state&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;This is the bit to steal even if you never touch a torrent client. A notification is an &lt;strong&gt;event&lt;/strong&gt;: it happens once, at a transition. Health is a &lt;strong&gt;state&lt;/strong&gt;: it is true or false continuously. When the only thing carrying your signal is an event, a failure that stays failed generates exactly as much noise as a system that is working perfectly. The related trap is monitoring the wrong thing entirely, which is how &lt;a href=&quot;https://peira.dev/articles/field-note-silent-backup-failure/&quot;&gt;backups fail silently for a week&lt;/a&gt; and how &lt;a href=&quot;https://peira.dev/articles/docker-localhost-trap/&quot;&gt;a container looks healthy from the wrong network namespace&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-a-port-syncer-actually-proves&quot;&gt;What a port syncer actually proves&lt;/h2&gt;
&lt;p&gt;My first instinct was that I had simply missed a tool. The &lt;a href=&quot;https://github.com/qdm12/gluetun&quot;&gt;gluetun&lt;/a&gt; and &lt;a href=&quot;https://www.qbittorrent.org/&quot;&gt;qBittorrent&lt;/a&gt; combination is extremely popular, the port-forward problem is well known, and there are &lt;strong&gt;at least half a dozen&lt;/strong&gt; open-source tools that solve it.&lt;/p&gt;
&lt;p&gt;So I read them. They do exactly what they advertise, and they do it well: they poll gluetun’s control server for the current forwarded port and write it into qBittorrent’s listening-port setting. &lt;a href=&quot;https://github.com/monstermuffin/qSticky&quot;&gt;qSticky&lt;/a&gt; is a good representative — it monitors for port changes, updates qBittorrent, and keeps a health file recording that it is still running and can still reach both APIs.&lt;/p&gt;
&lt;p&gt;That last part is worth saying precisely, because it is the whole gap. Its health check confirms that it can &lt;strong&gt;reach&lt;/strong&gt; each service’s API. It does not confirm that the tunnel is carrying traffic, that the forwarded port answers from outside, or that a single byte has arrived. None of the others do either. They are synchronisers, and a synchroniser that finds the numbers already equal has nothing left to report.&lt;/p&gt;
&lt;p&gt;So on the day my port forward died, the correct behaviour for every one of those tools was to report success. They were not broken. They were answering a different question than the one I needed answered.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-five-checks-i-ended-up-with&quot;&gt;The five checks I ended up with&lt;/h2&gt;
&lt;p&gt;I wrote a small thing called &lt;a href=&quot;https://github.com/peiralabs/deadair&quot;&gt;deadair&lt;/a&gt; to answer the other question. It is a single &lt;a href=&quot;https://www.rust-lang.org/&quot;&gt;Rust&lt;/a&gt; binary, it reads only, and it changes nothing about your setup.&lt;/p&gt;
&lt;p&gt;It asks five things, and the interesting part is which data it uses for each.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Fails when&lt;/th&gt;
&lt;th&gt;Where the answer comes from&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;probe&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;gluetun or qBittorrent cannot be reached at all&lt;/td&gt;
&lt;td&gt;both APIs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;tunnel&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;gluetun reports no public address, or a private one&lt;/td&gt;
&lt;td&gt;gluetun &lt;code&gt;/v1/publicip/ip&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;port_agreement&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;the forwarded port and the listening port disagree&lt;/td&gt;
&lt;td&gt;both&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;reachability&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;qBittorrent reports &lt;code&gt;firewalled&lt;/code&gt; or &lt;code&gt;disconnected&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;qBittorrent &lt;code&gt;connection_status&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;traffic&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;torrents want data and zero bytes arrived in the window&lt;/td&gt;
&lt;td&gt;qBittorrent &lt;code&gt;dl_info_data&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The one I am most pleased with is &lt;code&gt;reachability&lt;/code&gt;, because it costs nothing. qBittorrent already knows whether anything from the outside world can open a connection to it, and it will tell you in one field. Its Web API exposes a &lt;code&gt;connection_status&lt;/code&gt; that is exactly one of &lt;strong&gt;&lt;code&gt;connected&lt;/code&gt;, &lt;code&gt;firewalled&lt;/code&gt;, or &lt;code&gt;disconnected&lt;/code&gt;&lt;/strong&gt;, documented in the &lt;a href=&quot;https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-(qBittorrent-5.0)&quot;&gt;official WebUI API reference&lt;/a&gt;. &lt;code&gt;firewalled&lt;/code&gt; is the client saying, in effect, “I can call out, but nobody can call in.” Behind a VPN with port forwarding, that is the dead-port symptom stated plainly. You do not need an external port-checking service, and you do not need to trust a third party with your address.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;tunnel&lt;/code&gt; check uses gluetun’s own control server, which exposes the current public address at &lt;code&gt;/v1/publicip/ip&lt;/code&gt; and the forwarded port at &lt;code&gt;/v1/portforward&lt;/code&gt;, both documented in the &lt;a href=&quot;https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/control-server.md&quot;&gt;gluetun control server wiki&lt;/a&gt;.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;gluetun&amp;#39;s control server now needs credentials&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;This caught me while I was building it. Current gluetun versions make &lt;strong&gt;every control-server route private by default&lt;/strong&gt;. There are no publicly readable endpoints any more. You authenticate with an API key in an &lt;code&gt;X-API-Key&lt;/code&gt; header or with HTTP basic auth. If you are following an older guide that curls &lt;code&gt;/v1/portforward&lt;/code&gt; with no credentials, that is why you are getting nothing back.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Here is a healthy run, and then the same stack with a dead port forward. This is real output, not an illustration:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;deadair check — a stack that is genuinely working&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
$ deadair check
[ok]   probe           all probes succeeded
[ok]   tunnel          203.0.113.42
[ok]   port_agreement  both use port 51413
[ok]   reachability    connected
[ok]   traffic         watching: not enough history yet
[ok]   overall
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;deadair check — the failure that hid for four days&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
$ deadair check
[ok]   probe           all probes succeeded
[ok]   tunnel          203.0.113.42
[fail] port_agreement  forwarded 51413, listening 6881
[fail] reachability    firewalled
[ok]   traffic         watching: not enough history yet; 1 torrents have no seeds
[fail] overall
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;Note the two honest bits in there. The tunnel is genuinely fine in both cases, because the tunnel was never the problem. And &lt;code&gt;traffic&lt;/code&gt; says &lt;strong&gt;“not enough history yet”&lt;/strong&gt; rather than pretending to know: a single snapshot cannot tell you whether bytes moved over fifteen minutes. One-shot runs answer four of the five questions. The fifth needs the daemon.&lt;/p&gt;
&lt;p&gt;The exit code is the part that makes it useful to something else: &lt;strong&gt;&lt;code&gt;0&lt;/code&gt; for healthy, &lt;code&gt;1&lt;/code&gt; for a warning, &lt;code&gt;2&lt;/code&gt; for a failure&lt;/strong&gt;, so Uptime Kuma, healthchecks.io, or a plain cron line can consume it without parsing anything.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;why-an-idle-queue-must-never-page-you&quot;&gt;Why an idle queue must never page you&lt;/h2&gt;
&lt;p&gt;This is the design decision the whole thing rests on, and it is the reason I could not just alert on “download speed is zero”.&lt;/p&gt;
&lt;p&gt;Download speed is zero most of the time in a healthy homelab. The queue empties. Everything finishes. If your monitor pages you every time nothing is downloading, you will mute it within a week and then it will be worth nothing on the day it is right.&lt;/p&gt;
&lt;p&gt;So the traffic check gates itself. Before it complains that no data arrived, it asks whether anything wanted data. It counts torrents whose state is one of &lt;code&gt;downloading&lt;/code&gt;, &lt;code&gt;metaDL&lt;/code&gt;, &lt;code&gt;forcedDL&lt;/code&gt;, or &lt;code&gt;stalledDL&lt;/code&gt;, and &lt;strong&gt;if that count is zero, the verdict is simply “idle: no torrent is waiting on data”&lt;/strong&gt; and everything is fine. Only when something genuinely wants bytes does it compare the session’s downloaded-byte counter against the value from the start of the window.&lt;/p&gt;
&lt;p&gt;Two smaller things fall out of getting that right. A counter that goes &lt;em&gt;backwards&lt;/em&gt; means qBittorrent restarted and reset its session counter, which is not a stall, so that is treated as progress. And a check that fails once is reported as a warning rather than a failure until it has failed several samples in a row, so a single blip during a VPN reconnect does not wake anyone.&lt;/p&gt;
&lt;p&gt;That gating is the difference between a monitor you keep and a monitor you silence.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;running-it-next-to-gluetun&quot;&gt;Running it next to gluetun&lt;/h2&gt;
&lt;p&gt;The deployment detail that matters: run it &lt;strong&gt;inside gluetun’s network namespace&lt;/strong&gt;, exactly as qBittorrent does. That is what lets it reach both control servers on &lt;code&gt;localhost&lt;/code&gt;, and it means the checker sees the same network the client sees rather than a view from somewhere more comfortable.&lt;/p&gt;
&lt;pre class=&quot;astro-code gruvbox-dark-hard&quot; style=&quot;background-color:#1d2021;color:#ebdbb2;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word&quot; tabindex=&quot;0&quot; data-language=&quot;yaml&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;services&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;  gluetun&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;    image&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; qmcgaw/gluetun&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;    cap_add&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;NET_ADMIN&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;    ports&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A89984&quot;&gt;      -&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;9113:9113&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#928374;font-style:italic&quot;&gt;   # deadair&amp;#39;s metrics, published through gluetun&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;  qbittorrent&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;    image&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; lscr.io/linuxserver/qbittorrent&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;    network_mode&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;service:gluetun&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;  deadair&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;    image&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; ghcr.io/peiralabs/deadair:0.1.1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;    network_mode&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;service:gluetun&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;    environment&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;      DEADAIR_GLUETUN_APIKEY&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; CHANGE_ME&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#8EC07C&quot;&gt;    depends_on&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt;gluetun&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#B8BB26&quot;&gt; qbittorrent&lt;/span&gt;&lt;span style=&quot;color:#A89984&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Pin the tag, and mind the architecture&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The image is published for &lt;strong&gt;linux/amd64 and linux/arm64&lt;/strong&gt;, so it runs on an x86 box or an ARM NAS unchanged. It is a static binary in a &lt;code&gt;scratch&lt;/code&gt; image and pulls at &lt;strong&gt;3.47 MB&lt;/strong&gt;. I have pinned &lt;code&gt;:0.1.1&lt;/code&gt; above rather than &lt;code&gt;:latest&lt;/code&gt; deliberately: a watchdog that changes under you without warning is worse than one that is slightly behind.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;If you would rather not run another container, the one-shot form works from cron or from any monitor that can run a command and read an exit code. Each release ships a static binary, which needs no runtime at all and is the easier route on a NAS:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Grab the binary and check it&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
curl -LO https://github.com/peiralabs/deadair/releases/latest/download/deadair-x86_64-unknown-linux-musl
curl -LO https://github.com/peiralabs/deadair/releases/latest/download/SHA256SUMS
sha256sum --ignore-missing -c SHA256SUMS
chmod +x deadair-x86_64-unknown-linux-musl
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;Swap &lt;code&gt;x86_64&lt;/code&gt; for &lt;code&gt;aarch64&lt;/code&gt; on ARM. If you would rather build it yourself, &lt;code&gt;cargo install --git https://github.com/peiralabs/deadair --locked&lt;/code&gt; does the same job.&lt;/p&gt;
&lt;p&gt;Then it is whatever your scheduler already understands:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;One-shot check from cron, no daemon&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
DEADAIR_GLUETUN_APIKEY=CHANGE_ME \
DEADAIR_QBT_URL=http://10.0.0.20:8080 \
deadair check
echo $?
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-numbers-i-actually-graph&quot;&gt;The numbers I actually graph&lt;/h2&gt;
&lt;p&gt;Running it as a daemon adds a Prometheus endpoint, which is where it earns its place next to an existing &lt;a href=&quot;https://peira.dev/articles/grafana-prometheus-proxmox/&quot;&gt;Prometheus and Grafana setup&lt;/a&gt;. The exposition is deliberately small. Again, this is real output:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;GET /metrics from the daemon, mid-failure&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
# HELP deadair_check Health check severity.
# TYPE deadair_check gauge
deadair_check{check=&amp;quot;probe&amp;quot;} 0
deadair_check{check=&amp;quot;tunnel&amp;quot;} 0
deadair_check{check=&amp;quot;port_agreement&amp;quot;} 2
deadair_check{check=&amp;quot;reachability&amp;quot;} 2
deadair_check{check=&amp;quot;traffic&amp;quot;} 0
# HELP deadair_level Overall health severity.
# TYPE deadair_level gauge
deadair_level 2
# HELP deadair_forwarded_port VPN forwarded port.
# TYPE deadair_forwarded_port gauge
deadair_forwarded_port 51413
# HELP deadair_listen_port qBittorrent listening port.
# TYPE deadair_listen_port gauge
deadair_listen_port 6881
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;Levels are &lt;strong&gt;&lt;code&gt;0&lt;/code&gt; ok, &lt;code&gt;1&lt;/code&gt; warn, &lt;code&gt;2&lt;/code&gt; fail&lt;/strong&gt;, which makes &lt;code&gt;deadair_level&lt;/code&gt; the single number worth putting on a dashboard and alerting on. One deliberate choice worth copying in your own exporters: when a value is genuinely unknown, the metric line is &lt;strong&gt;omitted entirely&lt;/strong&gt; rather than reported as zero. A fake zero on a byte counter looks exactly like a counter reset and will quietly corrupt any &lt;code&gt;rate()&lt;/code&gt; you build on it.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-i-would-still-do-by-hand&quot;&gt;What I would still do by hand&lt;/h2&gt;
&lt;p&gt;Honesty about something this new matters more than making it sound finished, so: this is version 0.1.1. The test suite and container build pass in CI, and I have run it against mocked gluetun and qBittorrent endpoints covering healthy, firewalled, port-mismatch, legacy-endpoint, and both authentication paths. That is a long way from “running in a hundred homelabs for a year”.&lt;/p&gt;
&lt;p&gt;Things it does not do, on purpose or otherwise:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;It does not fix anything.&lt;/strong&gt; It will not sync your port, restart a container, or touch a qBittorrent setting. Keep your port syncer.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;It does not test the port from the public internet.&lt;/strong&gt; It infers reachability from qBittorrent’s own connection status, which is free and private but is a second-hand signal rather than an outside-in probe.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;It only knows gluetun and qBittorrent.&lt;/strong&gt; Other VPN containers and other clients would need new probes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And the manual check I still run first when downloads look wrong, which no tool replaces: confirm the container’s public address is actually the VPN’s and not my own. If the tunnel dropped, every other reading is measuring the wrong network.&lt;/p&gt;
&lt;p&gt;The broader habit is the part worth keeping even if you never run this particular binary, and it has two halves.&lt;/p&gt;
&lt;p&gt;The thing you measure has to be the system’s &lt;strong&gt;output&lt;/strong&gt; rather than its configuration, because configuration agrees with itself right up until the moment it stops meaning anything. And the signal has to be a &lt;strong&gt;state you can re-read whenever you like&lt;/strong&gt;, not an event that fires once and trusts you to be paying attention on the day. That second half is the one that actually cost me the four days. &lt;code&gt;deadair_level&lt;/code&gt; sits at &lt;code&gt;2&lt;/code&gt; for as long as the stack is broken, and &lt;code&gt;/healthz&lt;/code&gt; answers 503 every single time you ask it, however long it has been wrong. Neither depends on my having noticed a phone notification on a Monday afternoon.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/peira-homelab-control-panel/&quot;&gt;I Got Tired of a Dozen Browser Tabs, So I Built Peira&lt;/a&gt; — the native control panel for the same homelab this checker watches over, built around the same “configured is not working” lesson.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/self-healing-arr-stack/&quot;&gt;The Self-Healing Arr Stack: Why My Watchlist Silently Stopped Downloading&lt;/a&gt; — the same silence from a different cause, plus the dead-man’s-switch pattern that catches automation which stops running entirely.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/arr-stack-docker-deploy/&quot;&gt;Deploy the Arr Stack with Docker Compose (Prowlarr, Radarr, Sonarr)&lt;/a&gt; — where the gluetun and qBittorrent pairing described here gets set up in the first place.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/field-note-silent-backup-failure/&quot;&gt;My Backups Silently Failed for a Week&lt;/a&gt; — the identical failure shape in the backup stack: every component reporting success, nothing checking the result.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/docker-localhost-trap/&quot;&gt;The Docker localhost Trap: 24 Hours of Red, Zero Real Downtime&lt;/a&gt; — what happens when a health check looks at the service from the wrong network namespace.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/grafana-prometheus-proxmox/&quot;&gt;Proxmox Monitoring with Prometheus and Grafana: Full Stack Setup&lt;/a&gt; — the stack the metrics above plug into.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/common-homelab-network-issues/&quot;&gt;Green Lights, No Packets: Common Homelab Network Issues&lt;/a&gt; — more cases where the indicators are healthy and the traffic is not.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>media</category><category>monitoring</category><category>self-hosted</category><category>automation</category></item><item><title>Proxmox Datacenter Manager: One Pane Over Every Cluster</title><link>https://peira.dev/articles/proxmox-datacenter-manager/</link><guid isPermaLink="true">https://peira.dev/articles/proxmox-datacenter-manager/</guid><description>Run more than one Proxmox cluster and you&apos;re tab-juggling. Here&apos;s how I deployed PDM 1.1 in an LXC and wired remotes with least-privilege audit tokens.</description><pubDate>Thu, 17 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;The moment my homelab outgrew a single Proxmox cluster, I started living in browser tabs. One for the four-node cluster in the office cupboard, one for the standalone box I was building for the house, one for the backup server. Checking “is everything healthy?” meant three logins and a lot of alt-tabbing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://pdm.proxmox.com/&quot;&gt;Proxmox Datacenter Manager&lt;/a&gt; gives you one read-only pane over all of it — but only bother if you run more than one cluster.&lt;/strong&gt; For a single cluster the native &lt;a href=&quot;https://www.proxmox.com/en/proxmox-virtual-environment&quot;&gt;Proxmox VE&lt;/a&gt; interface already does this job, and PDM would just be a second thing to host and lock down. This guide is the two-clusters-and-up case: how I stood PDM 1.1 up in a container, connected my clusters with tokens that can only &lt;em&gt;look&lt;/em&gt;, and the few rough edges I hit doing it.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Every address, hostname, and name below is an example. Swap in your own before you run anything: &lt;code&gt;10.0.0.x&lt;/code&gt; is a stand-in for your real subnet, &lt;code&gt;pve-node1.homelab.lan&lt;/code&gt; and &lt;code&gt;pbs.homelab.lan&lt;/code&gt; for your real hostnames, &lt;code&gt;office-cluster&lt;/code&gt; for whatever you want to call each remote, and any &lt;code&gt;CHANGE_ME&lt;/code&gt; / token value for a secret you keep in your own password store, never pasted into a note. Rule of thumb: if a value looks specific to one machine, it’s a placeholder to change — not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-pdm-actually-is-and-isnt&quot;&gt;What PDM actually is (and isn’t)&lt;/h2&gt;
&lt;p&gt;A Proxmox VE &lt;em&gt;cluster&lt;/em&gt; fuses several nodes into one system: they share config and can shuffle guests between each other. PDM is a layer above that. It doesn’t join anything and it isn’t a cluster member — it’s a small standalone service that connects to your clusters and lone nodes as &lt;strong&gt;remotes&lt;/strong&gt; and aggregates them into one screen. Each remote stays fully independent and hands PDM nothing but an API token.&lt;/p&gt;
&lt;p&gt;That distinction is the whole security story. Because a remote only trusts a token, you decide exactly how much that token can do, and for a monitoring pane the answer is “read, and nothing else.”&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 400&quot; width=&quot;100%&quot; role=&quot;img&quot; aria-label=&quot;Diagram of Proxmox Datacenter Manager sitting above three independent remotes. A single PDM pane at the top connects downward to an office Proxmox VE cluster, a home Proxmox VE node, and a Proxmox Backup Server. Each connection is labelled as a read-only audit token, and each remote pins the upstream certificate fingerprint.&quot;&gt;&lt;rect width=&quot;720&quot; height=&quot;400&quot; rx=&quot;12&quot; fill=&quot;#0E1912&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;34&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;15&quot; font-weight=&quot;bold&quot;&gt;One pane, three independent remotes&lt;/text&gt;&lt;text x=&quot;360&quot; y=&quot;54&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot;&gt;PDM holds a read-only token to each — it can see everything, change nothing&lt;/text&gt;&lt;rect x=&quot;250&quot; y=&quot;80&quot; width=&quot;220&quot; height=&quot;56&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A227&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;105&quot; text-anchor=&quot;middle&quot; fill=&quot;#C9A227&quot; font-size=&quot;13&quot; font-weight=&quot;bold&quot;&gt;Datacenter Manager&lt;/text&gt;&lt;text x=&quot;360&quot; y=&quot;123&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;&lt;a href=&quot;https://pdm.homelab.lan:8443&quot;&gt;https://pdm.homelab.lan:8443&lt;/a&gt;&lt;/text&gt;&lt;line x1=&quot;360&quot; y1=&quot;136&quot; x2=&quot;132&quot; y2=&quot;250&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot; opacity=&quot;0.7&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;40&quot; y=&quot;250&quot; width=&quot;184&quot; height=&quot;96&quot; rx=&quot;10&quot; fill=&quot;#182617&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;132&quot; y=&quot;278&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-weight=&quot;bold&quot;&gt;Office cluster&lt;/text&gt;&lt;text x=&quot;132&quot; y=&quot;298&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;4× PVE nodes&lt;/text&gt;&lt;rect x=&quot;80&quot; y=&quot;312&quot; width=&quot;104&quot; height=&quot;22&quot; rx=&quot;11&quot; fill=&quot;#2A1F12&quot; stroke=&quot;#C9A227&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;132&quot; y=&quot;327&quot; text-anchor=&quot;middle&quot; fill=&quot;#C9A227&quot; font-size=&quot;10&quot;&gt;token: PVEAuditor&lt;/text&gt;&lt;line x1=&quot;360&quot; y1=&quot;136&quot; x2=&quot;360&quot; y2=&quot;250&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot; opacity=&quot;0.7&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;268&quot; y=&quot;250&quot; width=&quot;184&quot; height=&quot;96&quot; rx=&quot;10&quot; fill=&quot;#182617&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;278&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-weight=&quot;bold&quot;&gt;Home node&lt;/text&gt;&lt;text x=&quot;360&quot; y=&quot;298&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;standalone PVE&lt;/text&gt;&lt;rect x=&quot;308&quot; y=&quot;312&quot; width=&quot;104&quot; height=&quot;22&quot; rx=&quot;11&quot; fill=&quot;#2A1F12&quot; stroke=&quot;#C9A227&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;327&quot; text-anchor=&quot;middle&quot; fill=&quot;#C9A227&quot; font-size=&quot;10&quot;&gt;token: PVEAuditor&lt;/text&gt;&lt;line x1=&quot;360&quot; y1=&quot;136&quot; x2=&quot;588&quot; y2=&quot;250&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot; opacity=&quot;0.7&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;496&quot; y=&quot;250&quot; width=&quot;184&quot; height=&quot;96&quot; rx=&quot;10&quot; fill=&quot;#182617&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;588&quot; y=&quot;278&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12.5&quot; font-weight=&quot;bold&quot;&gt;Backup server&lt;/text&gt;&lt;text x=&quot;588&quot; y=&quot;298&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;PBS datastore&lt;/text&gt;&lt;rect x=&quot;536&quot; y=&quot;312&quot; width=&quot;104&quot; height=&quot;22&quot; rx=&quot;11&quot; fill=&quot;#2A1F12&quot; stroke=&quot;#C9A227&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;588&quot; y=&quot;327&quot; text-anchor=&quot;middle&quot; fill=&quot;#C9A227&quot; font-size=&quot;10&quot;&gt;token: Audit&lt;/text&gt;&lt;text x=&quot;360&quot; y=&quot;378&quot; text-anchor=&quot;middle&quot; fill=&quot;#6E7F62&quot; font-size=&quot;10&quot;&gt;Each remote pins the upstream certificate fingerprint — a swapped cert breaks the link, on purpose&lt;/text&gt;&lt;/svg&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;standing-pdm-up-in-a-container&quot;&gt;Standing PDM up in a container&lt;/h2&gt;
&lt;p&gt;Proxmox ships PDM as an installable ISO or as Debian packages. Since everything else in my lab is an &lt;a href=&quot;https://peira.dev/articles/proxmox-vm-vs-lxc/&quot;&gt;LXC container&lt;/a&gt;, I took the Debian route: a plain &lt;strong&gt;Debian 13 (“trixie”)&lt;/strong&gt; container, then the packages on top. Give it modest resources; mine runs comfortably in 2 vCPU and 2 GB of RAM.&lt;/p&gt;
&lt;p&gt;Inside the container, add the no-subscription repository and install the manager. The signing key and the exact repository line come straight from the &lt;a href=&quot;https://pdm.proxmox.com/docs/installation.html&quot;&gt;official PDM installation docs&lt;/a&gt;:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Install PDM on Debian 13&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
# fetch the Proxmox signing key for trixie
wget https://enterprise.proxmox.com/debian/proxmox-archive-keyring-trixie.gpg \
  -O /usr/share/keyrings/proxmox-archive-keyring.gpg

# add the no-subscription repo (deb822 format)
cat &amp;gt; /etc/apt/sources.list.d/proxmox.sources &amp;lt;&amp;lt;&amp;#39;EOF&amp;#39;
Types: deb
URIs: http://download.proxmox.com/debian/pdm
Suites: trixie
Components: pdm-no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
EOF

apt update
apt install proxmox-datacenter-manager-container-meta
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;That pulls in two services (&lt;code&gt;proxmox-datacenter-api&lt;/code&gt; and its privileged helper), and the web interface comes up on port &lt;strong&gt;8443&lt;/strong&gt;. Point a browser at &lt;code&gt;https://&amp;lt;your-pdm-ip&amp;gt;:8443&lt;/code&gt;, log in as &lt;code&gt;root@pam&lt;/code&gt; with the container’s root password, and you get the login screen every Proxmox admin will recognise:&lt;/p&gt;
&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;https://pdm.homelab.lan:8443&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/pdm-login.Cw7yy9au_FsxLr.webp&quot; aria-label=&quot;Enlarge screenshot: Proxmox Datacenter Manager 1.1.7 login screen, showing the user name, password, and realm fields with the PAM realm selected.&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/pdm-login.Cw7yy9au_1X4hOu.webp&quot; alt=&quot;Proxmox Datacenter Manager 1.1.7 login screen, showing the user name, password, and realm fields with the PAM realm selected.&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1400&quot; height=&quot;718&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;The PDM login. Same Proxmox login you already know — user, password, realm — just a different product on port 8443.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;It&amp;#39;s a fresh login, not your cluster&amp;#39;s&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;PDM keeps its own users. The &lt;code&gt;root@pam&lt;/code&gt; you log in with here is the &lt;em&gt;container’s&lt;/em&gt; root account, not any account on the clusters you’re about to connect. Those get their own tokens, coming up next.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;connecting-a-cluster-so-it-can-only-look&quot;&gt;Connecting a cluster so it can only look&lt;/h2&gt;
&lt;p&gt;This is the part worth slowing down for. On each cluster you want to watch, create a &lt;strong&gt;dedicated user and a read-only token&lt;/strong&gt; rather than handing PDM a real admin login. Proxmox VE has a built-in role called &lt;strong&gt;PVEAuditor&lt;/strong&gt; that grants read access and nothing else — the same role I lean on when &lt;a href=&quot;https://peira.dev/articles/proxmox-cluster-as-code-import-first/&quot;&gt;turning a hand-built cluster into code&lt;/a&gt;, and for the same reason: a credential that physically cannot delete a guest turns a whole category of mistakes into a harmless error.&lt;/p&gt;
&lt;p&gt;On one node of the cluster:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Create a read-only token on the PVE side&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
# a dedicated user, then a read-only role for it on the whole tree
pveum user add pdm@pve
pveum acl modify / -user pdm@pve -role PVEAuditor

# a token for that user; --privsep 0 lets the token inherit the user&amp;#39;s role
pveum user token add pdm@pve pdm --privsep 0
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;That last command prints a &lt;strong&gt;secret value once&lt;/strong&gt;, so copy it into your password manager immediately; Proxmox will never show it again. On a &lt;a href=&quot;https://peira.dev/articles/proxmox-backup-server/&quot;&gt;Proxmox Backup Server&lt;/a&gt; the shape is identical, only the tool and role names change (&lt;strong&gt;Audit&lt;/strong&gt; is PBS’s read-only role):&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;The same idea on the Backup Server&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
proxmox-backup-manager user create pdm@pbs
proxmox-backup-manager user generate-token pdm@pbs pdm
proxmox-backup-manager acl update / Audit --auth-id &amp;#39;pdm@pbs!pdm&amp;#39;
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;Back in PDM, open &lt;strong&gt;Remotes → Add → Proxmox VE&lt;/strong&gt;. The wizard’s first step, “Probe Remote,” asks for the server address and a certificate fingerprint:&lt;/p&gt;
&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;https://pdm.homelab.lan:8443&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/pdm-add-remote.Cxcu0v-f_ZNBKzF.webp&quot; aria-label=&quot;Enlarge screenshot: The Add Remote wizard in Proxmox Datacenter Manager, open on the Probe Remote step, showing a Server Address field and a Fingerprint field for the self-signed certificate, with the existing remotes table behind it.&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/pdm-add-remote.Cxcu0v-f_ZhfK87.webp&quot; alt=&quot;The Add Remote wizard in Proxmox Datacenter Manager, open on the Probe Remote step, showing a Server Address field and a Fingerprint field for the self-signed certificate, with the existing remotes table behind it.&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1400&quot; height=&quot;831&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Adding a remote: give it the node address and let PDM read back the certificate fingerprint before you commit the token.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Type the node’s address (&lt;code&gt;https://pve-node1.homelab.lan:8006&lt;/code&gt;), let PDM fetch and show you the certificate fingerprint, then paste the token ID (&lt;code&gt;pdm@pve!pdm&lt;/code&gt;) and the secret on the Settings step. I automated mine from the container’s admin CLI so I could rebuild it from a script — the same call the wizard makes under the hood:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Registering a remote from the CLI&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
proxmox-datacenter-manager-admin remote add \
  --type pve --id office-cluster \
  --authid &amp;#39;pdm@pve!pdm&amp;#39; --token &amp;#39;CHANGE_ME_token_secret&amp;#39; \
  --nodes &amp;#39;pve-node1.homelab.lan,fingerprint=AB:CD:EF:...&amp;#39;
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;Do the same with &lt;code&gt;--type pbs&lt;/code&gt; for the backup server, and both show up in the remotes list, each with its audit token and pinned node:&lt;/p&gt;
&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;https://pdm.homelab.lan:8443&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/pdm-remotes.BIJDmlYI_ZHDARI.webp&quot; aria-label=&quot;Enlarge screenshot: The Remotes configuration table in Proxmox Datacenter Manager listing two remotes: office-cluster of type pve using the pdm@pve!pdm token, and pbs-demo of type pbs using the pdm@pbs!pdm token, each pinned to a homelab.lan node.&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/pdm-remotes.BIJDmlYI_2virHD.webp&quot; alt=&quot;The Remotes configuration table in Proxmox Datacenter Manager listing two remotes: office-cluster of type pve using the pdm@pve!pdm token, and pbs-demo of type pbs using the pdm@pbs!pdm token, each pinned to a homelab.lan node.&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1400&quot; height=&quot;831&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Two remotes registered — a PVE cluster and a PBS — each connected with a read-only token, not an admin login.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h3 id=&quot;why-the-fingerprint-step-matters&quot;&gt;Why the fingerprint step matters&lt;/h3&gt;
&lt;p&gt;Proxmox nodes use self-signed certificates by default, so there’s no public authority vouching for them. When you accept the fingerprint in that wizard, PDM &lt;strong&gt;pins&lt;/strong&gt; it: from then on it will only talk to a node presenting that exact certificate. If the certificate ever changes without you re-approving it — a reinstall, or something malicious sitting in the middle — the connection breaks instead of trusting the impostor. Those pinned fingerprints live in &lt;code&gt;/etc/proxmox-datacenter-manager/remotes.cfg&lt;/code&gt;, which also holds the token secrets, so treat that file as a secret in its own right.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-single-pane--and-the-one-tile-that-stays-amber&quot;&gt;The single pane — and the one tile that stays amber&lt;/h2&gt;
&lt;p&gt;With both remotes connected, the dashboard finally does what I wanted: every node, guest, and datastore across separate clusters on one screen, with aggregated CPU, memory, and storage gauges.&lt;/p&gt;
&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;https://pdm.homelab.lan:8443&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/pdm-dashboard.kDduIF16_51ABJ.webp&quot; aria-label=&quot;Enlarge screenshot: The Proxmox Datacenter Manager dashboard showing aggregated status: one Virtual Environment node online, virtual machines and containers counts, a Backup Server tile, and resource-usage gauges for CPU, memory, and storage across the connected remotes.&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/pdm-dashboard.kDduIF16_1bl0Db.webp&quot; alt=&quot;The Proxmox Datacenter Manager dashboard showing aggregated status: one Virtual Environment node online, virtual machines and containers counts, a Backup Server tile, and resource-usage gauges for CPU, memory, and storage across the connected remotes.&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1400&quot; height=&quot;831&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;The payoff: guests and resource usage from independent clusters aggregated into one view.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Notice the “Remotes” tile isn’t all green. That isn’t a deployment mistake; it’s the read-only choice showing its edges, which brings me to the rough parts.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;three-rough-edges-and-which-to-ignore&quot;&gt;Three rough edges, and which to ignore&lt;/h2&gt;
&lt;p&gt;None of these stopped the deploy. Two are non-issues you should expect; one is a real limitation to plan around.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;A 403 in the log every cycle: ignore it.&lt;/strong&gt; PDM keeps trying to fetch each node’s available-updates list, and reading that needs the &lt;code&gt;Sys.Modify&lt;/code&gt; privilege. Your audit token doesn’t have it, so you get a benign &lt;code&gt;403&lt;/code&gt; per node per cycle. That’s the least-privilege bargain working as intended, not a fault. If you genuinely want update visibility in the pane, grant &lt;code&gt;Sys.Modify&lt;/code&gt; later, on purpose.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;A read-only remote can’t populate every tile: expect it.&lt;/strong&gt; On my Backup Server remote, PDM’s own resource-collection call comes back &lt;code&gt;403: permission check failed&lt;/code&gt;, so the backup node reads as offline in the dashboard even though the connection itself is fine (the CLI happily reports its version). A pure audit token is enough to &lt;em&gt;register and reach&lt;/em&gt; a PBS, but some of the richer status views want a broader read scope than the base Audit role grants. Decide per remote whether you’d rather see the extra detail or keep the tighter token.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The 1.1.7 client CLI won’t do password-file auth: work around it.&lt;/strong&gt; There’s a separate &lt;code&gt;proxmox-datacenter-manager-client&lt;/code&gt; binary, and in 1.1.7 it rejects &lt;code&gt;--user root@pam --password-file&lt;/code&gt; as &lt;code&gt;unauthorized&lt;/code&gt; even when the exact same credentials succeed against the raw API. The web UI, the admin CLI, and the API are all fine, so don’t burn an afternoon on it like I nearly did; just use one of those instead.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Audit tokens are for watching, not moving&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;If you later want PDM 1.1’s cross-cluster VM migration, remember these tokens can’t do it — migration writes to both clusters. Re-scope the tokens for that job specifically, rather than handing PDM standing write access it doesn’t need the rest of the time.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;tearing-it-back-down&quot;&gt;Tearing it back down&lt;/h2&gt;
&lt;p&gt;Because PDM joins nothing, removing it is clean: delete the remotes (or just destroy the container), then delete the &lt;code&gt;pdm@pve&lt;/code&gt; and &lt;code&gt;pdm@pbs&lt;/code&gt; users and their tokens on each cluster. Nothing on the clusters themselves depended on it, and that independence is the same reason it was safe to point at production in the first place.&lt;/p&gt;
&lt;p&gt;For a single cluster, I’d still tell you to skip it. But the day you’re logging into three Proxmox tabs to answer “is everything up?”, PDM is the fix, and now you can stand it up in an afternoon with credentials that can’t hurt you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-cluster-hp-elitedesk/&quot;&gt;Building a 4-Node Proxmox Cluster on HP EliteDesk Mini PCs&lt;/a&gt; — the kind of cluster that becomes remote number one in PDM&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-cluster-as-code-import-first/&quot;&gt;Turn a Hand-Built Proxmox Cluster Into Code Without Breaking It&lt;/a&gt; — where I first leaned on the PVEAuditor read-only role&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-backup-server/&quot;&gt;Proxmox Backup Server: Automated CT and VM Backups&lt;/a&gt; — the PBS that becomes a read-only remote here&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-security-hardening/&quot;&gt;Proxmox Security Hardening: SSH Keys, Firewall, and Locking Down a New Cluster&lt;/a&gt; — the least-privilege posture this guide extends to tokens&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/grafana-prometheus-proxmox/&quot;&gt;Proxmox Monitoring with Prometheus and Grafana&lt;/a&gt; — the metrics pane PDM complements rather than replaces&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/complete-proxmox-homelab-guide/&quot;&gt;The Complete Proxmox Homelab Guide (2026)&lt;/a&gt; — the starting point if you’re not yet at “more than one cluster”&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sources: &lt;a href=&quot;https://pdm.proxmox.com/docs/&quot;&gt;Proxmox Datacenter Manager Documentation&lt;/a&gt;, &lt;a href=&quot;https://pdm.proxmox.com/docs/installation.html&quot;&gt;PDM Installation Guide&lt;/a&gt;, &lt;a href=&quot;https://pve.proxmox.com/pve-docs/pveum-plain.html&quot;&gt;Proxmox VE User Management — API Tokens and PVEAuditor&lt;/a&gt;, &lt;a href=&quot;https://pbs.proxmox.com/docs/&quot;&gt;Proxmox Backup Server Documentation&lt;/a&gt;.&lt;/p&gt;</content:encoded><category>proxmox</category><category>infrastructure</category></item><item><title>Immich vs PhotoPrism vs Nextcloud: Which Self-Hosted Photos?</title><link>https://peira.dev/articles/immich-vs-photoprism-vs-nextcloud/</link><guid isPermaLink="true">https://peira.dev/articles/immich-vs-photoprism-vs-nextcloud/</guid><description>A practical 2026 comparison of Immich, PhotoPrism, and Nextcloud for self-hosted photos — mobile backup, AI search, format support, resources, and licensing — to replace Google Photos on your own hardware.</description><pubDate>Fri, 11 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;TL;DR — Pick Immich to replace the Google Photos app on your phone (best mobile auto-backup and search), PhotoPrism if you’re an archivist who wants CPU-only AI and the widest format support, and Nextcloud if you want one self-hosted cloud for files, calendar, and contacts with photos as one app among many.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Your photos are the one truly irreplaceable thing on your homelab, and the reason most people finally build one is to stop renting the shelf they sit on. The three names in every “self-hosted Google Photos” thread are &lt;strong&gt;&lt;a href=&quot;https://immich.app/&quot;&gt;Immich&lt;/a&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;a href=&quot;https://www.photoprism.app/&quot;&gt;PhotoPrism&lt;/a&gt;&lt;/strong&gt;, and &lt;strong&gt;&lt;a href=&quot;https://nextcloud.com/&quot;&gt;Nextcloud&lt;/a&gt;&lt;/strong&gt; (its Photos + Memories apps) — and they’re built around genuinely different priorities, so the “best” one depends on what you actually want out of it.&lt;/p&gt;
&lt;p&gt;I run &lt;a href=&quot;https://peira.dev/articles/immich-proxmox-photos/&quot;&gt;Immich on my own Proxmox box&lt;/a&gt;, so that’s my daily driver — but here’s the honest three-way for different needs.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-short-answer&quot;&gt;The short answer&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Pick Immich&lt;/strong&gt; if you want to &lt;em&gt;replace the Google Photos app on your phone&lt;/em&gt;: the best native mobile auto-backup, plus fast face and natural-language search.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pick PhotoPrism&lt;/strong&gt; if you’re an &lt;em&gt;archivist&lt;/em&gt;: the widest format support, CPU-only AI that runs anywhere, and the lowest day-to-day fuss.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pick Nextcloud&lt;/strong&gt; if you want &lt;em&gt;one self-hosted cloud for everything&lt;/em&gt; — files, calendar, contacts, office — with photos as a first-class app rather than the whole point.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;at-a-glance&quot;&gt;At a glance&lt;/h2&gt;
&lt;figure class=&quot;cmp&quot; data-astro-cid-mmnll3zm&gt;&lt;div class=&quot;cmp-scroll&quot; data-astro-cid-mmnll3zm&gt;&lt;table class=&quot;cmp-table&quot; data-astro-cid-mmnll3zm&gt;&lt;thead data-astro-cid-mmnll3zm&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;col&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;&amp;nbsp;&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;Immich&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;PhotoPrism&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;Nextcloud (Photos + Memories)&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody data-astro-cid-mmnll3zm&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Primary focus&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Google Photos replacement (photos/video first)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Photo library &amp; archival&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Full cloud suite — photos are one app&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Mobile auto-backup&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Best-in-class native apps (reliable iOS background upload)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;No first-class app (WebDAV / PWA / 3rd-party)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes — via the Nextcloud mobile app&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Search&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Semantic (natural language) + OCR + face&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Label-based + face (not semantic)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Face/object via Recognize (CPU)&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;ML acceleration&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;GPU/iGPU (OpenVINO, CUDA, ROCm, NPU) or CPU&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;CPU-only (runs anywhere)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;CPU-only (Recognize)&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Format breadth&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Broad (RAW, HEIC, video)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Widest (RAW, HEIC, JPEG-XL, Live/Motion photos)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Standard&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Beyond photos&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;No — photos &amp; video only&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;No — photos only&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes — files, calendar, contacts, office&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Resource weight&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Heavier: Postgres on local SSD, 6–8 GB RAM with ML&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Light–moderate (CPU ML)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Moderate–heavy (full platform)&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;License &amp;amp; cost&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Free, open (AGPL)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Open (AGPL); optional paid membership funds extras&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Free, open (AGPL); paid enterprise support&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Best for&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Replacing Google Photos on your phone&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Archivists who want format breadth + low fuss&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;One ecosystem for everything, photos included&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;figcaption class=&quot;cmp-caption&quot; data-astro-cid-mmnll3zm&gt;Three different priorities: a phone-replacement, an archivist&amp;#39;s library, and a full cloud suite. Pick by which of those you actually want.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-question-that-decides-it-for-most-people-mobile-backup&quot;&gt;The question that decides it for most people: mobile backup&lt;/h2&gt;
&lt;p&gt;If your real goal is “take a photo on my phone and have it land safely on my server without thinking,” this is where the three separate hard:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Immich&lt;/strong&gt; is built to &lt;em&gt;be&lt;/em&gt; the Google Photos app. Its iOS and Android apps do reliable background auto-backup — including the notoriously fiddly iOS background upload — which is why most people switching from Google Photos land here. See the &lt;a href=&quot;https://peira.dev/articles/immich-proxmox-photos/&quot;&gt;Immich on Proxmox guide&lt;/a&gt; for the setup.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Nextcloud&lt;/strong&gt; backs photos up through its general mobile app’s auto-upload. It works well and you get everything else Nextcloud does alongside it, but the photo experience is an app on a platform, not the platform itself.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;PhotoPrism&lt;/strong&gt; has &lt;strong&gt;no first-class backup app&lt;/strong&gt;. You get photos in via WebDAV, a third-party sync app (e.g. PhotoSync), or its web PWA. That’s fine for an archive you feed deliberately, and a dealbreaker if you want hands-off phone backup.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Pair any of them with real backups&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Whichever you pick, the app is not your backup — it’s the front end. Keep an independent copy of the originals (the 3-2-1 rule matters most for photos), ideally on a &lt;a href=&quot;https://peira.dev/articles/use-a-nas-with-your-homelab/&quot;&gt;NAS&lt;/a&gt; with its own snapshots, so a bad upgrade or a corrupted database never costs you a memory.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;search--ai&quot;&gt;Search &amp;amp; AI&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Immich&lt;/strong&gt; has the most modern search: &lt;strong&gt;semantic / natural-language&lt;/strong&gt; (“beach at sunset”), OCR (find text in images), and face recognition — and it’s the only one that &lt;strong&gt;GPU/iGPU-accelerates&lt;/strong&gt; its ML, so a big library indexes fast on the right hardware. It runs CPU-only too, just slower.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;PhotoPrism&lt;/strong&gt; does &lt;strong&gt;label-based&lt;/strong&gt; tagging and face recognition with &lt;strong&gt;CPU-only&lt;/strong&gt; built-in AI that runs anywhere. It’s excellent at organizing and browsing; the search is keyword/label, not conversational.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Nextcloud&lt;/strong&gt; adds face/object recognition through the &lt;strong&gt;Recognize&lt;/strong&gt; app (CPU-only). It’s capable, but Recognize is officially maintained with limited effort (critical fixes), so treat it as a nice bonus rather than the reason to choose Nextcloud.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;beyond-photos--nextclouds-real-pitch&quot;&gt;Beyond photos — Nextcloud’s real pitch&lt;/h2&gt;
&lt;p&gt;The honest reason to pick &lt;strong&gt;Nextcloud&lt;/strong&gt; usually isn’t the photo app at all — it’s that photos ride along inside a full self-hosted &lt;strong&gt;cloud&lt;/strong&gt;: file sync, calendar, contacts, an office suite, and hundreds of apps. If you want to de-Google more than just photos, one Nextcloud install covers a lot of ground, and Memories gives it a genuinely good timeline. If you &lt;em&gt;only&lt;/em&gt; want photos, Nextcloud is heavier than it needs to be — that’s Immich or PhotoPrism territory.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;resources--stability&quot;&gt;Resources &amp;amp; stability&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Immich&lt;/strong&gt; is the heaviest: it wants &lt;strong&gt;PostgreSQL on local SSD&lt;/strong&gt; (not a network share) and roughly &lt;strong&gt;6–8 GB RAM with ML enabled&lt;/strong&gt;. It’s mature now (stable 2.0 in late 2025, 3.0 in 2026) but still ships &lt;strong&gt;occasional breaking releases&lt;/strong&gt; — pin versions and read release notes before major jumps.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;PhotoPrism&lt;/strong&gt; is the lowest-fuss: CPU-only ML, broad format support, and a reputation for stability — a “set it and let it index” archive.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Nextcloud&lt;/strong&gt; carries the weight of a full platform; sized right it’s fine, but it’s more moving parts than a dedicated photo app.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;who-should-pick-what&quot;&gt;Who should pick what&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;You want to delete the Google Photos app and never look back:&lt;/strong&gt; &lt;strong&gt;Immich.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;You’re an archivist with a big, format-diverse library and want low maintenance:&lt;/strong&gt; &lt;strong&gt;PhotoPrism.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;You want one self-hosted cloud for files, calendar, contacts &lt;em&gt;and&lt;/em&gt; photos:&lt;/strong&gt; &lt;strong&gt;Nextcloud.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Can’t decide and have the RAM?&lt;/strong&gt; Run &lt;strong&gt;Immich for phone backup&lt;/strong&gt; and keep a &lt;strong&gt;Nextcloud&lt;/strong&gt; for everything else — they don’t conflict.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;They all install cleanly with &lt;a href=&quot;https://peira.dev/articles/first-docker-compose-stack/&quot;&gt;Docker Compose&lt;/a&gt;, so trying one is a low-cost experiment — just point it at a &lt;em&gt;copy&lt;/em&gt; of some photos first, not your only copy.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/immich-proxmox-photos/&quot;&gt;Self-Host Your Photos with Immich&lt;/a&gt; — the hands-on Immich build on Proxmox&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/use-a-nas-with-your-homelab/&quot;&gt;How to Actually Use a NAS with Your Homelab&lt;/a&gt; — where a growing photo library should live&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/first-docker-compose-stack/&quot;&gt;Your First Docker Compose Stack&lt;/a&gt; — the deployment pattern all three use&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-backup-server/&quot;&gt;Proxmox Backup Server&lt;/a&gt; — back up the library you now own&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/plex-vs-jellyfin/&quot;&gt;Plex vs Jellyfin (and where Emby fits)&lt;/a&gt; — the media-server side of self-hosting&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sources: &lt;a href=&quot;https://immich.app/&quot;&gt;Immich&lt;/a&gt; · &lt;a href=&quot;https://www.photoprism.app/&quot;&gt;PhotoPrism&lt;/a&gt; · &lt;a href=&quot;https://nextcloud.com/&quot;&gt;Nextcloud&lt;/a&gt; · &lt;a href=&quot;https://homenode.tech/best-self-hosted-photo-manager-2026/&quot;&gt;2026 self-hosted photo comparison&lt;/a&gt;&lt;/p&gt;</content:encoded><category>comparison</category><category>self-hosted</category><category>media</category></item><item><title>Pi-hole vs AdGuard Home: Which Network Ad Blocker?</title><link>https://peira.dev/articles/pihole-vs-adguard-home/</link><guid isPermaLink="true">https://peira.dev/articles/pihole-vs-adguard-home/</guid><description>A practical 2026 comparison of Pi-hole (v6) and AdGuard Home — encrypted DNS, per-client filtering, parental controls, blocklists, and setup — to pick the right network-wide DNS ad blocker for your homelab.</description><pubDate>Fri, 11 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;TL;DR — Pick AdGuard Home for the easiest all-in-one (single binary, encrypted DNS and per-client controls built in); pick Pi-hole for the largest blocklist community and the Unbound privacy ecosystem. It’s a genuinely close call, and either runs happily on a Raspberry Pi or in a container.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A network-wide DNS ad blocker is one of the highest-value things you can add to a homelab: one small service, and every device in the house — phones, TVs, IoT junk that has no ad-blocker of its own — stops resolving ad and tracker domains. The two names that own this space are &lt;strong&gt;&lt;a href=&quot;https://pi-hole.net/&quot;&gt;Pi-hole&lt;/a&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;a href=&quot;https://adguard.com/en/adguard-home/overview.html&quot;&gt;AdGuard Home&lt;/a&gt;&lt;/strong&gt;, both free and open source. They do the same core job; they differ in what comes &lt;em&gt;built in&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;I run &lt;a href=&quot;https://peira.dev/articles/pihole-proxmox-lxc/&quot;&gt;Pi-hole in an LXC&lt;/a&gt; on my own lab, so that’s my daily driver — but here’s the honest two-way.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-short-answer&quot;&gt;The short answer&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Pick AdGuard Home&lt;/strong&gt; if you want the easiest all-in-one: a single binary, encrypted DNS (DoH/DoT/DoQ) with no add-ons, and built-in per-client parental controls. The best default for newcomers and families.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pick Pi-hole&lt;/strong&gt; if you want the largest blocklist community, deep Docker integration, and the &lt;strong&gt;Unbound&lt;/strong&gt; ecosystem for maximum DNS privacy — and you like its modernised v6 interface.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Either is a great choice&lt;/strong&gt; — this is a genuinely close call, and both run happily in a container or on a Raspberry Pi.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;at-a-glance&quot;&gt;At a glance&lt;/h2&gt;
&lt;figure class=&quot;cmp&quot; data-astro-cid-mmnll3zm&gt;&lt;div class=&quot;cmp-scroll&quot; data-astro-cid-mmnll3zm&gt;&lt;table class=&quot;cmp-table&quot; data-astro-cid-mmnll3zm&gt;&lt;thead data-astro-cid-mmnll3zm&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;col&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;&amp;nbsp;&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;Pi-hole (v6)&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;AdGuard Home&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody data-astro-cid-mmnll3zm&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;License&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Free &amp; open source&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Free &amp; open source (by AdGuard)&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Setup &amp;amp; footprint&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;FTL binary + web UI + REST API (v6); Pi/Docker&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Single Go binary; browser setup wizard&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Encrypted DNS (DoH/DoT/DoQ)&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Not native — add cloudflared (DoH) or Unbound&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Built-in, both directions (upstream + server)&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Per-client filtering&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Via Groups (more manual)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;First-class clients (IP/CIDR/MAC/ClientID) + per-client lists&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Parental controls / SafeSearch&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Not built-in&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Built-in: forced SafeSearch, adult filter, per-service schedules&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Blocklists&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Largest community; allowlists (antigravity) in v6&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Curated built-in lists + custom&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;DHCP server&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Optional (built-in)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Optional (built-in)&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Local DNS / rewrites&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes — local DNS records&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes — DNS rewrites&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Recursive resolver&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Unbound ecosystem (popular, well-documented)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Possible, but DoH/DoT upstreams are the norm&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Best for&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Max control + privacy (Unbound); biggest community&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Easiest all-in-one; encrypted DNS + family controls&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;figcaption class=&quot;cmp-caption&quot; data-astro-cid-mmnll3zm&gt;Both are free, open source, and block ads network-wide. The real difference is what ships built in — encrypted DNS and parental controls (AdGuard Home) vs community + the Unbound privacy ecosystem (Pi-hole).&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-biggest-difference-encrypted-dns-out-of-the-box&quot;&gt;The biggest difference: encrypted DNS out of the box&lt;/h2&gt;
&lt;p&gt;This is where they genuinely diverge. &lt;strong&gt;AdGuard Home&lt;/strong&gt; speaks &lt;strong&gt;DoH, DoT, and DoQ&lt;/strong&gt; natively — it can use an encrypted upstream &lt;em&gt;and&lt;/em&gt; present itself as an encrypted DNS server to your own devices, with nothing extra to install. If “my DNS queries shouldn’t travel in plaintext” is on your list, AdGuard Home gets you there in the setup wizard.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pi-hole&lt;/strong&gt; talks plain DNS to its upstream by design, so encryption is an &lt;strong&gt;add-on&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Pi-hole → cloudflared&lt;/strong&gt; gives you DNS-over-HTTPS to a public resolver.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pi-hole → &lt;a href=&quot;https://docs.pi-hole.net/guides/dns/unbound/&quot;&gt;Unbound&lt;/a&gt;&lt;/strong&gt; turns it into your &lt;em&gt;own&lt;/em&gt; recursive resolver — no third-party upstream at all, which is the most private option available on either platform and a big reason the Pi-hole + Unbound combo is so popular.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So: AdGuard Home is easier for encrypted DNS; Pi-hole + Unbound is arguably &lt;em&gt;more&lt;/em&gt; private if you’re willing to run the extra piece.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;per-client--parental-controls&quot;&gt;Per-client &amp;amp; parental controls&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;AdGuard Home&lt;/strong&gt; treats every client as a first-class object — identify a device by IP, CIDR, MAC, or ClientID, then give it its own upstreams, its own blocklists, forced SafeSearch on Google/YouTube/Bing/DuckDuckGo, an adult-content filter, and per-service blocking (e.g., block TikTok on the kids’ devices between 9pm and 7am). For a family network, that’s a genuinely different level of control.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pi-hole&lt;/strong&gt; does per-device filtering through &lt;strong&gt;Groups&lt;/strong&gt;: assign clients to a group, give the group different blocklists. It works and it’s flexible, but it’s more manual and there’s no one-click parental-controls equivalent.&lt;/p&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Whichever you run, make it redundant&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Your DNS blocker becomes a single point of failure for the whole network — if it’s down, nothing resolves. Run a second instance (a tiny second container or Pi) as a secondary resolver, and hand both addresses out over DHCP. Both Pi-hole and AdGuard Home support this; it’s the difference between “the internet is broken” and “huh, one blocker rebooted.”&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;pi-hole-v6-closed-the-ui-gap&quot;&gt;Pi-hole v6 closed the UI gap&lt;/h2&gt;
&lt;p&gt;Pi-hole’s old knock was a dated stack. &lt;strong&gt;v6&lt;/strong&gt; fixed most of it: the lighttpd + PHP web stack was replaced by a &lt;strong&gt;single FTL binary&lt;/strong&gt; that serves the web UI and a proper &lt;strong&gt;REST API&lt;/strong&gt; itself, with native HTTPS (custom or auto-generated certs), settings split into &lt;strong&gt;Basic and Expert&lt;/strong&gt; modes, and &lt;strong&gt;allowlist subscriptions&lt;/strong&gt; (“antigravity”) alongside blocklists. If you dismissed Pi-hole on looks a couple of years ago, v6 is worth another look.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;community--ecosystem&quot;&gt;Community &amp;amp; ecosystem&lt;/h2&gt;
&lt;p&gt;Pi-hole has the &lt;strong&gt;largest blocklist community&lt;/strong&gt; and the deepest ecosystem — more third-party lists, guides, Docker integrations, and the well-trodden Unbound path. AdGuard Home counters with &lt;strong&gt;single-binary simplicity&lt;/strong&gt; and more batteries included. Both are actively maintained in 2026.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;who-should-pick-what&quot;&gt;Who should pick what&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Newcomer, or you want encrypted DNS and family controls with zero add-ons:&lt;/strong&gt; &lt;strong&gt;AdGuard Home.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;You want maximum DNS privacy (your own recursive resolver) and the biggest blocklist/community ecosystem:&lt;/strong&gt; &lt;strong&gt;Pi-hole + Unbound.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;You just want ads gone network-wide and don’t want to overthink it:&lt;/strong&gt; either — flip a coin, both are excellent.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Run two&lt;/strong&gt; of whichever you pick, so DNS survives a reboot.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once it’s up, point your router’s DHCP at it (or hand it out per-device) and pair it with &lt;a href=&quot;https://peira.dev/articles/pihole-proxmox-lxc/&quot;&gt;local DNS records&lt;/a&gt; so &lt;code&gt;service.homelab.lan&lt;/code&gt; resolves across the network.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/pihole-proxmox-lxc/&quot;&gt;Pi-hole on Proxmox LXC&lt;/a&gt; — the hands-on Pi-hole build&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/common-homelab-network-issues/&quot;&gt;Common Homelab Network Issues&lt;/a&gt; — when DNS is the thing that’s actually broken&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/vlans-for-beginners-segmenting-iot/&quot;&gt;VLANs for Beginners: Segmenting IoT&lt;/a&gt; — pair DNS filtering with network segmentation&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;Tailscale Subnet Router&lt;/a&gt; — reach (and use) your DNS blocker from anywhere&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/traefik-vs-nginx-proxy-manager-vs-caddy/&quot;&gt;Traefik vs Nginx Proxy Manager vs Caddy&lt;/a&gt; — the other half of clean internal networking&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sources: &lt;a href=&quot;https://pi-hole.net/&quot;&gt;Pi-hole&lt;/a&gt; · &lt;a href=&quot;https://adguard.com/en/adguard-home/overview.html&quot;&gt;AdGuard Home&lt;/a&gt; · &lt;a href=&quot;https://www.howtogeek.com/pi-hole-v6-release/&quot;&gt;Pi-hole v6 release&lt;/a&gt; · &lt;a href=&quot;https://homelabcompass.com/compare/pihole-vs-adguard-home&quot;&gt;2026 comparison&lt;/a&gt;&lt;/p&gt;</content:encoded><category>comparison</category><category>networking</category><category>self-hosted</category><category>security</category></item><item><title>Proxmox vs TrueNAS vs Unraid: Which Homelab OS Should You Run?</title><link>https://peira.dev/articles/proxmox-vs-truenas-vs-unraid/</link><guid isPermaLink="true">https://peira.dev/articles/proxmox-vs-truenas-vs-unraid/</guid><description>A practical 2026 comparison of Proxmox VE, TrueNAS, and Unraid — virtualization, storage models, licensing, apps, and clustering — to pick the right foundation for your homelab.</description><pubDate>Fri, 11 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;TL;DR — Pick Proxmox VE when virtualization is the point, TrueNAS when ZFS storage and data integrity come first, and Unraid for one flexible box that mixes drive sizes and runs storage + Docker + VMs. The common “advanced” answer is Proxmox as the base with TrueNAS virtualized on top.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The first real decision in a homelab isn’t which apps to run — it’s what operating system sits under everything. Get it wrong and you fight your own foundation for years. The three names you’ll keep hearing are &lt;strong&gt;&lt;a href=&quot;https://www.proxmox.com/en/proxmox-virtual-environment/overview&quot;&gt;Proxmox VE&lt;/a&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;a href=&quot;https://www.truenas.com/&quot;&gt;TrueNAS&lt;/a&gt;&lt;/strong&gt;, and &lt;strong&gt;&lt;a href=&quot;https://unraid.net/&quot;&gt;Unraid&lt;/a&gt;&lt;/strong&gt; — and the reason people argue about them is that they’re not really the same kind of thing. One is a hypervisor, one is a NAS, and one is a deliberately flexible all-in-one.&lt;/p&gt;
&lt;p&gt;I run Proxmox as the base of my own cluster, so I’ll be upfront about that bias — but the honest answer here is “it depends on what your lab is &lt;em&gt;for&lt;/em&gt;,” and this guide is about matching the tool to that.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-short-answer&quot;&gt;The short answer&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Pick Proxmox VE&lt;/strong&gt; if virtualization is the point: lots of VMs and LXC containers, clustering, live migration, and you’re comfortable with a sysadmin-flavored tool.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pick TrueNAS&lt;/strong&gt; if bulk storage and data integrity come first: a storage-first NAS built on ZFS, with apps and VMs as a bonus.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pick Unraid&lt;/strong&gt; if you want one approachable box that does storage + Docker apps + VMs, especially with &lt;strong&gt;hard drives of different sizes&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Combine them&lt;/strong&gt; — the most common “advanced” answer is Proxmox as the base with TrueNAS (or a storage VM) virtualized on top.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;at-a-glance&quot;&gt;At a glance&lt;/h2&gt;
&lt;figure class=&quot;cmp&quot; data-astro-cid-mmnll3zm&gt;&lt;div class=&quot;cmp-scroll&quot; data-astro-cid-mmnll3zm&gt;&lt;table class=&quot;cmp-table&quot; data-astro-cid-mmnll3zm&gt;&lt;thead data-astro-cid-mmnll3zm&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;col&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;&amp;nbsp;&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;Proxmox VE&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;TrueNAS&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;Unraid&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody data-astro-cid-mmnll3zm&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Primary focus&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Virtualization (VMs + LXC)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Storage / NAS (ZFS)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;All-in-one flexibility&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;License &amp;amp; cost&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Free &amp; open (Debian); paid enterprise repo/support optional&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Free &amp; open (Community Edition); paid iX appliances/support&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Paid: $49 Starter / $109 Unleashed / $249 Lifetime — closed source&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Storage model&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;ZFS, LVM, Ceph, or plain dir — your choice&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;ZFS pools (RAID-Z); storage-first&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Unraid array: mix drive sizes, 1–2 parity + ZFS/cache pools&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Mixed-size disks&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;ZFS wants matched disks per vdev&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;ZFS wants matched disks per vdev&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes — the array&apos;s headline feature&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Virtual machines&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;KVM, first-class: clusters, live migration, HA&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;KVM (Fangtooth), basic&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;KVM, GUI-driven, solid&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Containers / apps&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;LXC system containers; Docker via a VM/LXC&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Docker Compose apps + catalog (since 24.10)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Docker with a huge community app catalog&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Clustering / HA&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes — multi-node, live migration, HA&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Single node (HA is enterprise)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Single node&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Ease of use&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Steeper; sysadmin-flavored&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Approachable NAS UI&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Easiest for mixed media + app boxes&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Best for&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Running many VMs/containers; clusters&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Bulk storage + data integrity first&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;One box: media, apps, storage, mixed disks&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;figcaption class=&quot;cmp-caption&quot; data-astro-cid-mmnll3zm&gt;The three differ by purpose, not just features: a hypervisor, a NAS, and an all-in-one. Match the tool to what your lab is primarily for.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-each-one-actually-is&quot;&gt;What each one actually is&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Proxmox VE&lt;/strong&gt; is a &lt;strong&gt;hypervisor&lt;/strong&gt; — a Debian-based OS whose whole job is running &lt;a href=&quot;https://peira.dev/articles/proxmox-vm-vs-lxc/&quot;&gt;KVM virtual machines and LXC containers&lt;/a&gt; from one web UI. It clusters multiple machines, does &lt;a href=&quot;https://peira.dev/articles/proxmox-cluster-setup/&quot;&gt;live migration and high availability&lt;/a&gt;, and supports ZFS and Ceph for storage. It’s free and open source; the only paid part is an optional enterprise update repo and support subscription. It is &lt;strong&gt;not&lt;/strong&gt; a NAS in spirit — it can serve files, but there’s no friendly share-management UI.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TrueNAS&lt;/strong&gt; is a &lt;strong&gt;NAS operating system&lt;/strong&gt; — storage first, everything else second. It’s built on &lt;strong&gt;ZFS&lt;/strong&gt;, so checksummed data integrity, snapshots, and RAID-Z are the core of the product. As of &lt;strong&gt;TrueNAS 25.04 “Fangtooth,”&lt;/strong&gt; the old FreeBSD CORE and Linux SCALE editions were unified into a single &lt;strong&gt;Linux-based Community Edition&lt;/strong&gt;, and the app ecosystem moved from Kubernetes to &lt;strong&gt;Docker Compose&lt;/strong&gt; in the 24.10 release. It’s free and open; iXsystems sells supported appliances. (&lt;a href=&quot;https://www.truenas.com/blog/truenas-fangtooth-25-04-release/&quot;&gt;TrueNAS Fangtooth release&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Unraid&lt;/strong&gt; is a &lt;strong&gt;flexible all-in-one&lt;/strong&gt; — a paid, closed-source OS designed so one box can be a NAS, a Docker host, and a VM host at once. Its signature is the &lt;strong&gt;Unraid array&lt;/strong&gt;: you can pool disks of &lt;strong&gt;different sizes&lt;/strong&gt; with one or two parity drives, add a bigger disk later without rebuilding, and each disk holds whole files (so a single dead disk beyond parity only loses that disk’s contents, not the pool). It also supports ZFS and cache pools now, and has arguably the friendliest UI of the three for media/app homelabs.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-biggest-real-difference-the-storage-model&quot;&gt;The biggest real difference: the storage model&lt;/h2&gt;
&lt;p&gt;This is where the choice actually gets decided.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;ZFS (Proxmox, TrueNAS)&lt;/strong&gt; gives you the strongest data integrity — every block is checksummed and self-heals from redundancy — plus instant snapshots and cheap replication. The trade-off: a ZFS vdev generally wants &lt;strong&gt;matched disks&lt;/strong&gt;, and expanding a pool means adding a whole vdev (or, more recently, RAID-Z expansion disk-by-disk with caveats). It rewards planning the layout up front. See the &lt;a href=&quot;https://peira.dev/articles/proxmox-storage-guide/&quot;&gt;Proxmox storage guide&lt;/a&gt; for how ZFS, LVM, and Ceph compare there.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The Unraid array&lt;/strong&gt; optimizes for &lt;strong&gt;flexibility and low power&lt;/strong&gt;: throw in whatever disks you have, grow one at a time, and only the disks being read spin up (quieter, cheaper to run). The trade-off is that it isn’t ZFS-grade integrity on the array itself (you add a cache/ZFS pool for that), and parity rebuilds are slower than a RAID-Z resilver.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Rule of thumb:&lt;/strong&gt; if you’re buying a matched set of drives and care most about integrity, ZFS (TrueNAS or Proxmox). If you’re pooling mismatched drives you already own and care most about flexibility and low power, Unraid.&lt;/p&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;You don&amp;#39;t always have to choose&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;A very common homelab pattern is &lt;strong&gt;Proxmox as the base, TrueNAS (or a storage VM) on top&lt;/strong&gt; — Proxmox runs your VMs and containers, and you pass disks or an HBA through to a TrueNAS guest that owns the storage and serves shares. You get Proxmox’s virtualization &lt;em&gt;and&lt;/em&gt; TrueNAS’s storage UI on one machine. It’s more moving parts, but it’s the “best of both” answer once you’re comfortable.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;cost--licensing&quot;&gt;Cost &amp;amp; licensing&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Proxmox VE&lt;/strong&gt; — free to download and use in full; the enterprise repo + support subscription is optional and per-node. No feature is paywalled for home use.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;TrueNAS&lt;/strong&gt; — the Community Edition is free and fully featured; iXsystems monetizes through hardware appliances and enterprise support, not a home paywall.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Unraid&lt;/strong&gt; — paid, one-time-ish licensing (2026): &lt;strong&gt;$49 Starter&lt;/strong&gt; (up to 6 attached devices), &lt;strong&gt;$109 Unleashed&lt;/strong&gt; (unlimited devices), &lt;strong&gt;$249 Lifetime&lt;/strong&gt;. Starter and Unleashed include one year of OS updates, after which a &lt;strong&gt;$36/year&lt;/strong&gt; extension is optional — the OS keeps running either way; the fee only buys newer versions. Core capabilities (NAS, Docker, VMs, array, cache pools) are &lt;strong&gt;not&lt;/strong&gt; split across tiers. (&lt;a href=&quot;https://unraid.net/blog/new-pricing&quot;&gt;Unraid pricing&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For most homelabbers the cost isn’t the deciding factor — Unraid’s fee is modest and buys a genuinely nicer all-in-one experience; Proxmox and TrueNAS being free-and-open matters more if you dislike closed source or want to cluster many nodes.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;virtualization--apps&quot;&gt;Virtualization &amp;amp; apps&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;VMs:&lt;/strong&gt; Proxmox is the clear leader — VMs and containers are the product, with clustering, snapshots, live migration, and HA. TrueNAS and Unraid both run KVM VMs competently via their GUIs, but neither clusters or live-migrates.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Containers/apps:&lt;/strong&gt; Unraid’s Docker experience, with its community-templated app catalog, is the friendliest for “click to install Jellyfin/Immich/etc.” TrueNAS now uses Docker Compose apps with a curated catalog. Proxmox uses &lt;strong&gt;LXC&lt;/strong&gt; system containers natively; for Docker you run it inside a VM or LXC (see &lt;a href=&quot;https://peira.dev/articles/docker-proxmox-lxc-vs-vm/&quot;&gt;Docker on Proxmox: LXC vs VM&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If your day-to-day is “spin up and tear down lots of VMs and containers,” Proxmox. If it’s “install a handful of self-hosted apps next to my files,” Unraid or TrueNAS feel more direct.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;who-should-pick-what&quot;&gt;Who should pick what&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Homelab-as-virtualization-lab, or multi-node/clustering:&lt;/strong&gt; &lt;strong&gt;Proxmox VE.&lt;/strong&gt; It’s the base my own cluster runs on, and nothing else here clusters or live-migrates.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Storage-first: a big, trustworthy pool of data (backups, media library, photos):&lt;/strong&gt; &lt;strong&gt;TrueNAS.&lt;/strong&gt; ZFS integrity + a real NAS UI, free and open.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One friendly box for media + apps + storage, especially with mismatched drives or a tight power budget:&lt;/strong&gt; &lt;strong&gt;Unraid.&lt;/strong&gt; The array flexibility and app catalog are worth the license.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;You want it all and don’t mind complexity:&lt;/strong&gt; &lt;strong&gt;Proxmox + TrueNAS virtualized on top.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Whichever you pick, the layer above it looks the same — &lt;a href=&quot;https://peira.dev/articles/first-docker-compose-stack/&quot;&gt;Docker Compose stacks&lt;/a&gt;, a &lt;a href=&quot;https://peira.dev/articles/plex-vs-jellyfin/&quot;&gt;media server&lt;/a&gt;, monitoring, backups. The OS is just the foundation; choose it for the job the lab is actually meant to do.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-vm-vs-lxc/&quot;&gt;VM vs LXC on Proxmox&lt;/a&gt; — the choice you make constantly once you’re on Proxmox&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-storage-guide/&quot;&gt;Proxmox Storage Guide: LVM, ZFS, NFS, and Ceph&lt;/a&gt; — the storage side in depth&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/use-a-nas-with-your-homelab/&quot;&gt;How to Actually Use a NAS with Your Homelab&lt;/a&gt; — wiring storage into whatever base you choose&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/docker-proxmox-lxc-vs-vm/&quot;&gt;Docker on Proxmox: LXC vs VM&lt;/a&gt; — running containers on the Proxmox route&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/plex-vs-jellyfin/&quot;&gt;Plex vs Jellyfin (and where Emby fits)&lt;/a&gt; — the media server that sits on top&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-create-lxc/&quot;&gt;Creating Your First Proxmox LXC Container&lt;/a&gt; — a first build on the Proxmox base&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sources: &lt;a href=&quot;https://unraid.net/blog/new-pricing&quot;&gt;Unraid pricing&lt;/a&gt; · &lt;a href=&quot;https://www.truenas.com/blog/truenas-fangtooth-25-04-release/&quot;&gt;TrueNAS Fangtooth 25.04&lt;/a&gt; · &lt;a href=&quot;https://www.proxmox.com/en/proxmox-virtual-environment/overview&quot;&gt;Proxmox VE&lt;/a&gt;&lt;/p&gt;</content:encoded><category>comparison</category><category>proxmox</category><category>infrastructure</category><category>self-hosted</category><category>storage</category></item><item><title>Traefik vs Nginx Proxy Manager vs Caddy: Which Reverse Proxy?</title><link>https://peira.dev/articles/traefik-vs-nginx-proxy-manager-vs-caddy/</link><guid isPermaLink="true">https://peira.dev/articles/traefik-vs-nginx-proxy-manager-vs-caddy/</guid><description>A practical 2026 comparison of Traefik, Nginx Proxy Manager, and Caddy — config style, automatic HTTPS, Docker discovery, performance, and GUI — to pick the right homelab reverse proxy.</description><pubDate>Fri, 11 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;TL;DR — Pick Nginx Proxy Manager if you’d rather click than edit config, Caddy for the simplest one-file setup with automatic HTTPS, and Traefik if you run lots of Docker services and want the proxy to configure itself from container labels.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Once your homelab runs more than a couple of services, you stop wanting to remember &lt;code&gt;10.0.0.20:3000&lt;/code&gt; and start wanting &lt;code&gt;grafana.homelab.lan&lt;/code&gt; with a padlock. That’s a &lt;a href=&quot;https://peira.dev/articles/what-is-traefik/&quot;&gt;reverse proxy&lt;/a&gt;, and the three names you’ll weigh are &lt;strong&gt;&lt;a href=&quot;https://traefik.io/traefik/&quot;&gt;Traefik&lt;/a&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;a href=&quot;https://nginxproxymanager.com/&quot;&gt;Nginx Proxy Manager&lt;/a&gt;&lt;/strong&gt; (NPM), and &lt;strong&gt;&lt;a href=&quot;https://caddyserver.com/&quot;&gt;Caddy&lt;/a&gt;&lt;/strong&gt;. All three are free, open source, and give you automatic HTTPS — the real difference is &lt;em&gt;how you tell them what to do&lt;/em&gt;.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-short-answer&quot;&gt;The short answer&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Pick Nginx Proxy Manager&lt;/strong&gt; if you’d rather click than edit config — it’s a friendly web GUI and the gentlest on-ramp.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pick Caddy&lt;/strong&gt; if you want the simplest possible setup: one small text file, HTTPS on by default.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pick Traefik&lt;/strong&gt; if you run lots of Docker services and want the proxy to configure &lt;em&gt;itself&lt;/em&gt; from container labels.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;at-a-glance&quot;&gt;At a glance&lt;/h2&gt;
&lt;figure class=&quot;cmp&quot; data-astro-cid-mmnll3zm&gt;&lt;div class=&quot;cmp-scroll&quot; data-astro-cid-mmnll3zm&gt;&lt;table class=&quot;cmp-table&quot; data-astro-cid-mmnll3zm&gt;&lt;thead data-astro-cid-mmnll3zm&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;col&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;&amp;nbsp;&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;Traefik&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;Nginx Proxy Manager&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;Caddy&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody data-astro-cid-mmnll3zm&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;How you configure it&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Docker labels + a small static file&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Web GUI — click to add hosts&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;One plain-text Caddyfile&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Automatic HTTPS (Let&amp;#39;s Encrypt)&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes (built-in ACME)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes (tick a box in the UI)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes — on by default, zero config&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Auto-discovers Docker services&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes — the standout feature&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;No (add each host in the UI)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;No (edit the file)&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Management GUI&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Read-only dashboard&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Full management GUI&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;None (file / API)&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Learning curve&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Steepest&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Gentlest&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Gentle&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Raw performance&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Trails on req/s + tail latency&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Fastest (nginx under the hood)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Close second&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Non-Docker backends&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;File provider&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes — any host:port in the UI&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes — reverse_proxy directive&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Extensibility&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Rich middleware chain&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;nginx directives (advanced tab)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Plugins via xcaddy&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Best for&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Docker-heavy labs that add services often&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Click-not-YAML; visual management&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Simplest HTTPS; one file&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;figcaption class=&quot;cmp-caption&quot; data-astro-cid-mmnll3zm&gt;All three are free, open source, and do automatic Let&amp;#39;s Encrypt certificates. The real split is the configuration philosophy: labels vs GUI vs a single file.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-one-thing-that-actually-decides-it-configuration-philosophy&quot;&gt;The one thing that actually decides it: configuration philosophy&lt;/h2&gt;
&lt;p&gt;Everything else follows from &lt;em&gt;how each expects you to define routes&lt;/em&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Traefik — the app describes itself.&lt;/strong&gt; You add a few labels to a Docker container and Traefik discovers it and starts routing instantly, no reload. The proxy config effectively maintains itself as you add and remove services. That’s a superpower on a busy &lt;a href=&quot;https://peira.dev/articles/docker-proxmox-lxc-vs-vm/&quot;&gt;Docker host&lt;/a&gt; and overkill on a static setup. It also reads &lt;em&gt;two&lt;/em&gt; kinds of config (a static file at startup for entrypoints/certs, and dynamic routes from labels) — a concept worth understanding, covered in &lt;a href=&quot;https://peira.dev/articles/what-is-traefik/&quot;&gt;What Is Traefik?&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Nginx Proxy Manager — you click.&lt;/strong&gt; NPM is a web UI on top of nginx: add a “Proxy Host,” point it at an internal address, tick SSL → Request a new certificate, done. Nothing to templatize, nothing to reload by hand. It’s the friendliest for people who don’t want YAML in their life, and it’s genuinely fast because nginx is doing the work underneath.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Caddy — one file.&lt;/strong&gt; A &lt;code&gt;Caddyfile&lt;/code&gt; is about as terse as config gets: a hostname, a &lt;code&gt;reverse_proxy&lt;/code&gt; line, and HTTPS is handled automatically. No GUI, no discovery — just a file you can read at a glance and keep in version control.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;The honest tie-breaker&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;If you add/remove Docker services weekly, &lt;strong&gt;Traefik&lt;/strong&gt; saves you the most over time. If you set up a handful of services and rarely touch them, &lt;strong&gt;Caddy&lt;/strong&gt; (one file) or &lt;strong&gt;NPM&lt;/strong&gt; (one GUI) is less to think about. There’s no wrong answer — pick the workflow you’ll actually enjoy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;automatic-https--a-wash-with-nuances&quot;&gt;Automatic HTTPS — a wash, with nuances&lt;/h2&gt;
&lt;p&gt;All three get you free, auto-renewing &lt;a href=&quot;https://peira.dev/articles/traefik-letsencrypt-setup/&quot;&gt;Let’s Encrypt&lt;/a&gt; certificates, so the padlock isn’t a deciding factor. The nuances:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Caddy&lt;/strong&gt; turns HTTPS on with zero configuration — it’s the whole design ethos.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Traefik&lt;/strong&gt; needs a certificate resolver defined once in static config; after that every service gets a cert automatically (and it’s the easiest of the three to issue a &lt;strong&gt;wildcard&lt;/strong&gt; via the DNS-01 challenge).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;NPM&lt;/strong&gt; does it per-host in the UI, including DNS-challenge wildcards, with a couple of clicks.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For an internal-only lab where services have no public port, all three can use the &lt;strong&gt;DNS challenge&lt;/strong&gt; to get trusted certs — pair any of them with &lt;a href=&quot;https://peira.dev/articles/pihole-proxmox-lxc/&quot;&gt;Pi-hole local DNS&lt;/a&gt; so the names resolve on your LAN.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;performance--real-but-rarely-your-bottleneck&quot;&gt;Performance — real, but rarely your bottleneck&lt;/h2&gt;
&lt;p&gt;In 2026 community benchmarks, &lt;strong&gt;NPM/nginx is fastest&lt;/strong&gt; on raw requests per second, &lt;strong&gt;Caddy&lt;/strong&gt; is a close second, and &lt;strong&gt;Traefik&lt;/strong&gt; trails on throughput and P95 latency. (&lt;a href=&quot;https://selfhostable.dev/blog/caddy-vs-nginx-proxy-manager-vs-traefik-reverse-proxy-showdown-2026/&quot;&gt;reverse-proxy showdown 2026&lt;/a&gt;) Be honest with yourself about scale, though: at homelab traffic levels none of these is the bottleneck — your upstream app and your internet link are. Choose on &lt;strong&gt;workflow and features&lt;/strong&gt;, not benchmark charts, unless you’re genuinely serving heavy public traffic.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;security--extras&quot;&gt;Security &amp;amp; extras&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Traefik&lt;/strong&gt; has a rich, composable &lt;strong&gt;middleware&lt;/strong&gt; chain — auth, rate limits, IP allow-lists, headers — applied per-router. Mind the Docker-socket exposure (mount it read-only or via a socket proxy).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;NPM&lt;/strong&gt; exposes nginx &lt;strong&gt;access lists&lt;/strong&gt; and custom directives via an advanced tab, and the community fork &lt;strong&gt;NPMplus&lt;/strong&gt; adds HTTP/3, &lt;strong&gt;CrowdSec&lt;/strong&gt;, and &lt;strong&gt;ModSecurity&lt;/strong&gt; if you want a hardened variant. (&lt;a href=&quot;https://github.com/ZoeyVid/NPMplus&quot;&gt;NPMplus&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Caddy&lt;/strong&gt; stays minimal by default; extras come from &lt;strong&gt;plugins&lt;/strong&gt; you compile in with &lt;code&gt;xcaddy&lt;/code&gt; (e.g. Crowdsec, extra DNS providers).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Whichever you choose, a reverse proxy &lt;strong&gt;complements&lt;/strong&gt; a firewall and VPN — it shrinks and centralizes your attack surface but doesn’t replace them.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;who-should-pick-what&quot;&gt;Who should pick what&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;New to this, or you just want a UI:&lt;/strong&gt; &lt;strong&gt;Nginx Proxy Manager.&lt;/strong&gt; Click to add a host, tick for HTTPS, move on.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;You value simplicity and version-controlled config:&lt;/strong&gt; &lt;strong&gt;Caddy.&lt;/strong&gt; One readable file, HTTPS for free.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;You run a Docker-heavy lab and add services constantly:&lt;/strong&gt; &lt;strong&gt;Traefik.&lt;/strong&gt; Label a container and it’s routed — the config maintains itself.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;You want a hardened NPM:&lt;/strong&gt; look at &lt;strong&gt;NPMplus&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;They’re not hard to migrate between, either — the concepts (a hostname → an internal address, plus a certificate) are the same everywhere. Start with whichever fits how you like to work; you can always switch once you know what you actually want.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-traefik/&quot;&gt;What Is Traefik? Reverse Proxies Explained&lt;/a&gt; — the concepts, with the static-vs-dynamic model&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/traefik-letsencrypt-setup/&quot;&gt;How to Set Up Traefik with Let’s Encrypt&lt;/a&gt; — the hands-on Traefik build&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/pihole-proxmox-lxc/&quot;&gt;Pi-hole on Proxmox LXC&lt;/a&gt; — local DNS so &lt;code&gt;service.homelab.lan&lt;/code&gt; resolves&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/docker-proxmox-lxc-vs-vm/&quot;&gt;Docker on Proxmox: LXC vs VM&lt;/a&gt; — the host your proxy discovers services on&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/vaultwarden-proxmox-lxc/&quot;&gt;Vaultwarden on Proxmox LXC&lt;/a&gt; — a great first service to put behind any of them&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sources: &lt;a href=&quot;https://traefik.io/traefik/&quot;&gt;Traefik&lt;/a&gt; · &lt;a href=&quot;https://nginxproxymanager.com/&quot;&gt;Nginx Proxy Manager&lt;/a&gt; · &lt;a href=&quot;https://caddyserver.com/&quot;&gt;Caddy&lt;/a&gt; · &lt;a href=&quot;https://selfhostable.dev/blog/caddy-vs-nginx-proxy-manager-vs-traefik-reverse-proxy-showdown-2026/&quot;&gt;2026 reverse-proxy comparison&lt;/a&gt;&lt;/p&gt;</content:encoded><category>comparison</category><category>networking</category><category>self-hosted</category><category>security</category></item><item><title>WireGuard vs Tailscale vs OpenVPN: Which VPN for Your Homelab?</title><link>https://peira.dev/articles/wireguard-vs-tailscale-vs-openvpn/</link><guid isPermaLink="true">https://peira.dev/articles/wireguard-vs-tailscale-vs-openvpn/</guid><description>A practical 2026 comparison of WireGuard, Tailscale, and OpenVPN — setup effort, performance, NAT traversal, cost, and self-hosting (Headscale) — to reach your homelab securely from anywhere.</description><pubDate>Fri, 11 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;strong&gt;TL;DR — Pick Tailscale for remote access that just works (zero config, no port forwarding); pick plain WireGuard if you’re technical and want maximum speed and control; pick OpenVPN when you need maximum compatibility with something that already speaks it.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Sooner or later you want to reach your homelab from &lt;em&gt;outside&lt;/em&gt; your house — check a dashboard, stream your own media, restore a backup — without exposing anything to the open internet. The three names you’ll weigh are &lt;strong&gt;&lt;a href=&quot;https://www.wireguard.com/&quot;&gt;WireGuard&lt;/a&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;a href=&quot;https://tailscale.com/&quot;&gt;Tailscale&lt;/a&gt;&lt;/strong&gt;, and &lt;strong&gt;&lt;a href=&quot;https://openvpn.net/&quot;&gt;OpenVPN&lt;/a&gt;&lt;/strong&gt;. The trick to choosing is realizing they’re not the same kind of thing: one is a &lt;em&gt;protocol&lt;/em&gt;, one is a &lt;em&gt;managed service built on that protocol&lt;/em&gt;, and one is the &lt;em&gt;old, ubiquitous classic&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;I run &lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;Tailscale across my own lab&lt;/a&gt;, so that’s my bias up front — but here’s the honest three-way for different priorities.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-short-answer&quot;&gt;The short answer&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Pick Tailscale&lt;/strong&gt; if you want remote access that just works: zero config, no port forwarding, log in with an identity you already have, and easy sharing with family.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pick plain WireGuard&lt;/strong&gt; if you’re technical, want maximum speed and full control, and don’t mind managing keys and a forwarded port yourself.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pick OpenVPN&lt;/strong&gt; if you need maximum compatibility or must integrate with something that already speaks it — it’s mature and everywhere, if slower and fiddlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;at-a-glance&quot;&gt;At a glance&lt;/h2&gt;
&lt;figure class=&quot;cmp&quot; data-astro-cid-mmnll3zm&gt;&lt;div class=&quot;cmp-scroll&quot; data-astro-cid-mmnll3zm&gt;&lt;table class=&quot;cmp-table&quot; data-astro-cid-mmnll3zm&gt;&lt;thead data-astro-cid-mmnll3zm&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;col&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;&amp;nbsp;&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;WireGuard&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;Tailscale&lt;/th&gt;&lt;th scope=&quot;col&quot; data-astro-cid-mmnll3zm&gt;OpenVPN&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody data-astro-cid-mmnll3zm&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;What it is&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Modern VPN protocol (DIY)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Managed mesh VPN built on WireGuard&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Mature TLS-based VPN&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Setup effort&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Manual keys + peers (wg-quick)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Zero-config — log in and go&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;PKI/certs + config; most involved&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Performance&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Fastest (in-kernel)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Near-WireGuard (~10–15% userspace overhead — unnoticeable at home)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Slowest of the three&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;NAT traversal / port forwarding&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;You handle it (forward a port)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Automatic (STUN + DERP relay fallback) — no port forwarding&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;You handle it (forward a port)&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Access model&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Peers + public keys, by hand&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;SSO identities + ACLs + MagicDNS&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Certificates; push routes/DNS&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Extras&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Just the tunnel&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Exit nodes, subnet routers, MagicDNS, Tailscale SSH&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Rich, mature options&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Cost&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Free (self-host); ~€5/mo VPS if remote&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Free personal: 6 users, unlimited user devices, 50 tagged resources&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Free community edition; Access Server paid tiers&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Self-host control plane&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;N/A — it&apos;s all yours&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes — Headscale (open source)&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Yes — you run the server&lt;/td&gt;&lt;/tr&gt;&lt;tr data-astro-cid-mmnll3zm&gt;&lt;th scope=&quot;row&quot; class=&quot;cmp-feat&quot; data-astro-cid-mmnll3zm&gt;Best for&lt;/th&gt;&lt;td data-astro-cid-mmnll3zm&gt;Technical users who want speed + control&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Effortless remote access + sharing&lt;/td&gt;&lt;td data-astro-cid-mmnll3zm&gt;Compatibility, legacy, widest clients&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;figcaption class=&quot;cmp-caption&quot; data-astro-cid-mmnll3zm&gt;They&amp;#39;re different layers: WireGuard is the protocol, Tailscale is that protocol made effortless, OpenVPN is the mature classic. Choose by control vs convenience.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-real-question-control-vs-convenience&quot;&gt;The real question: control vs convenience&lt;/h2&gt;
&lt;p&gt;Everything follows from one axis.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;WireGuard&lt;/strong&gt; gives you the raw, fast tunnel and hands you the keys — literally. You generate keypairs, list peers and their allowed IPs, and open a UDP port so peers can reach you. It’s beautifully simple &lt;em&gt;as a protocol&lt;/em&gt; and completely manual &lt;em&gt;as a system&lt;/em&gt;: no discovery, no NAT traversal, no UI. Total control, total responsibility.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tailscale&lt;/strong&gt; wraps WireGuard in the parts that are annoying to do yourself: a &lt;strong&gt;coordination server&lt;/strong&gt; that handles key exchange, &lt;strong&gt;automatic NAT traversal&lt;/strong&gt; (so you never forward a port), &lt;strong&gt;SSO login&lt;/strong&gt;, &lt;strong&gt;MagicDNS&lt;/strong&gt;, &lt;strong&gt;ACLs&lt;/strong&gt;, and homelab superpowers like &lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;subnet routers&lt;/a&gt; and &lt;a href=&quot;https://peira.dev/articles/tailscale-exit-node/&quot;&gt;exit nodes&lt;/a&gt;. You install it, log in, and every device is on your private network.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;OpenVPN&lt;/strong&gt; predates both and shows it: a TLS-based design with a full certificate PKI, tons of options, and clients on literally everything. It’s the most compatible and the most battle-tested — and the slowest and fiddliest to set up.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;nat-traversal--tailscales-homelab-superpower&quot;&gt;NAT traversal — Tailscale’s homelab superpower&lt;/h2&gt;
&lt;p&gt;This is the feature that wins most homelabbers over. Plain WireGuard and OpenVPN both need an &lt;strong&gt;inbound port&lt;/strong&gt; reachable from the internet — which means router config, and is a non-starter if your ISP puts you behind &lt;a href=&quot;https://peira.dev/glossary/#cgnat&quot;&gt;CGNAT&lt;/a&gt;. &lt;strong&gt;Tailscale does NAT traversal automatically&lt;/strong&gt;: it punches a direct UDP tunnel where it can (via STUN) and falls back to encrypted &lt;strong&gt;DERP relays&lt;/strong&gt; when both ends are behind strict NATs. You open &lt;em&gt;nothing&lt;/em&gt;. For “reach my lab from a coffee shop,” that’s the difference between five minutes and an evening of port-forwarding and dynamic-DNS. The relay fallback is quiet enough that you can sit on it for weeks without noticing. I did, until I found &lt;a href=&quot;https://peira.dev/articles/tailscale-derp-relay-shared-nat-port/&quot;&gt;five devices behind one office router all sharing Tailscale’s default port&lt;/a&gt;.&lt;/p&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Want Tailscale&amp;#39;s ease but own the whole thing? Use Headscale&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;If you love Tailscale’s model but don’t want to depend on its hosted control plane, &lt;a href=&quot;https://github.com/juanfont/headscale&quot;&gt;Headscale&lt;/a&gt; is an open-source, self-hosted implementation of Tailscale’s coordination server. You run it on a small VPS, point the standard Tailscale clients at it, and keep the zero-config mesh and NAT traversal while owning your data end to end. It’s the “best of both” for privacy maximalists.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;performance--cost&quot;&gt;Performance &amp;amp; cost&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Performance:&lt;/strong&gt; WireGuard (in-kernel) is fastest; Tailscale rides WireGuard and loses only ~10–15% where it runs in userspace — invisible on a home link. OpenVPN trails both. Unless you’re pushing multi-gigabit, none of this is your bottleneck.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cost:&lt;/strong&gt; WireGuard, OpenVPN, and Headscale cost only what you run them on — self-hosted for free, or a ~€5/month VPS if you want a public endpoint. &lt;strong&gt;Tailscale’s Personal plan is free&lt;/strong&gt; for up to six users with unlimited user devices and 50 tagged resources (servers, subnet routers) — more than enough for a homelab and sharing with family. OpenVPN’s community edition is free; its Access Server has paid tiers.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;who-should-pick-what&quot;&gt;Who should pick what&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;You just want to reach your lab (and share it) from anywhere, painlessly:&lt;/strong&gt; &lt;strong&gt;Tailscale.&lt;/strong&gt; Free, zero-config, no port forwarding — the default recommendation for most homelabs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;You’re technical, want the fastest tunnel, and enjoy owning every piece:&lt;/strong&gt; &lt;strong&gt;plain WireGuard&lt;/strong&gt; (add a forwarded port or a cheap VPS endpoint).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;You want Tailscale’s ease but full ownership of the control plane:&lt;/strong&gt; &lt;strong&gt;Headscale + Tailscale clients.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;You need maximum compatibility or must interoperate with existing OpenVPN infrastructure:&lt;/strong&gt; &lt;strong&gt;OpenVPN.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There are good adjacent options too — NetBird and ZeroTier (managed meshes) and Nebula (Slack’s overlay) — but for a homelab in 2026 the decision almost always lands on “Tailscale for ease, WireGuard for control, OpenVPN for compatibility.”&lt;/p&gt;
&lt;p&gt;Whatever you choose, a VPN is how you reach the lab &lt;em&gt;safely&lt;/em&gt; — pair it with a &lt;a href=&quot;https://peira.dev/articles/proxmox-firewall-guide/&quot;&gt;firewall&lt;/a&gt; and never just port-forward app UIs to the internet.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;Tailscale Subnet Router&lt;/a&gt; — reach your whole LAN with one Tailscale node&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-exit-node/&quot;&gt;Tailscale Exit Node&lt;/a&gt; — route all your traffic through home&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/plex-remote-access-tailscale/&quot;&gt;Plex Remote Access over Tailscale&lt;/a&gt; — stream your library from anywhere, no port forwarding&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-firewall-guide/&quot;&gt;Proxmox Firewall Guide&lt;/a&gt; — the layer a VPN complements&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/pihole-vs-adguard-home/&quot;&gt;Pi-hole vs AdGuard Home&lt;/a&gt; — DNS filtering that also rides your VPN&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sources: &lt;a href=&quot;https://www.wireguard.com/&quot;&gt;WireGuard&lt;/a&gt; · &lt;a href=&quot;https://tailscale.com/docs/account/manage-plans/free-plans-discounts&quot;&gt;Tailscale pricing&lt;/a&gt; · &lt;a href=&quot;https://github.com/juanfont/headscale&quot;&gt;Headscale&lt;/a&gt; · &lt;a href=&quot;https://openvpn.net/&quot;&gt;OpenVPN&lt;/a&gt; · &lt;a href=&quot;https://selfhostsetup.com/posts/self-hosted-vpn-showdown-wireguard-openvpn-tailscale/&quot;&gt;2026 VPN comparison&lt;/a&gt;&lt;/p&gt;</content:encoded><category>comparison</category><category>networking</category><category>self-hosted</category><category>security</category></item><item><title>Bazarr: Automatic Subtitles for Your Arr Stack</title><link>https://peira.dev/articles/bazarr-subtitles-arr-stack/</link><guid isPermaLink="true">https://peira.dev/articles/bazarr-subtitles-arr-stack/</guid><description>Stop hunting for subtitle files. Bazarr watches your Radarr and Sonarr libraries and downloads matching subtitles automatically, in the languages you choose.</description><pubDate>Sun, 06 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;You built the &lt;a href=&quot;https://peira.dev/articles/arr-stack-explained/&quot;&gt;Arr stack&lt;/a&gt;, &lt;a href=&quot;https://peira.dev/articles/arr-stack-docker-deploy/&quot;&gt;deployed it with Docker&lt;/a&gt;, and &lt;a href=&quot;https://peira.dev/articles/arr-stack-automation/&quot;&gt;automated the pipeline&lt;/a&gt;. Movies and shows land in your library on their own — but half of them arrive with no subtitles, or the wrong language, and you’re back to hunting for a &lt;code&gt;.srt&lt;/code&gt; on some sketchy site at 11pm. &lt;a href=&quot;https://www.bazarr.media/&quot;&gt;Bazarr&lt;/a&gt; is the piece that closes that gap: it watches the exact same libraries Radarr and Sonarr manage and fetches matching subtitles automatically, in whatever languages you ask for.&lt;/p&gt;
&lt;p&gt;It’s the one *arr companion almost everyone ends up adding. Below is the full deploy and the two settings that decide whether subtitles actually show up.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Commands below use placeholder values — swap in yours before running:&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;host-ip&amp;gt;&lt;/code&gt; — the LAN IP of the machine running your stack (e.g. &lt;code&gt;192.168.1.50&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;TZ=America/New_York&lt;/code&gt; — your own &lt;a href=&quot;https://en.wikipedia.org/wiki/List_of_tz_database_time_zones&quot;&gt;timezone&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;PUID&lt;/code&gt;/&lt;code&gt;PGID&lt;/code&gt; (&lt;code&gt;1000&lt;/code&gt; here) — must match the user that owns your media files&lt;/li&gt;
&lt;li&gt;Service ports (&lt;code&gt;7878&lt;/code&gt; Radarr, &lt;code&gt;8989&lt;/code&gt; Sonarr) — change only if you moved them off the defaults&lt;/li&gt;
&lt;li&gt;&lt;code&gt;YOUR_RADARR_API_KEY&lt;/code&gt; / &lt;code&gt;YOUR_SONARR_API_KEY&lt;/code&gt; — copied from each app, kept in your secret store, never pasted into a note&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Rule of thumb: if a value looks specific to one machine, it’s a placeholder to change — not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;What this stack is for&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;
  Everything in this guide automates managing and streaming media you have the
  rights to — your own rips, DRM-free purchases, home video, Linux ISOs, and
  public-domain or Creative Commons releases. Downloading copyrighted material
  you haven&apos;t paid for is illegal in most places, and it isn&apos;t what this guide
  teaches. What you point these tools at is on you.
&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-bazarr-actually-does&quot;&gt;What Bazarr actually does&lt;/h2&gt;
&lt;p&gt;Bazarr doesn’t download video and it doesn’t talk to your media server. It plugs into &lt;a href=&quot;https://radarr.video/&quot;&gt;Radarr&lt;/a&gt; and &lt;a href=&quot;https://sonarr.tv/&quot;&gt;Sonarr&lt;/a&gt;, reads the libraries they already track, and for each item works out which subtitle languages are missing and goes and gets them:&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 760 210&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Bazarr reads the Radarr and Sonarr libraries, searches subtitle providers, and writes matching subtitle files next to the videos so Plex or Jellyfin can use them.&quot;&gt;&lt;defs&gt;&lt;linearGradient id=&quot;bzbg&quot; x1=&quot;0&quot; y1=&quot;0&quot; x2=&quot;0&quot; y2=&quot;1&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#1C2C1F&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#0E1912&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;marker id=&quot;bzar&quot; markerWidth=&quot;8&quot; markerHeight=&quot;8&quot; refX=&quot;6&quot; refY=&quot;3&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M0,0 L6,3 L0,6 Z&quot; fill=&quot;#6E5F33&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;pattern id=&quot;gp-bazarr0&quot; width=&quot;20&quot; height=&quot;20&quot; patternUnits=&quot;userSpaceOnUse&quot;&gt;&lt;path d=&quot;M 20 0 H 0 V 20&quot; fill=&quot;none&quot; stroke=&quot;#1C2C1F&quot; stroke-width=&quot;1&quot;&gt;&lt;/path&gt;&lt;/pattern&gt;&lt;/defs&gt;&lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;760&quot; height=&quot;210&quot; rx=&quot;12&quot; fill=&quot;url(#bzbg)&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;760&quot; height=&quot;210&quot; fill=&quot;url(#gp-bazarr0)&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;6&quot; y=&quot;6&quot; width=&quot;748&quot; height=&quot;198&quot; fill=&quot;none&quot; stroke=&quot;#223224&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M 11,16 H 21 M 16,11 V 21 M 739,16 H 749 M 744,11 V 21 M 11,194 H 21 M 16,189 V 199 M 739,194 H 749 M 744,189 V 199&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot; fill=&quot;none&quot;&gt;&lt;/path&gt;&lt;text x=&quot;24&quot; y=&quot;34&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;monospace&quot;&gt;Bazarr fills the gap the video apps leave behind&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;70&quot; width=&quot;128&quot; height=&quot;66&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#5A86C0&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;88&quot; y=&quot;95&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&gt;Radarr /&lt;/text&gt;&lt;text x=&quot;88&quot; y=&quot;112&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&gt;Sonarr&lt;/text&gt;&lt;text x=&quot;88&quot; y=&quot;129&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;the library&lt;/text&gt;&lt;rect x=&quot;196&quot; y=&quot;70&quot; width=&quot;128&quot; height=&quot;66&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#E0BD63&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;260&quot; y=&quot;99&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&gt;Bazarr&lt;/text&gt;&lt;text x=&quot;260&quot; y=&quot;118&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;finds gaps&lt;/text&gt;&lt;rect x=&quot;368&quot; y=&quot;70&quot; width=&quot;128&quot; height=&quot;66&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#E0BD63&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;432&quot; y=&quot;95&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&gt;Subtitle&lt;/text&gt;&lt;text x=&quot;432&quot; y=&quot;112&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&gt;providers&lt;/text&gt;&lt;text x=&quot;432&quot; y=&quot;129&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;search + score&lt;/text&gt;&lt;rect x=&quot;540&quot; y=&quot;70&quot; width=&quot;196&quot; height=&quot;66&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;638&quot; y=&quot;95&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&gt;.srt next to the video&lt;/text&gt;&lt;text x=&quot;638&quot; y=&quot;114&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10.5&quot;&gt;Plex / Jellyfin read it&lt;/text&gt;&lt;line x1=&quot;152&quot; y1=&quot;103&quot; x2=&quot;196&quot; y2=&quot;103&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#bzar)&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;324&quot; y1=&quot;103&quot; x2=&quot;368&quot; y2=&quot;103&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#bzar)&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;496&quot; y1=&quot;103&quot; x2=&quot;540&quot; y2=&quot;103&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#bzar)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;750&quot; y=&quot;202&quot; text-anchor=&quot;end&quot; font-size=&quot;10&quot; fill=&quot;#94A684&quot; opacity=&quot;0.6&quot; font-family=&quot;monospace&quot;&gt;peira.dev&lt;/text&gt;&lt;/svg&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Watch&lt;/strong&gt; — Bazarr connects to Radarr and Sonarr over their APIs and mirrors their lists, so it always knows exactly what’s in your library and what languages each item has.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Search&lt;/strong&gt; — for anything missing a subtitle in a wanted language, it queries the &lt;a href=&quot;https://wiki.bazarr.media/Additional-Configuration/Settings/Providers/&quot;&gt;subtitle providers&lt;/a&gt; you’ve enabled (OpenSubtitles and many others).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Score &amp;amp; pick&lt;/strong&gt; — each candidate gets a match score (release name, hearing-impaired flag, sync); Bazarr takes the best one above your threshold.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Write&lt;/strong&gt; — it saves a standard subtitle file next to the video, so &lt;a href=&quot;https://peira.dev/articles/plex-media-server-nas-lxc/&quot;&gt;Plex&lt;/a&gt; or &lt;a href=&quot;https://peira.dev/articles/jellyfin-install-nas-lxc/&quot;&gt;Jellyfin&lt;/a&gt; show it as a selectable track with no extra config.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Bazarr sits beside Radarr and Sonarr, not on top&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Bazarr is a peer of the video apps, not a replacement. It shares their media folders and reads their libraries, but it only ever manages subtitles. If Radarr and Sonarr aren’t running and reachable, Bazarr has nothing to watch.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-1-deploy-the-container&quot;&gt;Task 1: Deploy the container&lt;/h2&gt;
&lt;p&gt;Run Bazarr wherever the rest of your stack lives — the same &lt;a href=&quot;https://peira.dev/articles/docker-proxmox-lxc-vs-vm/&quot;&gt;Docker-on-Proxmox LXC or VM&lt;/a&gt;, your NAS, or a dedicated box. The one rule that matters: it must mount the &lt;strong&gt;same media root&lt;/strong&gt; as Radarr and Sonarr, at the &lt;strong&gt;same path&lt;/strong&gt;, or it can’t find the videos to caption.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Add the service to your compose file&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Add to your media docker-compose.yml&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
  bazarr:
    image: lscr.io/linuxserver/bazarr:latest
    container_name: bazarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    ports:
      - &amp;quot;6767:6767&amp;quot;
    volumes:
      - ./bazarr/config:/config
      - /data:/data
    restart: unless-stopped
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;The &lt;code&gt;/data:/data&lt;/code&gt; mount is the important line — it has to be the identical mount Radarr and Sonarr use, so a file at &lt;code&gt;/data/media/movies/Film.mkv&lt;/code&gt; is the same path in every container.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Bring it up and open the UI&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Start it&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
docker compose up -d bazarr
docker compose logs -f bazarr
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Then browse to &lt;code&gt;http://&amp;lt;host-ip&amp;gt;:6767&lt;/code&gt; to reach the web UI.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-2-connect-radarr-and-sonarr--the-part-that-matters&quot;&gt;Task 2: Connect Radarr and Sonarr — the part that matters&lt;/h2&gt;
&lt;p&gt;Under &lt;strong&gt;Settings → Sonarr&lt;/strong&gt; and &lt;strong&gt;Settings → Radarr&lt;/strong&gt;, point Bazarr at each app. This is where most setups stall: if the paths don’t line up, Bazarr sees the library but can’t write subtitles next to the files.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Add Radarr and Sonarr&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Enter each app’s address (&lt;code&gt;http://&amp;lt;host-ip&amp;gt;:7878&lt;/code&gt; for Radarr, &lt;code&gt;http://&amp;lt;host-ip&amp;gt;:8989&lt;/code&gt; for Sonarr) and its API key (in each app under &lt;strong&gt;Settings → General&lt;/strong&gt;, shown here as &lt;code&gt;YOUR_RADARR_API_KEY&lt;/code&gt; / &lt;code&gt;YOUR_SONARR_API_KEY&lt;/code&gt;). Test each connection until it’s green.&lt;/p&gt;&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://homelab.lan:6767/settings/sonarr&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/bazarr-sonarr.BQjvyyki_3tCRP.webp&quot; aria-label=&quot;Enlarge screenshot: Bazarr Settings Sonarr page with the Use Sonarr toggle enabled, showing address, port, API key and a Test button&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/bazarr-sonarr.BQjvyyki_ZDgl2U.webp&quot; alt=&quot;Bazarr Settings Sonarr page with the Use Sonarr toggle enabled, showing address, port, API key and a Test button&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;720&quot; height=&quot;495&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Settings → Sonarr: flip **Enabled**, fill in the address/port and API key, then **Test** until it passes.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://homelab.lan:6767/settings/radarr&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/bazarr-radarr.DRNWE92C_1t2t9W.webp&quot; aria-label=&quot;Enlarge screenshot: Bazarr Settings Radarr page with the same Host and API key fields as the Sonarr page&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/bazarr-radarr.DRNWE92C_Z1Tw9QD.webp&quot; alt=&quot;Bazarr Settings Radarr page with the same Host and API key fields as the Sonarr page&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;720&quot; height=&quot;495&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Settings → Radarr — identical fields, pointed at Radarr on port 7878.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Set path mappings if the paths differ&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;4 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;If Bazarr and the Arr apps mount the library at different paths, add a &lt;strong&gt;path mapping&lt;/strong&gt; so Bazarr can translate one to the other. The clean fix is to avoid it entirely by mounting &lt;code&gt;/data&lt;/code&gt; identically everywhere — then no mapping is needed. The official &lt;a href=&quot;https://wiki.bazarr.media/&quot;&gt;Bazarr setup guide&lt;/a&gt; covers the mapping fields if you can’t.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Same media path, same PUID&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The number-one reason Bazarr finds subtitles but never saves them is a path or permission mismatch. Mount the media root at the identical path across Radarr, Sonarr, and Bazarr, and give all three the same &lt;code&gt;PUID&lt;/code&gt;/&lt;code&gt;PGID&lt;/code&gt; so Bazarr can write a &lt;code&gt;.srt&lt;/code&gt; into the same folder the video lives in.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-3-choose-languages-and-providers&quot;&gt;Task 3: Choose languages and providers&lt;/h2&gt;
&lt;p&gt;Under &lt;strong&gt;Settings → Languages&lt;/strong&gt;, create a &lt;strong&gt;languages profile&lt;/strong&gt; listing the subtitle languages you want and their priority, then set it as the default for movies and series. Bazarr only ever chases languages in an item’s profile — leave one out and it won’t look for it.&lt;/p&gt;
&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://homelab.lan:6767/settings/languages&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/bazarr-languages.D4AdmLo7_MOWR6.webp&quot; aria-label=&quot;Enlarge screenshot: Bazarr Settings Languages page showing the languages filter and languages profile section&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/bazarr-languages.D4AdmLo7_2jyNLa.webp&quot; alt=&quot;Bazarr Settings Languages page showing the languages filter and languages profile section&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;720&quot; height=&quot;495&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Settings → Languages: build a profile of the languages you want, then set it as the default.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Then, under &lt;strong&gt;Settings → Providers&lt;/strong&gt;, enable at least one &lt;a href=&quot;https://wiki.bazarr.media/Additional-Configuration/Settings/Providers/&quot;&gt;provider&lt;/a&gt; and sign in. &lt;a href=&quot;https://www.opensubtitles.com/&quot;&gt;OpenSubtitles&lt;/a&gt; is the common starting point; its free tier works but caps daily downloads, so a large library benefits from a paid account.&lt;/p&gt;
&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://homelab.lan:6767/settings/providers&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/bazarr-providers.DlXiXJjl_1gcca8.webp&quot; aria-label=&quot;Enlarge screenshot: Bazarr Settings Providers page with the add-provider control&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/bazarr-providers.DlXiXJjl_2atewm.webp&quot; alt=&quot;Bazarr Settings Providers page with the add-provider control&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;720&quot; height=&quot;495&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Settings → Providers: enable at least one provider and sign in — nothing downloads until one is active.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Set a sane minimum score&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Bazarr scores every candidate on how well it matches the release. Too low and you get out-of-sync junk; too high and nothing qualifies. Start near Bazarr’s defaults and only adjust if you’re getting bad syncs (raise it) or empty results (lower it).&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-4-backfill-the-library-then-let-it-run&quot;&gt;Task 4: Backfill the library, then let it run&lt;/h2&gt;
&lt;p&gt;New downloads get subtitled automatically as they arrive. For everything already on disk, kick off a one-time sweep, then let the scheduler keep up.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Run a mass search&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;varies&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;On the &lt;strong&gt;Series&lt;/strong&gt; and &lt;strong&gt;Movies&lt;/strong&gt; pages, select everything and trigger a search for wanted subtitles. On a big library this takes a while and may hit provider daily limits — it’ll resume on the next scheduled run.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Confirm the scheduled tasks&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Under &lt;strong&gt;Settings → Scheduler&lt;/strong&gt;, Bazarr runs periodic “search for missing” and “upgrade” jobs. Leave these on — new items get captioned without you lifting a finger, and better matches replace weak ones over time.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;round-out-the-arr-family&quot;&gt;Round out the Arr family&lt;/h2&gt;
&lt;p&gt;With Bazarr in place, the media pipeline is one step closer to genuinely hands-off: a title is requested, Radarr or Sonarr grabs it, and Bazarr quietly drops matching subtitles beside it before anyone hits play. The remaining gap in the *arr family for most households is music — &lt;a href=&quot;https://peira.dev/articles/lidarr-music-arr-stack/&quot;&gt;Lidarr&lt;/a&gt; does for your music library exactly what Sonarr does for TV.&lt;/p&gt;
&lt;p&gt;And once the whole stack is this automated, the thing worth adding is a way to &lt;em&gt;know&lt;/em&gt; it’s healthy even when nobody’s watching — the &lt;a href=&quot;https://peira.dev/articles/self-healing-arr-stack/&quot;&gt;self-healing Arr stack&lt;/a&gt; covers the failure mode where a piece silently stops.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/arr-stack-explained/&quot;&gt;What Is the Arr Stack? Sonarr, Radarr, and Prowlarr Explained&lt;/a&gt; — the stack Bazarr plugs into&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/arr-stack-docker-deploy/&quot;&gt;Deploy the Arr Stack with Docker Compose&lt;/a&gt; — the containers Bazarr sits beside&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/arr-stack-automation/&quot;&gt;Automating the Arr Stack&lt;/a&gt; — the download pipeline that fills the library Bazarr captions&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/lidarr-music-arr-stack/&quot;&gt;Lidarr: Automate Your Music Library Like Sonarr&lt;/a&gt; — the same idea for music&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/jellyseerr-requests-arr-stack/&quot;&gt;Seerr (formerly Jellyseerr): Let Your Family Request Movies&lt;/a&gt; — the request front end for the same stack&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/plex-media-server-nas-lxc/&quot;&gt;Install Plex Media Server on a NAS or Proxmox LXC&lt;/a&gt; — reads the subtitles Bazarr writes&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/jellyfin-install-nas-lxc/&quot;&gt;Install Jellyfin on a NAS or Proxmox LXC&lt;/a&gt; — the open-source server, same sidecar subtitles&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>self-hosted</category><category>infrastructure</category><category>automation</category><category>media</category></item><item><title>Lidarr: Automate Your Music Library Like Sonarr</title><link>https://peira.dev/articles/lidarr-music-arr-stack/</link><guid isPermaLink="true">https://peira.dev/articles/lidarr-music-arr-stack/</guid><description>Lidarr is Sonarr for music — monitor artists, grab new albums through your existing indexers, and file everything tagged and renamed into your library automatically.</description><pubDate>Sun, 06 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Your &lt;a href=&quot;https://peira.dev/articles/arr-stack-explained/&quot;&gt;Arr stack&lt;/a&gt; already handles movies and TV — you follow a show and new episodes just appear. Music is the one library still stuck in the old way: manually finding albums, downloading them, and fighting with folder names and tags. &lt;a href=&quot;https://lidarr.audio/&quot;&gt;Lidarr&lt;/a&gt; fixes that. It’s Sonarr’s logic pointed at music: follow an artist once, and new albums arrive downloaded, tagged, and filed on their own.&lt;/p&gt;
&lt;p&gt;The best part is you’ve already built the hard part. Lidarr reuses the same &lt;a href=&quot;https://prowlarr.com/&quot;&gt;Prowlarr&lt;/a&gt; indexers and download client as the rest of your stack. Below is the deploy and the wiring that gets music flowing.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Commands below use placeholder values — swap in yours before running:&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;host-ip&amp;gt;&lt;/code&gt; — the LAN IP of the machine running your stack (e.g. &lt;code&gt;192.168.1.50&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;TZ=America/New_York&lt;/code&gt; — your own &lt;a href=&quot;https://en.wikipedia.org/wiki/List_of_tz_database_time_zones&quot;&gt;timezone&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;PUID&lt;/code&gt;/&lt;code&gt;PGID&lt;/code&gt; (&lt;code&gt;1000&lt;/code&gt; here) — must match the user that owns your media files&lt;/li&gt;
&lt;li&gt;Service ports (&lt;code&gt;9696&lt;/code&gt; Prowlarr) — change only if you moved them off the defaults&lt;/li&gt;
&lt;li&gt;&lt;code&gt;YOUR_PROWLARR_API_KEY&lt;/code&gt; — copied from Prowlarr, kept in your secret store, never pasted into a note&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Rule of thumb: if a value looks specific to one machine, it’s a placeholder to change — not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;What this stack is for&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;
  Everything in this guide automates managing and streaming media you have the
  rights to — your own rips, DRM-free purchases, home video, Linux ISOs, and
  public-domain or Creative Commons releases. Downloading copyrighted material
  you haven&apos;t paid for is illegal in most places, and it isn&apos;t what this guide
  teaches. What you point these tools at is on you.
&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-lidarr-actually-does&quot;&gt;What Lidarr actually does&lt;/h2&gt;
&lt;p&gt;If you’ve read &lt;a href=&quot;https://peira.dev/articles/arr-stack-explained/&quot;&gt;what the Arr stack is&lt;/a&gt;, Lidarr will feel instantly familiar — it’s the same pipeline with music-shaped nouns:&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 760 210&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Lidarr monitors a followed artist, searches Prowlarr indexers for new albums, downloads through the shared client, then tags and files the music into a library Plex or Jellyfin can stream.&quot;&gt;&lt;defs&gt;&lt;linearGradient id=&quot;ldbg&quot; x1=&quot;0&quot; y1=&quot;0&quot; x2=&quot;0&quot; y2=&quot;1&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#1C2C1F&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#0E1912&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;marker id=&quot;ldar&quot; markerWidth=&quot;8&quot; markerHeight=&quot;8&quot; refX=&quot;6&quot; refY=&quot;3&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M0,0 L6,3 L0,6 Z&quot; fill=&quot;#6E5F33&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;pattern id=&quot;gp-lidarr0&quot; width=&quot;20&quot; height=&quot;20&quot; patternUnits=&quot;userSpaceOnUse&quot;&gt;&lt;path d=&quot;M 20 0 H 0 V 20&quot; fill=&quot;none&quot; stroke=&quot;#1C2C1F&quot; stroke-width=&quot;1&quot;&gt;&lt;/path&gt;&lt;/pattern&gt;&lt;/defs&gt;&lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;760&quot; height=&quot;210&quot; rx=&quot;12&quot; fill=&quot;url(#ldbg)&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;760&quot; height=&quot;210&quot; fill=&quot;url(#gp-lidarr0)&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;6&quot; y=&quot;6&quot; width=&quot;748&quot; height=&quot;198&quot; fill=&quot;none&quot; stroke=&quot;#223224&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M 11,16 H 21 M 16,11 V 21 M 739,16 H 749 M 744,11 V 21 M 11,194 H 21 M 16,189 V 199 M 739,194 H 749 M 744,189 V 199&quot; stroke=&quot;#43422A&quot; stroke-width=&quot;1&quot; fill=&quot;none&quot;&gt;&lt;/path&gt;&lt;text x=&quot;24&quot; y=&quot;34&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;monospace&quot;&gt;Follow an artist once — the rest is automatic&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;70&quot; width=&quot;118&quot; height=&quot;66&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#5A86C0&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;83&quot; y=&quot;95&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&gt;Follow an&lt;/text&gt;&lt;text x=&quot;83&quot; y=&quot;112&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&gt;artist&lt;/text&gt;&lt;text x=&quot;83&quot; y=&quot;129&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;in Lidarr&lt;/text&gt;&lt;rect x=&quot;184&quot; y=&quot;70&quot; width=&quot;118&quot; height=&quot;66&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#E0BD63&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;243&quot; y=&quot;99&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&gt;Prowlarr&lt;/text&gt;&lt;text x=&quot;243&quot; y=&quot;118&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;indexers&lt;/text&gt;&lt;rect x=&quot;344&quot; y=&quot;70&quot; width=&quot;118&quot; height=&quot;66&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#E0BD63&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;403&quot; y=&quot;95&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&gt;Download&lt;/text&gt;&lt;text x=&quot;403&quot; y=&quot;112&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&gt;client&lt;/text&gt;&lt;text x=&quot;403&quot; y=&quot;129&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;grabs album&lt;/text&gt;&lt;rect x=&quot;504&quot; y=&quot;70&quot; width=&quot;118&quot; height=&quot;66&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;563&quot; y=&quot;95&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&gt;Tag +&lt;/text&gt;&lt;text x=&quot;563&quot; y=&quot;112&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-weight=&quot;700&quot;&gt;import&lt;/text&gt;&lt;text x=&quot;563&quot; y=&quot;129&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot;&gt;MusicBrainz&lt;/text&gt;&lt;rect x=&quot;664&quot; y=&quot;70&quot; width=&quot;72&quot; height=&quot;66&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;700&quot; y=&quot;95&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-weight=&quot;700&quot;&gt;Plex /&lt;/text&gt;&lt;text x=&quot;700&quot; y=&quot;111&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-weight=&quot;700&quot;&gt;Jellyfin&lt;/text&gt;&lt;text x=&quot;700&quot; y=&quot;128&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot;&gt;streams it&lt;/text&gt;&lt;line x1=&quot;142&quot; y1=&quot;103&quot; x2=&quot;184&quot; y2=&quot;103&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#ldar)&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;302&quot; y1=&quot;103&quot; x2=&quot;344&quot; y2=&quot;103&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#ldar)&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;462&quot; y1=&quot;103&quot; x2=&quot;504&quot; y2=&quot;103&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#ldar)&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;622&quot; y1=&quot;103&quot; x2=&quot;664&quot; y2=&quot;103&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;2&quot; marker-end=&quot;url(#ldar)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;750&quot; y=&quot;202&quot; text-anchor=&quot;end&quot; font-size=&quot;10&quot; fill=&quot;#94A684&quot; opacity=&quot;0.6&quot; font-family=&quot;monospace&quot;&gt;peira.dev&lt;/text&gt;&lt;/svg&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Follow&lt;/strong&gt; — you add an artist and choose to monitor their existing albums, only future ones, or everything.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Identify&lt;/strong&gt; — Lidarr matches artists and albums against &lt;a href=&quot;https://musicbrainz.org/&quot;&gt;MusicBrainz&lt;/a&gt;, the open music database, so it knows exactly what a complete discography looks like.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Search &amp;amp; grab&lt;/strong&gt; — for anything monitored and missing, it queries your Prowlarr indexers and sends the best match to your download client.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tag &amp;amp; file&lt;/strong&gt; — on import it renames and organizes the files into a clean, tagged folder structure that &lt;a href=&quot;https://peira.dev/articles/plex-media-server-nas-lxc/&quot;&gt;Plex&lt;/a&gt;, &lt;a href=&quot;https://peira.dev/articles/jellyfin-install-nas-lxc/&quot;&gt;Jellyfin&lt;/a&gt;, or a dedicated music server can read.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;It&amp;#39;s the Sonarr engine, retuned&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Lidarr shares Sonarr and Radarr’s codebase and interface, so quality profiles, indexer sync, and download-client handling all work the same way. If you can drive Sonarr, you already know Lidarr — the only new concept is MusicBrainz as the metadata source.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-1-deploy-the-container&quot;&gt;Task 1: Deploy the container&lt;/h2&gt;
&lt;p&gt;Run Lidarr alongside the rest of your stack, sharing the same &lt;a href=&quot;https://peira.dev/articles/docker-proxmox-lxc-vs-vm/&quot;&gt;Docker host&lt;/a&gt; and the same &lt;code&gt;/data&lt;/code&gt; media root so imports stay &lt;a href=&quot;https://peira.dev/articles/arr-stack-docker-deploy/&quot;&gt;instant hardlinks&lt;/a&gt; instead of slow copies.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Add the service to your compose file&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Add to your media docker-compose.yml&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
  lidarr:
    image: lscr.io/linuxserver/lidarr:latest
    container_name: lidarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    ports:
      - &amp;quot;8686:8686&amp;quot;
    volumes:
      - ./lidarr/config:/config
      - /data:/data
    restart: unless-stopped
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;The &lt;code&gt;/data:/data&lt;/code&gt; mount must match the one your download client and other Arr apps use, so a finished download hardlinks into the music library instead of copying.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Bring it up and open the UI&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Start it&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
docker compose up -d lidarr
docker compose logs -f lidarr
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Then browse to &lt;code&gt;http://&amp;lt;host-ip&amp;gt;:8686&lt;/code&gt; to reach the web UI.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-2-reuse-prowlarr-and-your-download-client&quot;&gt;Task 2: Reuse Prowlarr and your download client&lt;/h2&gt;
&lt;p&gt;Because Lidarr speaks the same protocol as Sonarr and Radarr, you don’t add indexers to it directly — you let Prowlarr push them in.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Register Lidarr in Prowlarr&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;4 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;In &lt;a href=&quot;https://peira.dev/playbooks/prowlarr-indexer-setup/&quot;&gt;Prowlarr&lt;/a&gt;, go to &lt;strong&gt;Settings → Apps → Add → Lidarr&lt;/strong&gt;, enter Lidarr’s address (&lt;code&gt;http://&amp;lt;host-ip&amp;gt;:8686&lt;/code&gt;) and API key, and sync. Every music-capable indexer you already have flows straight into Lidarr — no per-app indexer setup.&lt;/p&gt;&lt;p&gt;Once Prowlarr syncs, Lidarr’s own &lt;strong&gt;Settings → Indexers&lt;/strong&gt; page fills in on its own — you never add them here directly:&lt;/p&gt;&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://homelab.lan:8686/settings/indexers&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/lidarr-indexers.DW9r5__2_2wOcVq.webp&quot; aria-label=&quot;Enlarge screenshot: Lidarr Settings Indexers page, populated automatically by Prowlarr&apos;s app sync&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/lidarr-indexers.DW9r5__2_1Tc29y.webp&quot; alt=&quot;Lidarr Settings Indexers page, populated automatically by Prowlarr&apos;s app sync&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;720&quot; height=&quot;450&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Settings → Indexers in Lidarr — pushed in by Prowlarr, not added by hand.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Add your download client&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Under &lt;strong&gt;Settings → Download Clients&lt;/strong&gt; in Lidarr, add the same client the rest of your stack uses (for example qBittorrent behind your &lt;a href=&quot;https://peira.dev/playbooks/vpn-torrent-stack-docker/&quot;&gt;VPN&lt;/a&gt;). Give music its own category so downloads land in a predictable folder.&lt;/p&gt;&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://homelab.lan:8686/settings/downloadclients&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/lidarr-download-clients.DUj4Asuf_Z1NAYd0.webp&quot; aria-label=&quot;Enlarge screenshot: Lidarr Settings Download Clients page with the add-client button&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/lidarr-download-clients.DUj4Asuf_Z2kQhnH.webp&quot; alt=&quot;Lidarr Settings Download Clients page with the add-client button&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;720&quot; height=&quot;450&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Settings → Download Clients — click the + to add the same client your movies and TV already use.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Music indexers are their own thing&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;General movie/TV indexers often carry little music. If music results are thin, the gap is almost always upstream in Prowlarr — add indexers that actually specialize in music rather than tuning Lidarr.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-3-set-the-library-quality-and-metadata&quot;&gt;Task 3: Set the library, quality, and metadata&lt;/h2&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Add a root folder and quality profile&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;4 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Under &lt;strong&gt;Settings → Media Management&lt;/strong&gt;, set the root folder to your music path (e.g. &lt;code&gt;/data/media/music&lt;/code&gt;). Then pick a quality profile — FLAC for lossless, a good MP3 bitrate for smaller files, or a profile that allows both and prefers lossless. The community &lt;a href=&quot;https://trash-guides.info/Lidarr/&quot;&gt;TRaSH Guides for Lidarr&lt;/a&gt; are the reference for tuning these.&lt;/p&gt;&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://homelab.lan:8686/settings/mediamanagement&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/lidarr-root-folders.DnDZqOhd_ROvdl.webp&quot; aria-label=&quot;Enlarge screenshot: Lidarr Settings Media Management page showing the configured music root folder&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/lidarr-root-folders.DnDZqOhd_ZxfBLM.webp&quot; alt=&quot;Lidarr Settings Media Management page showing the configured music root folder&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;720&quot; height=&quot;495&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Settings → Media Management: point the root folder at your music path.&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://homelab.lan:8686/settings/profiles&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/lidarr-profiles.DYF2K7C6_1ntdmS.webp&quot; aria-label=&quot;Enlarge screenshot: Lidarr Settings Profiles page showing quality and metadata profiles&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/lidarr-profiles.DYF2K7C6_WClHS.webp&quot; alt=&quot;Lidarr Settings Profiles page showing quality and metadata profiles&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;720&quot; height=&quot;495&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Settings → Profiles: quality decides audio format; the metadata profile decides which release types Lidarr grabs.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Follow your first artists&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;varies&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Search for an artist, choose a &lt;strong&gt;monitor&lt;/strong&gt; option (all albums, future only, latest), and a &lt;strong&gt;metadata profile&lt;/strong&gt; that decides which release types to grab — studio albums only, or also EPs, singles, and live records. Start narrow; “everything for everyone” fills a disk fast.&lt;/p&gt;&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://homelab.lan:8686/add/search&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/lidarr-add-artist.C30hHO5E_1ezV2j.webp&quot; aria-label=&quot;Enlarge screenshot: Lidarr Add New artist page where you type an artist name to search MusicBrainz&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/lidarr-add-artist.C30hHO5E_q5MPm.webp&quot; alt=&quot;Lidarr Add New artist page where you type an artist name to search MusicBrainz&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;720&quot; height=&quot;450&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Library → Add New: start typing an artist name and Lidarr looks it up in MusicBrainz.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;MusicBrainz is the source of truth&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Lidarr can only track what &lt;a href=&quot;https://musicbrainz.org/&quot;&gt;MusicBrainz&lt;/a&gt; knows about. A brand-new or obscure release that isn’t in MusicBrainz yet won’t match until the entry exists — occasionally you’ll add or correct it there, and Lidarr picks up the change on its next refresh.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;fill-the-last-gaps-in-automation&quot;&gt;Fill the last gaps in automation&lt;/h2&gt;
&lt;p&gt;With Lidarr running, the *arr family covers the media that actually fills a household library — movies, TV, and now music — all driven by the same Prowlarr indexers and download client. If you haven’t added it yet, &lt;a href=&quot;https://peira.dev/articles/bazarr-subtitles-arr-stack/&quot;&gt;Bazarr&lt;/a&gt; rounds out the video side by fetching subtitles automatically.&lt;/p&gt;
&lt;p&gt;Once everything is this automated, the piece worth adding is knowing it stays healthy — the &lt;a href=&quot;https://peira.dev/articles/self-healing-arr-stack/&quot;&gt;self-healing Arr stack&lt;/a&gt; covers catching the day a key rotates or a download client quietly dies.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/arr-stack-explained/&quot;&gt;What Is the Arr Stack? Sonarr, Radarr, and Prowlarr Explained&lt;/a&gt; — the concepts Lidarr reuses&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/arr-stack-docker-deploy/&quot;&gt;Deploy the Arr Stack with Docker Compose&lt;/a&gt; — the shared layout and download client&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/arr-stack-automation/&quot;&gt;Automating the Arr Stack&lt;/a&gt; — import lists and quality profiles, the same ideas for music&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/bazarr-subtitles-arr-stack/&quot;&gt;Bazarr: Automatic Subtitles for Your Arr Stack&lt;/a&gt; — the subtitle companion for the video side&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/jellyseerr-requests-arr-stack/&quot;&gt;Seerr (formerly Jellyseerr): Let Your Family Request Movies&lt;/a&gt; — the request front end for the stack&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/self-healing-arr-stack/&quot;&gt;The Self-Healing Arr Stack&lt;/a&gt; — keep the pipeline alive when a piece silently fails&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/plex-media-server-nas-lxc/&quot;&gt;Install Plex Media Server on a NAS or Proxmox LXC&lt;/a&gt; — a server that can stream your music library&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>self-hosted</category><category>infrastructure</category><category>automation</category><category>media</category></item><item><title>Watch Any Web Page for Changes With changedetection.io</title><link>https://peira.dev/articles/changedetection-watch-web-pages/</link><guid isPermaLink="true">https://peira.dev/articles/changedetection-watch-web-pages/</guid><description>Self-host changedetection.io to watch release pages, security advisories, and prices — and push a phone alert only when a page actually changes.</description><pubDate>Fri, 04 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;There’s a specific flavor of guilt I know well: the tab I keep open to a project’s releases page, meaning to check whether the security fix shipped yet. Or the vendor advisory page I &lt;em&gt;should&lt;/em&gt; be watching. Or the price of the thing I want, which I refresh at random and always seem to miss the drop on. I keep meaning to check these, and I never do — because “remember to manually check a web page on a schedule” is a job humans are catastrophically bad at.&lt;/p&gt;
&lt;p&gt;So I stopped doing it. &lt;a href=&quot;https://changedetection.io/&quot;&gt;changedetection.io&lt;/a&gt; is a self-hosted watcher: you give it a page, it polls it on a schedule, and it pings your phone &lt;strong&gt;only when something actually changes&lt;/strong&gt;. This is the fourth stop in the &lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;Self-Host the Apps You Actually Use&lt;/a&gt; series, and it’s the one that turned a nagging chore into something I genuinely never think about anymore.&lt;/p&gt;
&lt;p&gt;Here’s the loop it runs so you don’t have to:&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 300&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: changedetection.io fetches a page on a schedule and diffs it against the last version. If nothing changed it stays quiet; if the content changed it sends an Apprise notification to an ntfy topic, which pushes to your phone.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;360&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Poll, diff, and only bother you when it matters&lt;/text&gt;&lt;rect x=&quot;40&quot; y=&quot;120&quot; width=&quot;140&quot; height=&quot;70&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#E0A83F&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;110&quot; y=&quot;150&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;Watcher&lt;/text&gt;&lt;text x=&quot;110&quot; y=&quot;170&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;fetch every 6h&lt;/text&gt;&lt;rect x=&quot;240&quot; y=&quot;120&quot; width=&quot;120&quot; height=&quot;70&quot; rx=&quot;8&quot; fill=&quot;#253727&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;path d=&quot;M258 145 h84 M258 160 h60 M258 172 h74&quot; stroke=&quot;#94A684&quot; stroke-width=&quot;2.5&quot; stroke-linecap=&quot;round&quot;&gt;&lt;/path&gt;&lt;text x=&quot;300&quot; y=&quot;110&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;the page&lt;/text&gt;&lt;path d=&quot;M470 155 l40 -35 l40 35 l-40 35 z&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/path&gt;&lt;text x=&quot;510&quot; y=&quot;160&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;changed?&lt;/text&gt;&lt;text x=&quot;510&quot; y=&quot;235&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;no → stay quiet&lt;/text&gt;&lt;line x1=&quot;510&quot; y1=&quot;190&quot; x2=&quot;510&quot; y2=&quot;222&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;4 4&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;550&quot; y1=&quot;140&quot; x2=&quot;620&quot; y2=&quot;120&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;2&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;620&quot; y=&quot;95&quot; width=&quot;70&quot; height=&quot;110&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;630&quot; y=&quot;110&quot; width=&quot;50&quot; height=&quot;70&quot; rx=&quot;4&quot; fill=&quot;#09100B&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;655&quot; y=&quot;150&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;ntfy&lt;/text&gt;&lt;circle cx=&quot;655&quot; cy=&quot;193&quot; r=&quot;4&quot; fill=&quot;#6E5F33&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;655&quot; y=&quot;220&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;your phone&lt;/text&gt;&lt;line x1=&quot;180&quot; y1=&quot;155&quot; x2=&quot;240&quot; y2=&quot;155&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;360&quot; y1=&quot;155&quot; x2=&quot;470&quot; y2=&quot;155&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;180&quot; cy=&quot;155&quot; r=&quot;4.5&quot; fill=&quot;#E0A83F&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;180;240&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.8s&quot; begin=&quot;0s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;1;0&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.8s&quot; begin=&quot;0.8s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;circle cx=&quot;360&quot; cy=&quot;155&quot; r=&quot;4.5&quot; fill=&quot;#7BB26A&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;360;470;620&quot; keyTimes=&quot;0;0.5;1&quot; dur=&quot;1.4s&quot; begin=&quot;1s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;text x=&quot;360&quot; y=&quot;285&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Nine checks out of ten it finds nothing and says nothing. The tenth, you get a ping.&lt;/text&gt;&lt;/svg&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The values below are examples. Replace &lt;strong&gt;&lt;code&gt;10.0.0.60&lt;/code&gt;&lt;/strong&gt; with your changedetection host’s real IP, and choose your own &lt;strong&gt;ntfy topic name&lt;/strong&gt; in place of &lt;strong&gt;&lt;code&gt;homelab-releases&lt;/code&gt;&lt;/strong&gt; — pick something unguessable, since anyone who knows a public ntfy topic name can read it. If a value looks specific to one machine, it’s a placeholder to change — not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-changedetectionio-is&quot;&gt;What changedetection.io is&lt;/h2&gt;
&lt;p&gt;changedetection.io is, at heart, a very disciplined robot that reloads web pages and compares them to last time. You add a &lt;strong&gt;watch&lt;/strong&gt; — a URL plus how often to check it — and it stores a snapshot. On each check it fetches the page again, diffs it against the stored version, and if the parts you care about changed, it fires a notification. It’s &lt;a href=&quot;https://github.com/dgtlmoon/changedetection.io&quot;&gt;open source&lt;/a&gt;, it’s light, and it’s genuinely one of those tools that pays for its keep the first week.&lt;/p&gt;
&lt;p&gt;The classic uses are exactly the chores you keep forgetting: software release pages, security advisories, product prices, restock alerts, and terms-of-service or policy pages. Anything that lives at a stable URL and updates on its own clock is a candidate.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;deploy-it&quot;&gt;Deploy it&lt;/h2&gt;
&lt;p&gt;changedetection.io offers both a &lt;a href=&quot;https://changedetection.io/&quot;&gt;Docker install&lt;/a&gt; and a native &lt;a href=&quot;https://pypi.org/project/changedetection.io/&quot;&gt;pip&lt;/a&gt; install (it needs Python 3.10+). I run it natively in a small &lt;a href=&quot;https://peira.dev/articles/proxmox-create-lxc/&quot;&gt;Proxmox LXC&lt;/a&gt; under systemd, but the Docker route is a single command if you’d rather.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Install changedetection.io&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;The native install is a pip install into a virtualenv, run under a dedicated service user. A 2-core, 1 GB container is plenty &lt;em&gt;if&lt;/em&gt; you stick to browserless watches (more on that next).&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Native install (pip), or the Docker one-liner&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
# Native (Python 3.10+), pinned to a known release:
pip install changedetection.io==0.55.8
changedetection.io -d /var/lib/changedetection/data -p 5000

# Or Docker:
docker run -d --restart always -p 127.0.0.1:5000:5000 \
  -v datastore-volume:/datastore --name changedetection dgtlmoon/changedetection.io
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Pin the version deliberately (like any &lt;a href=&quot;https://peira.dev/articles/karakeep-local-ai-bookmarks/&quot;&gt;self-hosted service&lt;/a&gt;) and bump it on purpose after reading the changelog. Open the UI on port &lt;code&gt;5000&lt;/code&gt; to add your first watch.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;It ships with no authentication&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Out of the box, anyone who can reach the web UI can see and edit your watches. Keep it on a trusted LAN or reach it over &lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;Tailscale&lt;/a&gt; — never expose it straight to the internet. If you must, put an authenticating reverse proxy in front.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://homelab.lan:5000/&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/changedetection-overview.Bjl_Zspm_1HVyfW.webp&quot; aria-label=&quot;Enlarge screenshot: The changedetection.io overview listing several watches — Proxmox VE end-of-life dates, Kubernetes releases, Debian news — each with its last-checked and last-changed time&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/changedetection-overview.Bjl_Zspm_Z1loT30.webp&quot; alt=&quot;The changedetection.io overview listing several watches — Proxmox VE end-of-life dates, Kubernetes releases, Debian news — each with its last-checked and last-changed time&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;760&quot; height=&quot;428&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;The watch list after adding a few pages. Two have changed since the last check; the rest sit quietly unchanged — exactly the signal you want.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-real-skill-pick-endpoints-a-browser-doesnt-need&quot;&gt;The real skill: pick endpoints a browser doesn’t need&lt;/h2&gt;
&lt;p&gt;Here’s the trick that keeps this running happily on a tiny container. changedetection.io &lt;em&gt;can&lt;/em&gt; drive a full headless browser to render JavaScript-heavy pages — but that’s heavy, and you rarely need it. If the information you want is exposed as a &lt;strong&gt;JSON API&lt;/strong&gt;, an &lt;strong&gt;RSS/Atom feed&lt;/strong&gt;, or plain &lt;strong&gt;static HTML&lt;/strong&gt;, you can fetch and parse it directly with no browser at all. It supports &lt;a href=&quot;https://github.com/dgtlmoon/changedetection.io&quot;&gt;XPath, JSONPath, jq, and CSS filters&lt;/a&gt; under the &lt;em&gt;Filters &amp;amp; Triggers&lt;/em&gt; tab, so you can pinpoint exactly the value that matters and ignore the churn around it.&lt;/p&gt;
&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://homelab.lan:5000/diff/&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/changedetection-diff.BADayLCf_1IcsGo.webp&quot; aria-label=&quot;Enlarge screenshot: A changedetection.io diff view highlighting removed text in red and added text in green between two snapshots of a watched page&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/changedetection-diff.BADayLCf_ZUOAjX.webp&quot; alt=&quot;A changedetection.io diff view highlighting removed text in red and added text in green between two snapshots of a watched page&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;760&quot; height=&quot;523&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;When a page changes, this is what lands: a word-level diff of exactly what moved. Watch a tight endpoint and the change you care about stands out instead of drowning in page noise.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;That framing changes how you choose &lt;em&gt;what URL to watch&lt;/em&gt;. Instead of watching a vendor’s pretty download page (JavaScript, ads, a rotating banner — all noise), watch the JSON or feed behind it. Here are the kinds of targets I reach for:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you want&lt;/th&gt;
&lt;th&gt;Watch this kind of URL&lt;/th&gt;
&lt;th&gt;Filter&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A project’s latest release&lt;/td&gt;
&lt;td&gt;Its releases JSON/Atom or GitHub releases API&lt;/td&gt;
&lt;td&gt;&lt;code&gt;json:$.tag_name&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A specific product version&lt;/td&gt;
&lt;td&gt;The vendor’s downloads JSON API&lt;/td&gt;
&lt;td&gt;&lt;code&gt;json:$.&amp;lt;path.to.version&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Forum/announcement posts&lt;/td&gt;
&lt;td&gt;The section’s &lt;strong&gt;RSS feed&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;xpath://item/title&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A plain content page&lt;/td&gt;
&lt;td&gt;The static HTML page&lt;/td&gt;
&lt;td&gt;a CSS/XPath selector for the region&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Every one of those is parseable without a browser, which is why five real watches sit comfortably on a 1 GB box.&lt;/p&gt;
&lt;h3 id=&quot;the-rss-trap-that-alerts-you-forever&quot;&gt;The RSS trap that alerts you forever&lt;/h3&gt;
&lt;p&gt;The first time I watched an RSS feed &lt;em&gt;unfiltered&lt;/em&gt;, my phone buzzed on &lt;strong&gt;every single check&lt;/strong&gt; even though nothing new had been posted. The culprit: most feeds include a &lt;code&gt;lastBuildDate&lt;/code&gt; (or similar) timestamp that’s regenerated every time the feed is served. To changedetection.io, that timestamp changing &lt;em&gt;is&lt;/em&gt; a change. The fix is to filter down to just the part you care about — for a feed, an XPath selecting the item titles:&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 250&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: watching a whole RSS feed sees the lastBuildDate timestamp change every fetch and fires constantly; filtering to item titles with XPath only fires when a real new item appears.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;360&quot; y=&quot;28&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Filter the feed, or it cries wolf every check&lt;/text&gt;&lt;rect x=&quot;40&quot; y=&quot;55&quot; width=&quot;200&quot; height=&quot;56&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;140&quot; y=&quot;78&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;watch whole feed&lt;/text&gt;&lt;text x=&quot;140&quot; y=&quot;96&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;lastBuildDate included&lt;/text&gt;&lt;line x1=&quot;240&quot; y1=&quot;83&quot; x2=&quot;470&quot; y2=&quot;83&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;4 4&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;470&quot; y=&quot;55&quot; width=&quot;210&quot; height=&quot;56&quot; rx=&quot;9&quot; fill=&quot;#241512&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;575&quot; y=&quot;78&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;fires EVERY check&lt;/text&gt;&lt;text x=&quot;575&quot; y=&quot;96&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;alert fatigue&lt;/text&gt;&lt;rect x=&quot;40&quot; y=&quot;150&quot; width=&quot;200&quot; height=&quot;56&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;140&quot; y=&quot;173&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;xpath://item/title&lt;/text&gt;&lt;text x=&quot;140&quot; y=&quot;191&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;titles only&lt;/text&gt;&lt;line x1=&quot;240&quot; y1=&quot;178&quot; x2=&quot;470&quot; y2=&quot;178&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;2&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;470&quot; y=&quot;150&quot; width=&quot;210&quot; height=&quot;56&quot; rx=&quot;9&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;575&quot; y=&quot;173&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;fires on real posts only&lt;/text&gt;&lt;text x=&quot;575&quot; y=&quot;191&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;signal, not noise&lt;/text&gt;&lt;circle cx=&quot;242&quot; cy=&quot;178&quot; r=&quot;4.5&quot; fill=&quot;#4FAE96&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;242;470&quot; keyTimes=&quot;0;1&quot; dur=&quot;1.1s&quot; begin=&quot;0.4s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;/svg&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;push-it-to-your-phone-with-ntfy&quot;&gt;Push it to your phone with ntfy&lt;/h2&gt;
&lt;p&gt;Notifications run through &lt;a href=&quot;https://github.com/caronc/apprise&quot;&gt;Apprise&lt;/a&gt;, a library that speaks to dozens of services. My favorite for this is &lt;a href=&quot;https://ntfy.sh/&quot;&gt;ntfy&lt;/a&gt; — dead simple push notifications you subscribe to by topic in a phone app. In a watch’s &lt;em&gt;Notifications&lt;/em&gt; list, add an Apprise ntfy URL:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Apprise ntfy notification URL&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
# public ntfy.sh, dedicated topic:
ntfy://homelab-releases

# or a self-hosted ntfy server:
ntfys://ntfy.homelab.lan/homelab-releases
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://homelab.lan:5000/edit/&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/changedetection-notifications.CoB2lgd5_Z2pteCx.webp&quot; aria-label=&quot;Enlarge screenshot: The changedetection.io notifications screen showing the Notification URL List field with Apprise example URLs and a base-URL override&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/changedetection-notifications.CoB2lgd5_Z1cdxTP.webp&quot; alt=&quot;The changedetection.io notifications screen showing the Notification URL List field with Apprise example URLs and a base-URL override&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;760&quot; height=&quot;546&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;The Notification URL List accepts any Apprise URL — an ntfy topic drops straight in here, and the base-URL override keeps links pointing back at your own instance.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Give releases their own topic&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Don’t reuse the topic your urgent alerts (a down service, a failed backup) go to. Release notices are interesting, not urgent, and mixing them trains you to ignore the topic that actually matters. A separate &lt;code&gt;homelab-releases&lt;/code&gt; topic keeps the &lt;a href=&quot;https://peira.dev/articles/uptime-kuma-monitoring/&quot;&gt;monitoring pager&lt;/a&gt; channel meaningful. Pick an unguessable topic name, too — public ntfy topics are readable by anyone who knows the name.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;To be sure it works end to end, I add a throwaway watch on a page that changes on every request, force a recheck, and confirm the ping lands on my phone. Then I delete the test watch. Proving the whole chain — detect → Apprise → ntfy → phone — beats assuming any one link works.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;watch-the-watcher&quot;&gt;Watch the watcher&lt;/h2&gt;
&lt;p&gt;There’s a delicious irony here: a tool whose entire job is to notice things can itself die quietly and stop noticing anything, and you’d never know. So I point a &lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;black-box uptime probe&lt;/a&gt; at its web UI and alert if it stops answering — a dead-man switch, so a dead watcher pages me instead of failing silent. The &lt;a href=&quot;https://peira.dev/playbooks/changedetection-homelab/&quot;&gt;companion playbook&lt;/a&gt; has the full deploy, five example watches, and the probe.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;let-the-disks-speak-next&quot;&gt;Let the disks speak next&lt;/h2&gt;
&lt;p&gt;That’s four apps that make the homelab genuinely more useful — private search, self-tagging bookmarks, an OCR’d document archive, and a tireless page-watcher. To close the series, we go one layer down and protect the thing all of it runs on: &lt;a href=&quot;https://peira.dev/articles/smart-disk-health-monitoring/&quot;&gt;SMART disk-health trending&lt;/a&gt;, so a dying drive warns you weeks ahead instead of taking your data with it.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/paperless-ngx-document-archive/&quot;&gt;Paperless-ngx: OCR Every Document You Own, Searchable&lt;/a&gt; — the previous post: make your documents findable.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/smart-disk-health-monitoring/&quot;&gt;SMART Disk-Health Trending for Your Whole Fleet&lt;/a&gt; — the series finale: watch the disks under everything.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;Give Your Local AI Private Web Search With SearXNG&lt;/a&gt; — where the series started: your own private search engine.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/uptime-kuma-monitoring/&quot;&gt;Uptime Kuma: Simple Homelab Monitoring&lt;/a&gt; — the friendly status-page companion to a change watcher.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;What Is Prometheus?&lt;/a&gt; — the metrics stack behind the dead-man probe.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;Tailscale Subnet Router for Your Homelab&lt;/a&gt; — reach an unauthenticated tool safely from anywhere.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-create-lxc/&quot;&gt;Create Your First Proxmox LXC Container&lt;/a&gt; — where the watcher lives in this build.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>monitoring</category><category>self-hosted</category></item><item><title>Self-Hosted Bookmarks That Tag Themselves With Local AI</title><link>https://peira.dev/articles/karakeep-local-ai-bookmarks/</link><guid isPermaLink="true">https://peira.dev/articles/karakeep-local-ai-bookmarks/</guid><description>Run Karakeep with a local Ollama model that auto-tags every bookmark you save — no cloud keys — plus ArchiveBox to snapshot pages against link rot.</description><pubDate>Fri, 04 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Let me describe my old bookmarking system, which was not a system. I’d hit Ctrl-D, a link would drop into a folder called “read later,” and I would never read it later. Six hundred links in, “read later” was a graveyard — no tags, no search, no hope. The links I actually needed were in there &lt;em&gt;somewhere&lt;/em&gt;, buried among dead domains and half-remembered blog posts.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://karakeep.app&quot;&gt;Karakeep&lt;/a&gt; (which you may know by its old name, Hoarder) fixes this in the most satisfying way: it reads each thing you save and &lt;strong&gt;tags it for you&lt;/strong&gt; — and if you point it at a local model, it does that tagging on your own hardware with no cloud keys anywhere. This is the second stop in the &lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;Self-Host the Apps You Actually Use&lt;/a&gt; series, and it reuses the exact same local-AI muscle we set up for &lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;private web search&lt;/a&gt;. We’ll also bolt on &lt;a href=&quot;https://archivebox.io&quot;&gt;ArchiveBox&lt;/a&gt; so the pages themselves are preserved, not just their URLs.&lt;/p&gt;
&lt;p&gt;Here’s what happens the moment you save a link:&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 300&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: you save a link, Karakeep&apos;s worker fetches the page and sends its text to a local Ollama model, which returns tags that are applied to the bookmark, all on your own hardware.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;360&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Save a link — the tags apply themselves, privately&lt;/text&gt;&lt;rect x=&quot;30&quot; y=&quot;120&quot; width=&quot;120&quot; height=&quot;60&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;90&quot; y=&quot;147&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;You save&lt;/text&gt;&lt;text x=&quot;90&quot; y=&quot;165&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;a URL&lt;/text&gt;&lt;rect x=&quot;210&quot; y=&quot;110&quot; width=&quot;150&quot; height=&quot;80&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;285&quot; y=&quot;140&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;Karakeep worker&lt;/text&gt;&lt;text x=&quot;285&quot; y=&quot;160&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;fetch page + text&lt;/text&gt;&lt;text x=&quot;285&quot; y=&quot;176&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;screenshot&lt;/text&gt;&lt;rect x=&quot;420&quot; y=&quot;110&quot; width=&quot;150&quot; height=&quot;80&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;495&quot; y=&quot;140&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;Local Ollama&lt;/text&gt;&lt;text x=&quot;495&quot; y=&quot;160&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;reads the text,&lt;/text&gt;&lt;text x=&quot;495&quot; y=&quot;176&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;suggests tags&lt;/text&gt;&lt;rect x=&quot;620&quot; y=&quot;96&quot; width=&quot;82&quot; height=&quot;26&quot; rx=&quot;13&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot; opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.4s&quot; begin=&quot;1.6s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/rect&gt;&lt;text x=&quot;661&quot; y=&quot;113&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;tailscale&lt;/text&gt;&lt;rect x=&quot;620&quot; y=&quot;132&quot; width=&quot;82&quot; height=&quot;26&quot; rx=&quot;13&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot; opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.4s&quot; begin=&quot;2.2s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/rect&gt;&lt;text x=&quot;661&quot; y=&quot;149&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;vpn&lt;/text&gt;&lt;rect x=&quot;620&quot; y=&quot;168&quot; width=&quot;82&quot; height=&quot;26&quot; rx=&quot;13&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot; opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.4s&quot; begin=&quot;2.8s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/rect&gt;&lt;text x=&quot;661&quot; y=&quot;185&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;networking&lt;/text&gt;&lt;line x1=&quot;150&quot; y1=&quot;150&quot; x2=&quot;210&quot; y2=&quot;150&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;360&quot; y1=&quot;150&quot; x2=&quot;420&quot; y2=&quot;150&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;570&quot; y1=&quot;150&quot; x2=&quot;620&quot; y2=&quot;140&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;150&quot; cy=&quot;150&quot; r=&quot;4.5&quot; fill=&quot;#4FAE96&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;150;210;420;570&quot; keyTimes=&quot;0;0.33;0.66;1&quot; dur=&quot;1.5s&quot; begin=&quot;0s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;1;1;0&quot; keyTimes=&quot;0;0.85;1&quot; dur=&quot;1.5s&quot; begin=&quot;0s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;text x=&quot;360&quot; y=&quot;285&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;No cloud key is ever involved — the tagging model runs on your own Ollama server.&lt;/text&gt;&lt;/svg&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The addresses and models below are examples. Swap in your own: &lt;strong&gt;&lt;code&gt;10.0.0.30&lt;/code&gt;&lt;/strong&gt; stands in for your Karakeep host, &lt;strong&gt;&lt;code&gt;10.0.0.40:11434&lt;/code&gt;&lt;/strong&gt; for your Ollama server, and &lt;strong&gt;&lt;code&gt;gemma3:4b&lt;/code&gt;&lt;/strong&gt; should be whatever model you’ve pulled. Any account email like &lt;strong&gt;&lt;code&gt;you@example.com&lt;/code&gt;&lt;/strong&gt; is a placeholder for your own. If a value looks specific to one machine, it’s a placeholder to change — not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-karakeep-actually-is&quot;&gt;What Karakeep actually is&lt;/h2&gt;
&lt;p&gt;Karakeep is a self-hosted &lt;strong&gt;bookmark-everything app&lt;/strong&gt;: links, articles, PDFs, images, and notes all go in, and it fetches metadata, screenshots or archives the page, and gives you fast full-text search across the lot. The headline feature — and the reason it’s in an AI series — is that it can &lt;strong&gt;automatically tag&lt;/strong&gt; everything you save using an AI model. The &lt;a href=&quot;https://docs.karakeep.app/&quot;&gt;official docs&lt;/a&gt; are clear that you enable auto-tagging by giving it &lt;em&gt;either&lt;/em&gt; an OpenAI key &lt;em&gt;or&lt;/em&gt; an Ollama endpoint. We’re choosing Ollama, because “my bookmarks, tagged by my hardware, with nothing leaving the house” is exactly the homelab dream.&lt;/p&gt;
&lt;p&gt;Under the hood it’s a few cooperating pieces: a &lt;strong&gt;web&lt;/strong&gt; app, background &lt;strong&gt;workers&lt;/strong&gt; that do the fetching and tagging, a headless &lt;strong&gt;browser&lt;/strong&gt; for screenshots, and &lt;a href=&quot;https://www.meilisearch.com/&quot;&gt;Meilisearch&lt;/a&gt; for that instant full-text search. You don’t manage them by hand — the installer sets them all up as services.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;deploy-karakeep&quot;&gt;Deploy Karakeep&lt;/h2&gt;
&lt;p&gt;Karakeep is most commonly run with Docker, but it also ships an &lt;strong&gt;official Linux install script&lt;/strong&gt; for bare-metal Debian 12 / Ubuntu 24.04, which is what I run in a &lt;a href=&quot;https://peira.dev/articles/proxmox-create-lxc/&quot;&gt;Proxmox LXC&lt;/a&gt;. The &lt;a href=&quot;https://docs.karakeep.app/installation/debuntu/&quot;&gt;Debian/Ubuntu install docs&lt;/a&gt; cover it; here’s the shape.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Create a Debian 12 container&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;An unprivileged Debian 12 LXC with 2 CPU cores, 4 GB of RAM, and 30 GB of disk handles Karakeep, Meilisearch, and the headless browser comfortably. The browser and archiving are the memory-hungry parts, so don’t starve it — 4 GB is a sensible floor.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Run the official install script&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;The script downloads and installs every dependency &lt;strong&gt;except Ollama&lt;/strong&gt;, installs Karakeep and Meilisearch, runs them as low-privilege users, and creates the systemd services so everything starts on boot. Handily, it doubles as the &lt;em&gt;update&lt;/em&gt; script later.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Install Karakeep on Debian 12 / Ubuntu 24.04&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
# as root (or with sudo)
wget https://raw.githubusercontent.com/karakeep-app/karakeep/main/karakeep-linux.sh
bash karakeep-linux.sh
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;When it finishes you’ll have the Karakeep web UI on port &lt;code&gt;3000&lt;/code&gt;. Create your first account through the sign-up page (on a LAN-only instance it’s fine to leave sign-ups open; if you ever expose it, lock them down).&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Two gotchas if you build the dependencies by hand&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;If you install Node yourself instead of letting the script manage it, watch for these — both cost me real time. First, Karakeep’s SQLite layer (&lt;code&gt;better-sqlite3&lt;/code&gt;) is a compiled native module, and a too-new Node release can crash it in a loop; pinning a current &lt;strong&gt;LTS&lt;/strong&gt; (I settled on Node 22) fixed it. Second, if you try to rebuild that module, &lt;code&gt;npm rebuild&lt;/code&gt; can &lt;em&gt;silently do nothing&lt;/em&gt; under npm’s newer install-script gate — so verify the rebuild by checking the compiled &lt;code&gt;.node&lt;/code&gt; file actually changed, not by trusting the “success” message. The lesson: prove a rebuild by the artifact, not the exit code.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;wire-the-local-ai-tagging-the-part-with-a-trap&quot;&gt;Wire the local AI tagging (the part with a trap)&lt;/h2&gt;
&lt;p&gt;Auto-tagging is off until you give Karakeep an inference endpoint. For a local setup you edit its environment file (the install script creates one; on the Debian install it lives under &lt;code&gt;/etc/karakeep/&lt;/code&gt;) and point it at your &lt;a href=&quot;https://peira.dev/articles/ollama-lxc-cluster/&quot;&gt;Ollama&lt;/a&gt; server.&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Karakeep AI env — local Ollama, no cloud keys&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
OLLAMA_BASE_URL=http://10.0.0.40:11434
INFERENCE_TEXT_MODEL=gemma3:4b
INFERENCE_IMAGE_MODEL=gemma3:4b
INFERENCE_CONTEXT_LENGTH=4096
INFERENCE_JOB_TIMEOUT_SEC=600
INFERENCE_OUTPUT_SCHEMA=plain
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;Each line earns its place:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;OLLAMA_BASE_URL&lt;/code&gt;&lt;/strong&gt; is what actually switches tagging on for local inference (the docs note you set &lt;em&gt;either&lt;/em&gt; this or an OpenAI key). Use the Ollama server’s real network address, never &lt;code&gt;localhost&lt;/code&gt; — from inside the Karakeep container, &lt;code&gt;localhost&lt;/code&gt; is the container itself.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;INFERENCE_TEXT_MODEL&lt;/code&gt;&lt;/strong&gt; must be set to a model you’ve pulled. Its &lt;a href=&quot;https://docs.karakeep.app/configuration/environment-variables/&quot;&gt;default is a GPT model name&lt;/a&gt;, so if you leave it unset Karakeep will try to call OpenAI and fail. Set it to your local model. If you are not sure which one, I &lt;a href=&quot;https://peira.dev/articles/best-small-llm-cpu-homelab/&quot;&gt;bench-tested small models across two generations on a CPU-only node&lt;/a&gt; and Gemma 3 4B is what I tag with here.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;INFERENCE_IMAGE_MODEL&lt;/code&gt;&lt;/strong&gt; only matters if you want image tagging; it needs a vision-capable model (a multimodal model like gemma3 covers both roles).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;INFERENCE_CONTEXT_LENGTH&lt;/code&gt;&lt;/strong&gt; defaults to a small value (2048); raising it lets the model see more of each page for better tags, at some cost in speed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;INFERENCE_JOB_TIMEOUT_SEC&lt;/code&gt;&lt;/strong&gt; defaults to 30 seconds — far too short for a CPU-only model. Raise it generously so slow-but-valid tagging jobs aren’t killed mid-thought.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That leaves the one that will save you an afternoon:&lt;/p&gt;
&lt;h3 id=&quot;the-structured-output-trap&quot;&gt;The structured-output trap&lt;/h3&gt;
&lt;p&gt;Karakeep can ask the model for &lt;strong&gt;structured output&lt;/strong&gt; — JSON forced to match a strict schema. Big cloud models love this; many &lt;strong&gt;small local models choke on it&lt;/strong&gt;, stalling for minutes or returning malformed output, and Karakeep then reports something like “the model didn’t respond with the expected JSON.” The fix is to tell Karakeep to use &lt;em&gt;plain&lt;/em&gt; output and let it parse the model’s normal response:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;The setting that unsticks small-model tagging&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
# current releases:
INFERENCE_OUTPUT_SCHEMA=plain

# older releases used the (now-deprecated) equivalent:
# INFERENCE_SUPPORTS_STRUCTURED_OUTPUT=false
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;I found this the hard way: with schema-constrained mode, a tiny prompt hung for over two minutes; with plain prompting, the same model returned clean tags in a handful of seconds. Karakeep’s docs now &lt;a href=&quot;https://docs.karakeep.app/configuration/environment-variables/&quot;&gt;document &lt;code&gt;INFERENCE_OUTPUT_SCHEMA&lt;/code&gt;&lt;/a&gt; with &lt;code&gt;structured&lt;/code&gt;, &lt;code&gt;json&lt;/code&gt;, and &lt;code&gt;plain&lt;/code&gt; options — reach for &lt;code&gt;plain&lt;/code&gt; when your model is small.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 260&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram comparing two tagging modes: strict structured output makes a small local model hang for minutes, while plain output returns clean tags in seconds.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;360&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Same small model, two output modes&lt;/text&gt;&lt;rect x=&quot;40&quot; y=&quot;60&quot; width=&quot;180&quot; height=&quot;52&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;130&quot; y=&quot;82&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;structured / json&lt;/text&gt;&lt;text x=&quot;130&quot; y=&quot;100&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;strict schema&lt;/text&gt;&lt;line x1=&quot;220&quot; y1=&quot;86&quot; x2=&quot;470&quot; y2=&quot;86&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;4 4&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;470&quot; y=&quot;60&quot; width=&quot;210&quot; height=&quot;52&quot; rx=&quot;9&quot; fill=&quot;#241512&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;575&quot; y=&quot;82&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;hangs 120s+, or bad JSON&lt;/text&gt;&lt;text x=&quot;575&quot; y=&quot;100&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;“model didn’t respond as expected”&lt;/text&gt;&lt;rect x=&quot;40&quot; y=&quot;160&quot; width=&quot;180&quot; height=&quot;52&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;130&quot; y=&quot;182&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;plain&lt;/text&gt;&lt;text x=&quot;130&quot; y=&quot;200&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;unconstrained prompt&lt;/text&gt;&lt;line x1=&quot;220&quot; y1=&quot;186&quot; x2=&quot;470&quot; y2=&quot;186&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;2&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;470&quot; y=&quot;160&quot; width=&quot;210&quot; height=&quot;52&quot; rx=&quot;9&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;575&quot; y=&quot;182&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;clean tags in seconds&lt;/text&gt;&lt;text x=&quot;575&quot; y=&quot;200&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;then applied to the bookmark&lt;/text&gt;&lt;circle cx=&quot;222&quot; cy=&quot;186&quot; r=&quot;4.5&quot; fill=&quot;#4FAE96&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;222;470&quot; keyTimes=&quot;0;1&quot; dur=&quot;1.1s&quot; begin=&quot;0.4s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;/svg&gt;
&lt;p&gt;With that set, save a bookmark and watch the tags land. On my CPU-only node a fresh save was fully tagged in about &lt;strong&gt;170 seconds&lt;/strong&gt; — noticeably slower than a cloud API, but it’s private, it’s free per-tag, and it runs in the background so you’re rarely waiting on it. If you want it faster, the answer is the same as for &lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;web search&lt;/a&gt;: a GPU.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;archivebox-insurance-against-link-rot&quot;&gt;ArchiveBox: insurance against link rot&lt;/h2&gt;
&lt;p&gt;Tagging makes your bookmarks &lt;em&gt;findable&lt;/em&gt;; it doesn’t stop the pages behind them from disappearing. Link rot is real — sites go down, articles get rewritten, that perfect tutorial 404s the day you need it. &lt;a href=&quot;https://archivebox.io&quot;&gt;ArchiveBox&lt;/a&gt; is a self-hosted archiver that saves a full snapshot of a page: the HTML, a PDF, and a screenshot, kept locally.&lt;/p&gt;
&lt;p&gt;I run it in &lt;strong&gt;batch mode&lt;/strong&gt; — it has no always-on daemon by design, so there’s nothing extra to monitor. You feed it a list of URLs and it archives each one. A couple of configuration notes from the &lt;a href=&quot;https://docs.archivebox.io/&quot;&gt;official docs&lt;/a&gt; that keep it lean and polite:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;ArchiveBox: local-only, add a list of URLs&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
# keep everything local — don&amp;#39;t also submit to the Internet Archive
archivebox config --set SAVE_ARCHIVE_DOT_ORG=False

# archive a list of URLs, one per line, no recursion
archivebox add --depth=0 &amp;lt; urls.txt
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;One --set, many pairs&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;ArchiveBox’s config CLI takes multiple settings in a single command: &lt;code&gt;archivebox config --set KEY1=value1 KEY2=value2&lt;/code&gt;. It’s easy to reach for one &lt;code&gt;--set&lt;/code&gt; per line out of habit; you don’t need to.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;In my case I pointed it at the external links from my own writing so every source I cite is preserved even if the original vanishes. A small pilot measured around &lt;strong&gt;7.6 seconds per URL&lt;/strong&gt; on my hardware — fine for a background batch. Browse the archive on demand with &lt;code&gt;archivebox server&lt;/code&gt; when you actually want to look something up.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;dont-let-it-fail-silently&quot;&gt;Don’t let it fail silently&lt;/h2&gt;
&lt;p&gt;Like the &lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;search engine from the last post&lt;/a&gt;, Karakeep is the kind of service that can quietly stop tagging and you’d never notice until you went looking. A simple black-box HTTP probe against the web UI — alerting if it stops answering — is cheap insurance; see &lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;What Is Prometheus?&lt;/a&gt;. ArchiveBox, being batch-only, has nothing to monitor. The &lt;a href=&quot;https://peira.dev/playbooks/karakeep-local-ai-tagging/&quot;&gt;companion playbook&lt;/a&gt; has the full deploy and the exact env values.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;from-saved-links-to-searchable-documents&quot;&gt;From saved links to searchable documents&lt;/h2&gt;
&lt;p&gt;Your bookmarks now tag themselves and the pages behind them are safe. Next in the series we widen from &lt;em&gt;links&lt;/em&gt; to &lt;em&gt;documents&lt;/em&gt;: &lt;a href=&quot;https://peira.dev/articles/paperless-ngx-document-archive/&quot;&gt;Paperless-ngx&lt;/a&gt; OCRs every PDF and scan you own so you can search the &lt;strong&gt;text&lt;/strong&gt; of a warranty or tax form, not just guess at the filename.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;Give Your Local AI Private Web Search With SearXNG&lt;/a&gt; — the previous post: the same local-AI setup, pointed at the live web.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/paperless-ngx-document-archive/&quot;&gt;Paperless-ngx: A Searchable Archive for Every Document&lt;/a&gt; — the next post: OCR and full-text search for your documents.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/changedetection-watch-web-pages/&quot;&gt;Watch Any Web Page for Changes With changedetection.io&lt;/a&gt; — another “let the homelab watch it for you” service.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/ollama-lxc-cluster/&quot;&gt;Run an Ollama Cluster in Proxmox LXC&lt;/a&gt; — the local inference server Karakeep tags against.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/best-small-llm-cpu-homelab/&quot;&gt;The Best Small LLM for a CPU-Only Homelab Node&lt;/a&gt; — why Gemma 3 4B is the tagging model here.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/open-webui-advanced/&quot;&gt;Open WebUI: Advanced Setup&lt;/a&gt; — another local-AI front-end, configured properly.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;What Is Prometheus?&lt;/a&gt; — the monitoring that catches a silently-dead service.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-create-lxc/&quot;&gt;Create Your First Proxmox LXC Container&lt;/a&gt; — where Karakeep lives in this build.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>ai</category><category>ollama</category><category>self-hosted</category></item><item><title>Load-Balance a Multi-Node Ollama Cluster With Olla</title><link>https://peira.dev/articles/olla-ollama-load-balancer/</link><guid isPermaLink="true">https://peira.dev/articles/olla-ollama-load-balancer/</guid><description>Put Olla in front of a multi-node Ollama cluster for one endpoint with load balancing, automatic failover, a unified model list, and Prometheus metrics.</description><pubDate>Fri, 04 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I ended up with three &lt;a href=&quot;https://ollama.com&quot;&gt;Ollama&lt;/a&gt; boxes almost by accident — one with a bit of GPU, two smaller ones for embeddings — and then spent weeks quietly annoyed at my own setup. Every tool I pointed at “my local AI” had to be told a &lt;em&gt;specific&lt;/em&gt; node’s address. If that node was busy or down, the tool just failed; nothing rerouted. And no two nodes had the same models, so I kept a mental map of which box held which model. Three servers, zero coordination.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/thushan/olla&quot;&gt;Olla&lt;/a&gt; fixes exactly that. It’s a small, fast proxy and load balancer that sits in front of your inference backends and gives you &lt;strong&gt;one endpoint&lt;/strong&gt; — with health checks, automatic failover, a merged model catalog, and Prometheus metrics baked in. This is the first of a set of “next-level” homelab builds, and it’s the one I wish I’d deployed the day I added my second Ollama node. Everything below I ran on my own three-node cluster; the routing receipts and metrics you’ll see are real output.&lt;/p&gt;
&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/olla-dashboard-overview.3tymgqIg_2tnBoa.webp&quot; aria-label=&quot;Enlarge screenshot: The Olla dashboard &apos;herd status&apos; overview: status healthy, 3 of 3 endpoints up, olla engine with least-connections balancing, 7 models discovered across 3 ollama backends, and a herd-at-a-glance table listing ollama-node1, ollama-node2, and ollama-node3 all healthy.&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/olla-dashboard-overview.3tymgqIg_ZxXnTl.webp&quot; alt=&quot;The Olla dashboard &apos;herd status&apos; overview: status healthy, 3 of 3 endpoints up, olla engine with least-connections balancing, 7 models discovered across 3 ollama backends, and a herd-at-a-glance table listing ollama-node1, ollama-node2, and ollama-node3 all healthy.&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1400&quot; height=&quot;688&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Olla&amp;#39;s built-in dashboard (/internal/ui/): one endpoint in front of three Ollama nodes, all healthy, with a live model count and per-node status.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Every address below is an example. Replace &lt;strong&gt;&lt;code&gt;10.0.0.61/62/63&lt;/code&gt;&lt;/strong&gt; with your own Ollama nodes’ IPs, and &lt;strong&gt;&lt;code&gt;10.0.0.20&lt;/code&gt;&lt;/strong&gt; with the host you run Olla on. Model names like &lt;strong&gt;&lt;code&gt;gemma3:4b&lt;/code&gt;&lt;/strong&gt; should be whatever you’ve actually pulled. If a value looks specific to one machine, it’s a placeholder to change — not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-olla-is-and-isnt&quot;&gt;What Olla is (and isn’t)&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://thushan.github.io/olla/&quot;&gt;Olla&lt;/a&gt; is a load balancer and reverse proxy for LLM backends. It doesn’t serve models itself — your &lt;a href=&quot;https://peira.dev/articles/ollama-lxc-cluster/&quot;&gt;Ollama&lt;/a&gt; nodes still do that. Olla sits in front and makes several independent servers behave like one: it continuously health-checks each backend, merges their model lists into a single catalog, routes each request to a healthy node that actually has the requested model, and retries on another node if a connection fails. It speaks Ollama-native and OpenAI-compatible APIs, and — a genuinely nice touch — translates the Anthropic Messages API by default, so Claude-flavored tools can talk to your local models too.&lt;/p&gt;
&lt;p&gt;If you run exactly one Ollama box, you don’t need this. The moment you run &lt;strong&gt;two&lt;/strong&gt;, you do — because “which node do I point at, and what happens when it’s down?” is a question you shouldn’t have to answer by hand.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;deploy-olla&quot;&gt;Deploy Olla&lt;/h2&gt;
&lt;p&gt;Olla ships as a single container image, so a small VM or &lt;a href=&quot;https://peira.dev/articles/proxmox-create-lxc/&quot;&gt;LXC&lt;/a&gt; with Docker is all you need.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Run the container&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Pull and run the official image, publishing its port (&lt;code&gt;40114&lt;/code&gt; — “4-OLLA”, which made me smile). I use &lt;code&gt;--network host&lt;/code&gt; so the built-in dashboard, which is loopback-aware, is reachable.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Start Olla&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
docker run -d --name olla --network host \
  -v ~/olla/config.yaml:/app/config/config.yaml \
  ghcr.io/thushan/olla:latest
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;The config path that cost me ten minutes&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Olla reads its config from &lt;strong&gt;&lt;code&gt;config/config.yaml&lt;/code&gt;&lt;/strong&gt; relative to its working directory — inside the container that’s &lt;strong&gt;&lt;code&gt;/app/config/config.yaml&lt;/code&gt;&lt;/strong&gt;. I first mounted mine at &lt;code&gt;/etc/olla/config.yaml&lt;/code&gt; (a reasonable guess) and Olla silently loaded its &lt;em&gt;built-in default&lt;/em&gt; instead, happily health-checking three backends I’d never configured. If your nodes don’t show up, check the startup log line &lt;code&gt;Loaded configuration config=config/config.yaml&lt;/code&gt; and mount to that path.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Point it at your Ollama nodes&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;The config is small. List each backend under &lt;code&gt;discovery.static.endpoints&lt;/code&gt;, and pick a load-balancing strategy. I give my GPU node the highest &lt;code&gt;priority&lt;/code&gt; so it’s preferred, with the two smaller nodes as fallbacks.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;~/olla/config.yaml&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
server:
  host: &amp;quot;0.0.0.0&amp;quot;
  port: 40114
proxy:
  engine: &amp;quot;olla&amp;quot;
  load_balancer: &amp;quot;least-connections&amp;quot;   # or: priority, round-robin
discovery:
  type: &amp;quot;static&amp;quot;
  static:
    endpoints:
      - url: &amp;quot;http://10.0.0.61:11434&amp;quot;
        name: &amp;quot;ollama-node1&amp;quot;
        type: &amp;quot;ollama&amp;quot;
        priority: 100
      - url: &amp;quot;http://10.0.0.62:11434&amp;quot;
        name: &amp;quot;ollama-node2&amp;quot;
        type: &amp;quot;ollama&amp;quot;
        priority: 90
      - url: &amp;quot;http://10.0.0.63:11434&amp;quot;
        name: &amp;quot;ollama-node3&amp;quot;
        type: &amp;quot;ollama&amp;quot;
        priority: 80
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;The three strategies map to three intents: &lt;strong&gt;priority&lt;/strong&gt; (“always prefer the big node”), &lt;strong&gt;round-robin&lt;/strong&gt; (“spread it evenly”), and &lt;strong&gt;least-connections&lt;/strong&gt; (“send it wherever there’s the least in-flight work”). I run least-connections because my nodes are uneven and I’d rather chase idle capacity than a fixed order.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;3&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Confirm all your nodes are healthy&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;1 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Olla’s &lt;code&gt;/internal/status/endpoints&lt;/code&gt; shows each backend’s health and how many models it found. This is the real output from my three-node cluster:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Every node up, models discovered&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
$ curl -s localhost:40114/internal/status/endpoints
ollama-node1  healthy  models=5  http://10.0.0.61:11434
ollama-node2  healthy  models=1  http://10.0.0.62:11434
ollama-node3  healthy  models=1  http://10.0.0.63:11434
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;one-catalog-and-a-receipt-for-every-request&quot;&gt;One catalog, and a receipt for every request&lt;/h2&gt;
&lt;p&gt;Two things make Olla feel like magic the first time. First, the &lt;strong&gt;unified model catalog&lt;/strong&gt;: ask Olla for its models and you get every model across every node in one list, deduplicated — no more remembering which box holds which model.&lt;/p&gt;
&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/olla-model-catalog.DeaUrPg5_Z2thCU4.webp&quot; aria-label=&quot;Enlarge screenshot: The Olla dashboard Models tab: a unified catalog listing llama3.1:8b, qwen2.5:14b, mistral-small:22b, llava:13b, nomic-embed-text, llama3.2:3b and phi3:mini, each with its parameter size, quantization, file size, and which node (ollama-node1, ollama-node2, or ollama-node3) serves it.&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/olla-model-catalog.DeaUrPg5_1dxq52.webp&quot; alt=&quot;The Olla dashboard Models tab: a unified catalog listing llama3.1:8b, qwen2.5:14b, mistral-small:22b, llava:13b, nomic-embed-text, llama3.2:3b and phi3:mini, each with its parameter size, quantization, file size, and which node (ollama-node1, ollama-node2, or ollama-node3) serves it.&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1400&quot; height=&quot;688&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;The unified model catalog — every model across all three nodes in one deduplicated list, each tagged with the endpoint that serves it.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The second is my favorite: every proxied response comes back with &lt;strong&gt;&lt;code&gt;X-Olla-*&lt;/code&gt; headers&lt;/strong&gt; that tell you exactly what happened. Here’s a real request I sent through Olla, asking &lt;code&gt;gemma3:4b&lt;/code&gt; (the small model I &lt;a href=&quot;https://peira.dev/articles/best-small-llm-cpu-homelab/&quot;&gt;settled on after a CPU bake-off&lt;/a&gt;) a trivial question, with the routing headers it returned:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;A real routed request (headers are Olla&amp;#39;s, unedited)&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
$ curl -sD - localhost:40114/olla/openai/v1/chat/completions \
    -d &amp;#39;{&amp;quot;model&amp;quot;:&amp;quot;gemma3:4b&amp;quot;,&amp;quot;messages&amp;quot;:[{&amp;quot;role&amp;quot;:&amp;quot;user&amp;quot;,&amp;quot;content&amp;quot;:&amp;quot;Reply OK&amp;quot;}],&amp;quot;stream&amp;quot;:false}&amp;#39;

HTTP/1.1 200 OK
X-Olla-Endpoint: ollama-node1
X-Olla-Model: gemma3:4b
X-Olla-Backend-Type: ollama
X-Olla-Routing-Decision: routed
X-Olla-Routing-Reason: model_found
X-Olla-Response-Time: 10674ms
...
{&amp;quot;choices&amp;quot;:[{&amp;quot;message&amp;quot;:{&amp;quot;content&amp;quot;:&amp;quot;OK&amp;quot;}}]}
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;That &lt;code&gt;X-Olla-Endpoint: ollama-node1&lt;/code&gt; is Olla telling you, per request, which backend actually served it. When you’re debugging “why was that answer slow,” a receipt naming the node and the response time is worth a great deal.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Proxy routes live under /olla/&amp;lt;provider&amp;gt;/&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The one thing that isn’t obvious: Olla proxies under a provider-prefixed path, not the bare API path. Use &lt;strong&gt;&lt;code&gt;/olla/openai/v1/chat/completions&lt;/code&gt;&lt;/strong&gt; for the OpenAI-compatible route and &lt;strong&gt;&lt;code&gt;/olla/ollama/api/chat&lt;/code&gt;&lt;/strong&gt; for the Ollama-native one. A plain &lt;code&gt;POST /v1/chat/completions&lt;/code&gt; returns &lt;code&gt;404&lt;/code&gt; — I probed my way to this, so you don’t have to.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;failover-you-can-actually-watch&quot;&gt;Failover you can actually watch&lt;/h2&gt;
&lt;p&gt;Health checks are only interesting if something acts on them. Olla’s retry logic (&lt;code&gt;retry.on_connection_failure&lt;/code&gt;, on by default) means that if the node it picked refuses the connection, it transparently tries another healthy node instead of failing the request. Pull the plug on a node and requests keep flowing; the model list shrinks to what’s left standing.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 760 300&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: Olla routes a request toward node 2, which has gone offline; the health check marks it down and Olla retries the request on healthy node 1, which answers successfully.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;380&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;A node drops — the request doesn’t&lt;/text&gt;&lt;rect x=&quot;40&quot; y=&quot;120&quot; width=&quot;140&quot; height=&quot;70&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;2&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;110&quot; y=&quot;150&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;700&quot;&gt;Olla&lt;/text&gt;&lt;text x=&quot;110&quot; y=&quot;169&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;retry on failure&lt;/text&gt;&lt;rect x=&quot;330&quot; y=&quot;55&quot; width=&quot;160&quot; height=&quot;60&quot; rx=&quot;10&quot; fill=&quot;#241512&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;410&quot; y=&quot;82&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;ollama-node2&lt;/text&gt;&lt;text x=&quot;410&quot; y=&quot;100&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;offline — health check failed&lt;/text&gt;&lt;rect x=&quot;330&quot; y=&quot;185&quot; width=&quot;160&quot; height=&quot;60&quot; rx=&quot;10&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;410&quot; y=&quot;212&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;ollama-node1&lt;/text&gt;&lt;text x=&quot;410&quot; y=&quot;230&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;healthy — retried here, 200 OK&lt;/text&gt;&lt;line x1=&quot;180&quot; y1=&quot;150&quot; x2=&quot;330&quot; y2=&quot;85&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;5 4&quot;&gt;&lt;/line&gt;&lt;text x=&quot;250&quot; y=&quot;105&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;1. refused&lt;/text&gt;&lt;line x1=&quot;180&quot; y1=&quot;160&quot; x2=&quot;330&quot; y2=&quot;215&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;2.5&quot;&gt;&lt;/line&gt;&lt;text x=&quot;250&quot; y=&quot;205&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;2. retried&lt;/text&gt;&lt;circle cx=&quot;180&quot; cy=&quot;160&quot; r=&quot;5&quot; fill=&quot;#7BB26A&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;180;330&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.9s&quot; begin=&quot;1.2s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;animate attributeName=&quot;cy&quot; values=&quot;160;215&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.9s&quot; begin=&quot;1.2s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;text x=&quot;380&quot; y=&quot;285&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;The client sees one successful response and never learns a node was down.&lt;/text&gt;&lt;/svg&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;wire-it-into-prometheus-no-extra-exporter&quot;&gt;Wire it into Prometheus (no extra exporter)&lt;/h2&gt;
&lt;p&gt;This is where Olla earns its place in a monitored homelab: it exposes &lt;strong&gt;native Prometheus metrics&lt;/strong&gt; at &lt;code&gt;/internal/metrics&lt;/code&gt;, so your existing &lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;Prometheus&lt;/a&gt; scrapes it directly and you graph it in &lt;a href=&quot;https://peira.dev/articles/what-is-grafana/&quot;&gt;Grafana&lt;/a&gt;. No sidecar, no exporter. After my test requests, the counters looked like this:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Real /internal/metrics output&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
$ curl -s localhost:40114/internal/metrics | grep &amp;#39;^olla_&amp;#39;
olla_endpoints_total 3
olla_endpoints_healthy 3
olla_requests_total 12
olla_model_requests_total{model=&amp;quot;gemma3:4b&amp;quot;} 1
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;A one-line scrape job turns those into graphs and alerts — a panel for healthy-endpoint count (alert if it drops below your node total), request rate, and per-model usage so you can see which model your household actually leans on.&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;prometheus.yml — scrape Olla&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
scrape_configs:
  - job_name: olla
    static_configs:
      - targets: [&amp;quot;10.0.0.20:40114&amp;quot;]
    metrics_path: /internal/metrics
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Lock the dashboard down to your LAN&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Olla’s read-only dashboard at &lt;code&gt;/internal/ui/&lt;/code&gt; is gated by an allow-list: a request must come from an allowed CIDR &lt;strong&gt;and&lt;/strong&gt; present an allowed &lt;code&gt;Host&lt;/code&gt; header. The defaults already permit the private ranges and &lt;code&gt;localhost&lt;/code&gt;, so it loads over your LAN without fuss — but if the host sits on an untrusted network, tighten &lt;code&gt;dashboard.access_policy.allowed_cidrs&lt;/code&gt; to just the addresses you trust.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-flourish-point-claude-code-at-your-own-cluster&quot;&gt;The flourish: point Claude Code at your own cluster&lt;/h2&gt;
&lt;p&gt;Here’s the bonus that made me grin. Because Olla translates the &lt;a href=&quot;https://github.com/thushan/olla&quot;&gt;Anthropic Messages API&lt;/a&gt; by default and gives you one stable endpoint, you can aim Claude-flavored coding tools at your &lt;em&gt;local&lt;/em&gt; models — with failover across nodes — instead of a metered cloud key. For long multi-turn sessions there’s even opt-in &lt;strong&gt;sticky-session&lt;/strong&gt; routing (&lt;code&gt;sticky_sessions&lt;/code&gt;) that keeps a conversation pinned to the same backend so its KV-cache stays warm. One endpoint, three nodes, and your coding assistant never notices which one answered.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;give-local-ai-a-safe-view&quot;&gt;Give local AI a safe view&lt;/h2&gt;
&lt;p&gt;You now have one address for “my local AI,” with failover and graphs behind it. Next in this run of flagship builds, I give my &lt;em&gt;homelab itself&lt;/em&gt; an API an AI can safely read: a &lt;a href=&quot;https://peira.dev/articles/read-only-homelab-mcp-server/&quot;&gt;read-only MCP server&lt;/a&gt; that lets Claude query my cluster’s health, metrics, and boards — without ever being able to change a thing.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/ollama-lxc-cluster/&quot;&gt;Run an Ollama Cluster in Proxmox LXC&lt;/a&gt; — build the multi-node backend Olla sits in front of.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/best-small-llm-cpu-homelab/&quot;&gt;The Best Small LLM for a CPU-Only Homelab Node&lt;/a&gt; — which model to actually run on the nodes behind Olla.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/read-only-homelab-mcp-server/&quot;&gt;Build a Read-Only Homelab MCP Server&lt;/a&gt; — the next flagship: let an LLM safely query your infrastructure.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;Give Your Local AI Private Web Search With SearXNG&lt;/a&gt; — another piece of the local-AI stack.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/open-webui-advanced/&quot;&gt;Open WebUI: Advanced Setup&lt;/a&gt; — point a chat UI at your unified Olla endpoint.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;What Is Prometheus?&lt;/a&gt; — the metrics store that scrapes Olla.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-grafana/&quot;&gt;What Is Grafana?&lt;/a&gt; — where the endpoint-health and per-model panels live.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-create-lxc/&quot;&gt;Create Your First Proxmox LXC Container&lt;/a&gt; — a home for the Olla container.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>ai</category><category>ollama</category><category>monitoring</category></item><item><title>Paperless-ngx: OCR Every Document You Own, Searchable</title><link>https://peira.dev/articles/paperless-ngx-document-archive/</link><guid isPermaLink="true">https://peira.dev/articles/paperless-ngx-document-archive/</guid><description>Deploy Paperless-ngx to OCR every document on ingest, so you search the text of your scans and PDFs — not the filenames. Runs on a NAS or small server.</description><pubDate>Fri, 04 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Somewhere in my house is the receipt for the dishwasher. I know I have it. It’s in a drawer, or a folder on some drive named &lt;code&gt;scans_final_FINAL&lt;/code&gt;, or an email attachment from 2019. When the dishwasher broke, I spent longer looking for the receipt than the repair took. The problem was never that I didn’t &lt;em&gt;have&lt;/em&gt; my documents — it’s that I couldn’t &lt;em&gt;find&lt;/em&gt; the one I needed, because they were organized by “wherever I dropped them” and searchable by nothing.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://docs.paperless-ngx.com/&quot;&gt;Paperless-ngx&lt;/a&gt; is the cure, and it’s one of the most quietly life-improving things I run at home. You drop a document in, and it reads the text — even out of a photo or a scan with no text layer — and makes every word searchable. This is the third stop in the &lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;Self-Host the Apps You Actually Use&lt;/a&gt; series: after teaching my &lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;local AI to search the web&lt;/a&gt; and my &lt;a href=&quot;https://peira.dev/articles/karakeep-local-ai-bookmarks/&quot;&gt;bookmarks to tag themselves&lt;/a&gt;, this is the one my whole household actually uses.&lt;/p&gt;
&lt;p&gt;Here’s the trick that makes it work — OCR on ingest:&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 300&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: a scanned image with no text layer is dropped in the consume folder, Paperless runs OCR to extract the text, indexes it, and a later search for a word inside the document finds it.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;360&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;A scan of pixels becomes searchable text&lt;/text&gt;&lt;rect x=&quot;30&quot; y=&quot;110&quot; width=&quot;120&quot; height=&quot;90&quot; rx=&quot;8&quot; fill=&quot;#253727&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;90&quot; y=&quot;98&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;consume folder&lt;/text&gt;&lt;path d=&quot;M45 135 h90 M45 148 h70 M45 161 h84 M45 174 h60&quot; stroke=&quot;#94A684&quot; stroke-width=&quot;3&quot; stroke-linecap=&quot;round&quot;&gt;&lt;/path&gt;&lt;text x=&quot;90&quot; y=&quot;196&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;no text layer&lt;/text&gt;&lt;rect x=&quot;220&quot; y=&quot;115&quot; width=&quot;150&quot; height=&quot;80&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;295&quot; y=&quot;148&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;OCR&lt;/text&gt;&lt;text x=&quot;295&quot; y=&quot;168&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;reads the pixels&lt;/text&gt;&lt;rect x=&quot;440&quot; y=&quot;115&quot; width=&quot;150&quot; height=&quot;80&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;515&quot; y=&quot;148&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;Full-text index&lt;/text&gt;&lt;text x=&quot;515&quot; y=&quot;168&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;every word stored&lt;/text&gt;&lt;rect x=&quot;620&quot; y=&quot;125&quot; width=&quot;80&quot; height=&quot;60&quot; rx=&quot;9&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot; opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.5s&quot; begin=&quot;2s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/rect&gt;&lt;text x=&quot;660&quot; y=&quot;150&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;“invoice&lt;/text&gt;&lt;text x=&quot;660&quot; y=&quot;164&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;#7D5F26”&lt;/text&gt;&lt;text x=&quot;660&quot; y=&quot;178&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;found!&lt;/text&gt;&lt;line x1=&quot;150&quot; y1=&quot;155&quot; x2=&quot;220&quot; y2=&quot;155&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;370&quot; y1=&quot;155&quot; x2=&quot;440&quot; y2=&quot;155&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;590&quot; y1=&quot;155&quot; x2=&quot;620&quot; y2=&quot;155&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;150&quot; cy=&quot;155&quot; r=&quot;4.5&quot; fill=&quot;#4FAE96&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;150;220;440;620&quot; keyTimes=&quot;0;0.4;0.75;1&quot; dur=&quot;1.9s&quot; begin=&quot;0s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;1;1;0&quot; keyTimes=&quot;0;0.9;1&quot; dur=&quot;1.9s&quot; begin=&quot;0s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;text x=&quot;360&quot; y=&quot;280&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;The document went in as an image; it comes out searchable by the words printed on it.&lt;/text&gt;&lt;/svg&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The addresses below are examples. Replace &lt;strong&gt;&lt;code&gt;10.0.0.50&lt;/code&gt;&lt;/strong&gt; with your Paperless host’s real IP, and add any hostname you’ll actually use (a LAN name, a &lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;Tailscale&lt;/a&gt; address) to the allowed-hosts list. Choose your own admin username in place of &lt;strong&gt;&lt;code&gt;youradmin&lt;/code&gt;&lt;/strong&gt; and keep its password in your password manager, never in a note. If a value looks specific to one machine, it’s a placeholder to change — not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-paperless-ngx-is-and-what-ocr-buys-you&quot;&gt;What Paperless-ngx is (and what OCR buys you)&lt;/h2&gt;
&lt;p&gt;Paperless-ngx is a self-hosted &lt;strong&gt;document management system&lt;/strong&gt;. The workflow is beautifully simple: you drop a file into a watched “consume” folder, and Paperless ingests it — extracting the text, guessing a title and date, and filing it with tags and document types you can define. From then on it’s searchable, taggable, and viewable from any browser.&lt;/p&gt;
&lt;p&gt;The magic ingredient is &lt;strong&gt;OCR&lt;/strong&gt; — optical character recognition. A scanned receipt or a photo of a letter is, to a computer, just a grid of colored dots; there’s no text in it to search. OCR (Paperless uses the excellent &lt;a href=&quot;https://tesseract-ocr.github.io/&quot;&gt;Tesseract&lt;/a&gt; engine under the hood) looks at those dots, recognizes the letters, and produces real, searchable text layered onto the document. That’s the difference between “I have 4,000 scans” and “I can find the one that mentions the word &lt;em&gt;dishwasher&lt;/em&gt;.”&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;deploy-paperless-ngx&quot;&gt;Deploy Paperless-ngx&lt;/h2&gt;
&lt;p&gt;Paperless runs as a small stack of containers with &lt;a href=&quot;https://peira.dev/articles/first-docker-compose-stack/&quot;&gt;Docker Compose&lt;/a&gt;, and it’s happiest living on a &lt;a href=&quot;https://peira.dev/articles/use-a-nas-with-your-homelab/&quot;&gt;NAS&lt;/a&gt; or a small always-on server where your files already are. The project ships an &lt;strong&gt;interactive install script&lt;/strong&gt; that generates a compose setup by asking you a few questions — it’s the recommended starting point per the &lt;a href=&quot;https://docs.paperless-ngx.com/setup/&quot;&gt;official setup docs&lt;/a&gt;.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Run the official installer&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;On a host with Docker and the Compose plugin, run the bootstrapper. It’ll ask about your database, broker, folders, and ports, then write out a ready-to-run compose project.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Paperless-ngx interactive installer&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
bash -c &amp;quot;$(curl -L https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/install-paperless-ngx.sh)&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Choose SQLite + a Redis-compatible broker&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Two choices matter for a home setup. For the &lt;strong&gt;database&lt;/strong&gt;, the project supports both PostgreSQL and SQLite; for a single-user household archive I pick &lt;strong&gt;SQLite&lt;/strong&gt; — it’s one fewer container and backs up as a single file. For the &lt;strong&gt;broker&lt;/strong&gt; (Paperless uses a task queue that needs a Redis-compatible service), the current official compose uses &lt;a href=&quot;https://valkey.io/&quot;&gt;Valkey&lt;/a&gt; — the open-source Redis fork — and that’s what I run.&lt;/p&gt;&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;When to reach for PostgreSQL instead&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;SQLite is great for one user. If you’ll have several people ingesting documents at once, or you’re importing tens of thousands of files, &lt;a href=&quot;https://docs.paperless-ngx.com/setup/#sqlite_to_psql&quot;&gt;PostgreSQL&lt;/a&gt; is the more scalable database. You can start on SQLite and migrate later.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;3&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Pin the image — and mind the missing &amp;#39;v&amp;#39;&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Leaving the image on &lt;code&gt;:latest&lt;/code&gt; means an unattended pull could change your version out from under you. Pin it to a specific release in your compose file so upgrades are a deliberate act (read the release notes, then bump).&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;docker-compose.yml — pin the webserver image&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
image: ghcr.io/paperless-ngx/paperless-ngx:3.0.5
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;The GHCR tag drops the release&amp;#39;s &amp;#39;v&amp;#39; prefix&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;This one cost me a confused ten minutes. GitHub releases are named like &lt;code&gt;v3.0.5&lt;/code&gt;, but the container tag on GHCR is &lt;code&gt;3.0.5&lt;/code&gt; — &lt;strong&gt;no &lt;code&gt;v&lt;/code&gt;&lt;/strong&gt;. Use &lt;code&gt;:v3.0.5&lt;/code&gt; and you get &lt;code&gt;manifest unknown&lt;/code&gt;. Check the &lt;a href=&quot;https://github.com/paperless-ngx/paperless-ngx/releases&quot;&gt;releases page&lt;/a&gt; for the current version and drop the &lt;code&gt;v&lt;/code&gt; when you write the tag.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;4&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Fix the host and CSRF settings before your first login&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Paperless is a Django app, and Django is strict about which hostnames and origins it will answer to. If you skip this you’ll hit a login that fails with a host or CSRF error. Set both, listing &lt;strong&gt;every&lt;/strong&gt; address you’ll reach it by:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;docker-compose.env — allowed hosts and trusted origins&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
PAPERLESS_ALLOWED_HOSTS=localhost,127.0.0.1,10.0.0.50,paperless.homelab.lan
PAPERLESS_CSRF_TRUSTED_ORIGINS=http://localhost:8020,http://127.0.0.1:8020,http://10.0.0.50:8020
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Django treats localhost and 127.0.0.1 as different hosts&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;They look like the same machine to you; to Django they’re two separate hostnames. List &lt;strong&gt;both&lt;/strong&gt;, or a request that arrives as one while only the other is allowed gets a &lt;code&gt;400 Bad Request&lt;/code&gt; — which is easy to misread as “ingestion is broken” when your documents are actually importing fine. The &lt;a href=&quot;https://docs.paperless-ngx.com/configuration/&quot;&gt;configuration docs&lt;/a&gt; also offer a shortcut: setting &lt;code&gt;PAPERLESS_URL&lt;/code&gt; can populate the allowed-hosts and trusted-origins together.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;5&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Start it and create your admin user&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Bring up the stack&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
docker compose pull
docker compose up -d
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Create the first superuser (the installer usually prompts for this, or you can set &lt;code&gt;PAPERLESS_ADMIN_USER&lt;/code&gt; / &lt;code&gt;PAPERLESS_ADMIN_PASSWORD&lt;/code&gt; in the env before first boot). Then open the web UI on your chosen port and log in.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-acceptance-test-that-actually-proves-it-works&quot;&gt;The acceptance test that actually proves it works&lt;/h2&gt;
&lt;p&gt;It’s tempting to declare victory the moment the web UI loads. Don’t. The UI loading only proves the &lt;em&gt;web server&lt;/em&gt; runs — it says nothing about whether OCR and search actually function end to end. Here’s the test I trust, and it’s deliberately mean: &lt;strong&gt;feed it an image-only document with no text layer at all&lt;/strong&gt;, so OCR is the &lt;em&gt;only&lt;/em&gt; way any text could exist to find.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 260&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram of an honest acceptance test: an image-only PDF with no embedded text is consumed, forcing OCR; then a search for a number printed only in the image succeeds, proving ingest, OCR, and search all work.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;360&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Prove the whole chain, not just the front page&lt;/text&gt;&lt;rect x=&quot;40&quot; y=&quot;90&quot; width=&quot;160&quot; height=&quot;70&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;122&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;1. Image-only PDF&lt;/text&gt;&lt;text x=&quot;120&quot; y=&quot;142&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;no text layer&lt;/text&gt;&lt;rect x=&quot;240&quot; y=&quot;90&quot; width=&quot;160&quot; height=&quot;70&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;320&quot; y=&quot;122&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;2. Forced OCR&lt;/text&gt;&lt;text x=&quot;320&quot; y=&quot;142&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;tesseract must run&lt;/text&gt;&lt;rect x=&quot;440&quot; y=&quot;90&quot; width=&quot;160&quot; height=&quot;70&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#E0A83F&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;520&quot; y=&quot;122&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;3. Search a word&lt;/text&gt;&lt;text x=&quot;520&quot; y=&quot;142&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;printed in the image&lt;/text&gt;&lt;line x1=&quot;200&quot; y1=&quot;125&quot; x2=&quot;240&quot; y2=&quot;125&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;400&quot; y1=&quot;125&quot; x2=&quot;440&quot; y2=&quot;125&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;620&quot; y=&quot;95&quot; width=&quot;80&quot; height=&quot;60&quot; rx=&quot;10&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot; opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.5s&quot; begin=&quot;1.4s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/rect&gt;&lt;text x=&quot;660&quot; y=&quot;122&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;700&quot;&gt;PASS&lt;/text&gt;&lt;text x=&quot;660&quot; y=&quot;140&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;match found&lt;/text&gt;&lt;line x1=&quot;600&quot; y1=&quot;125&quot; x2=&quot;620&quot; y2=&quot;125&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;2&quot;&gt;&lt;/line&gt;&lt;text x=&quot;360&quot; y=&quot;215&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;If a word visible only as pixels becomes searchable, ingest + OCR + search are all working.&lt;/text&gt;&lt;/svg&gt;
&lt;p&gt;I generated a one-page PDF containing an image of an invoice number and &lt;em&gt;no&lt;/em&gt; embedded font, dropped it in the consume folder, waited for it to ingest, and then searched for that number. It came back. That single search proves ingest fired, Tesseract OCR’d the image, and the full-text index and search all work — none of which the loading web page could tell you.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;protect-the-archive-from-day-one&quot;&gt;Protect the archive from day one&lt;/h2&gt;
&lt;p&gt;There’s a special kind of pain in losing the archive you finally organized. Documents are precious and irreplaceable, so the moment Paperless is live, make sure its &lt;strong&gt;&lt;code&gt;data&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;media&lt;/code&gt;&lt;/strong&gt; folders are inside your &lt;a href=&quot;https://peira.dev/articles/proxmox-backup-server/&quot;&gt;backup scope&lt;/a&gt; — ideally before you import anything you care about. I deliberately put Paperless’s storage inside an existing &lt;a href=&quot;https://peira.dev/articles/nas-app-data-backup-restic/&quot;&gt;nightly, append-only backup set&lt;/a&gt; so the archive was covered the hour it was born. A &lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;black-box monitoring probe&lt;/a&gt; on the web UI rounds it out, so a stalled service pages you instead of silently refusing new documents. The &lt;a href=&quot;https://peira.dev/playbooks/paperless-ngx-nas/&quot;&gt;companion playbook&lt;/a&gt; has the full deploy.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;let-the-homelab-watch-for-changes&quot;&gt;Let the homelab watch for changes&lt;/h2&gt;
&lt;p&gt;You can now find any document by a word printed inside it — no more drawer-diving. Next in the series, we stop &lt;em&gt;searching&lt;/em&gt; for updates entirely and let the homelab watch pages for us: &lt;a href=&quot;https://peira.dev/articles/changedetection-watch-web-pages/&quot;&gt;changedetection.io&lt;/a&gt; polls any web page and pings your phone only when something actually changes.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/karakeep-local-ai-bookmarks/&quot;&gt;Self-Hosted Bookmarks That Tag Themselves With Local AI&lt;/a&gt; — the previous post: make your saved links findable, too.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/changedetection-watch-web-pages/&quot;&gt;Watch Any Web Page for Changes With changedetection.io&lt;/a&gt; — the next post: let a watcher poll pages so you don’t have to.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/use-a-nas-with-your-homelab/&quot;&gt;Use a NAS With Your Homelab&lt;/a&gt; — the natural home for a document archive and its backups.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/first-docker-compose-stack/&quot;&gt;Your First Docker Compose Stack&lt;/a&gt; — the deployment pattern Paperless uses.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-backup-server/&quot;&gt;Deploy a Proxmox Backup Server&lt;/a&gt; — get the backup scope in place before you import documents you can’t lose.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/nas-app-data-backup-restic/&quot;&gt;What backs up your NAS apps? Append-only restic&lt;/a&gt; — push Paperless’s data off the NAS so a failure can’t take the archive with it.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;What Is Prometheus?&lt;/a&gt; — the monitoring that catches a silently-stalled service.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/immich-proxmox-photos/&quot;&gt;Self-Host Your Photos With Immich&lt;/a&gt; — the same “own your important files” instinct, applied to photos.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>self-hosted</category><category>storage</category></item><item><title>PBS 4.2 Backups to Self-Hosted MinIO Object Storage</title><link>https://peira.dev/articles/pbs-42-minio-s3-backups/</link><guid isPermaLink="true">https://peira.dev/articles/pbs-42-minio-s3-backups/</guid><description>Proxmox Backup Server 4.2 adds S3 datastores. Point it at self-hosted MinIO on your NAS for object-storage backups you own — with the HTTPS and cache gotchas.</description><pubDate>Fri, 04 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;For years, “send my backups to object storage” meant one of two things: a monthly bill to a cloud provider, or standing up a fiddly S3 gateway in front of something that wasn’t S3. I wanted the shape of object storage — buckets, immutability, scale — but on &lt;strong&gt;my&lt;/strong&gt; hardware, in &lt;strong&gt;my&lt;/strong&gt; house.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.proxmox.com/en/about/company-details/press-releases/proxmox-backup-server-4-2&quot;&gt;Proxmox Backup Server 4.2&lt;/a&gt; finally makes that clean. Released in April 2026, it adds &lt;strong&gt;S3-compatible object storage&lt;/strong&gt; as a first-class datastore backend — no longer a tech preview. Pair it with self-hosted &lt;a href=&quot;https://min.io/&quot;&gt;MinIO&lt;/a&gt; and you get PBS backups landing in a bucket you own. This flagship builds exactly that, and I tested the MinIO side end-to-end: a real bucket, a real object round-trip. Two gotchas will trip you if nobody warns you — HTTPS and the local cache — so I’ll make sure they don’t.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 760 360&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: Proxmox Backup Server 4.2 writes a backup through a local cache directory to an S3 datastore backend, which stores the data in a MinIO bucket running on a NAS.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;defs&gt;&lt;linearGradient id=&quot;pbsPanel&quot; x1=&quot;0&quot; y1=&quot;0&quot; x2=&quot;0&quot; y2=&quot;1&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#223224&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#1C2C1F&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;/defs&gt;&lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;760&quot; height=&quot;360&quot; fill=&quot;url(#pbsPanel)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;32&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;A backup lands in a bucket you own — over HTTPS, cached locally&lt;/text&gt;&lt;rect x=&quot;30&quot; y=&quot;140&quot; width=&quot;140&quot; height=&quot;80&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;100&quot; y=&quot;172&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;PBS 4.2&lt;/text&gt;&lt;text x=&quot;100&quot; y=&quot;191&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;backup job&lt;/text&gt;&lt;rect x=&quot;230&quot; y=&quot;140&quot; width=&quot;130&quot; height=&quot;80&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#E0A83F&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;295&quot; y=&quot;168&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;local cache&lt;/text&gt;&lt;text x=&quot;295&quot; y=&quot;187&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;64–128 GiB&lt;/text&gt;&lt;text x=&quot;295&quot; y=&quot;203&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;required&lt;/text&gt;&lt;rect x=&quot;420&quot; y=&quot;140&quot; width=&quot;130&quot; height=&quot;80&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;485&quot; y=&quot;168&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;S3 datastore&lt;/text&gt;&lt;text x=&quot;485&quot; y=&quot;187&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;HTTPS only&lt;/text&gt;&lt;rect x=&quot;600&quot; y=&quot;120&quot; width=&quot;140&quot; height=&quot;120&quot; rx=&quot;10&quot; fill=&quot;#253727&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;670&quot; y=&quot;150&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;MinIO&lt;/text&gt;&lt;text x=&quot;670&quot; y=&quot;168&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;on your NAS&lt;/text&gt;&lt;rect x=&quot;618&quot; y=&quot;185&quot; width=&quot;104&quot; height=&quot;34&quot; rx=&quot;6&quot; fill=&quot;#09100B&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;670&quot; y=&quot;206&quot; text-anchor=&quot;middle&quot; fill=&quot;#4FAE96&quot; font-size=&quot;10&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;pbs-backups&lt;/text&gt;&lt;line x1=&quot;170&quot; y1=&quot;180&quot; x2=&quot;230&quot; y2=&quot;180&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;360&quot; y1=&quot;180&quot; x2=&quot;420&quot; y2=&quot;180&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;550&quot; y1=&quot;180&quot; x2=&quot;600&quot; y2=&quot;180&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;170&quot; cy=&quot;180&quot; r=&quot;5&quot; fill=&quot;#4FAE96&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;170;230;420;600&quot; keyTimes=&quot;0;0.33;0.66;1&quot; dur=&quot;2s&quot; begin=&quot;0s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;1;1;0&quot; keyTimes=&quot;0;0.9;1&quot; dur=&quot;2s&quot; begin=&quot;0s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;g opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.5s&quot; begin=&quot;2s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;path d=&quot;M662 208 l5 5 l10 -12&quot; fill=&quot;none&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;2.5&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;text x=&quot;380&quot; y=&quot;300&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;The object store holds the data; the local cache keeps restores responsive.&lt;/text&gt;&lt;/svg&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Every name and credential below is an example. Replace &lt;strong&gt;&lt;code&gt;10.0.0.110&lt;/code&gt;&lt;/strong&gt; with your MinIO/NAS address, the bucket name &lt;strong&gt;&lt;code&gt;pbs-backups&lt;/code&gt;&lt;/strong&gt; with yours, and — most importantly — &lt;strong&gt;never reuse the demo credentials&lt;/strong&gt;. Generate your own access/secret keys and keep them in your secret store. If a value looks specific to one machine, it’s a placeholder to change, not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;stand-up-minio-the-object-store&quot;&gt;Stand up MinIO (the object store)&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://min.io/&quot;&gt;MinIO&lt;/a&gt; is a self-hosted, S3-compatible object store. You can run it as a container anywhere Docker runs, or — nicely for a homelab — install it straight onto a NAS.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Run MinIO and create a bucket&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;The container form is a one-liner. Set your &lt;strong&gt;own&lt;/strong&gt; root credentials; the console lands on &lt;code&gt;:9001&lt;/code&gt;, the S3 API on &lt;code&gt;:9000&lt;/code&gt;.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;MinIO via Docker&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
docker run -d --name minio -p 9000:9000 -p 9001:9001 \
  -e MINIO_ROOT_USER=youradmin \
  -e MINIO_ROOT_PASSWORD=CHANGE_ME_STRONG \
  minio/minio server /data --console-address &amp;quot;:9001&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Then create the bucket PBS will use. I verified this exact round-trip against my own MinIO — here’s the real output, a bucket made and an object stored:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Real S3 round-trip (mc client)&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
$ mc mb local/pbs-backups
Bucket created successfully &amp;#39;local/pbs-backups&amp;#39;.

$ mc cp probe.txt local/pbs-backups/probe.txt
$ mc ls local/pbs-backups
[2026-09-04 19:47:26 UTC]  15B STANDARD probe.txt
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;The same bucket and object, seen from the MinIO console’s object browser — a private bucket on hardware you own, holding exactly what you put there:&lt;/p&gt;&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://homelab.lan:9901/browser/pbs-backups&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/minio-console-object.CaSm1gzi_zLYwk.webp&quot; aria-label=&quot;Enlarge screenshot: The MinIO console object browser showing the pbs-backups bucket with a single probe.txt object, and the sidebar of admin sections like Buckets, Policies, and Access Keys&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/minio-console-object.CaSm1gzi_1dOCLs.webp&quot; alt=&quot;The MinIO console object browser showing the pbs-backups bucket with a single probe.txt object, and the sidebar of admin sections like Buckets, Policies, and Access Keys&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;760&quot; height=&quot;475&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;MinIO&amp;#39;s console object browser: the pbs-backups bucket, marked PRIVATE, with the test object inside — this is the store PBS will write to.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Give PBS a scoped key, not your root login&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The steps below use the root user for brevity, but never hand your object store’s master keys to a backup job. In the MinIO console (&lt;strong&gt;Identity → Users&lt;/strong&gt;), create a dedicated user for PBS and attach a policy that allows only the four actions PBS needs, on only the one bucket:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Least-privilege MinIO policy for the PBS bucket&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
{
  &amp;quot;Version&amp;quot;: &amp;quot;2012-10-17&amp;quot;,
  &amp;quot;Statement&amp;quot;: [
    {
      &amp;quot;Effect&amp;quot;: &amp;quot;Allow&amp;quot;,
      &amp;quot;Action&amp;quot;: [&amp;quot;s3:GetObject&amp;quot;, &amp;quot;s3:PutObject&amp;quot;, &amp;quot;s3:ListBucket&amp;quot;, &amp;quot;s3:DeleteObject&amp;quot;],
      &amp;quot;Resource&amp;quot;: [&amp;quot;arn:aws:s3:::pbs-backups&amp;quot;, &amp;quot;arn:aws:s3:::pbs-backups/*&amp;quot;]
    }
  ]
}
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Use that user’s access/secret key in the PBS endpoint below instead of the root pair. If it ever leaks, the blast radius is one bucket — not your entire object store.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;On a NAS? ASUSTOR ships MinIO in App Central&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;If your NAS is an &lt;a href=&quot;https://peira.dev/articles/what-is-a-nas/&quot;&gt;ASUSTOR&lt;/a&gt;, there’s a &lt;strong&gt;MinIO CE&lt;/strong&gt; package in App Central (deployed as a Docker container). Two things to know: it’s labeled &lt;strong&gt;for testing and development only&lt;/strong&gt;, and it ships a &lt;strong&gt;well-known default login&lt;/strong&gt; — change it the moment it’s up. It’s a lovely way to try self-hosted S3 on hardware you already run, as a homelab experiment rather than a production target.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;point-pbs-42-at-it&quot;&gt;Point PBS 4.2 at it&lt;/h2&gt;
&lt;p&gt;On the PBS side you first register an &lt;strong&gt;S3 endpoint&lt;/strong&gt;, then create a &lt;strong&gt;datastore&lt;/strong&gt; that uses it. These are the real &lt;a href=&quot;https://pbs.proxmox.com/docs/storage.html&quot;&gt;PBS 4.2 CLI&lt;/a&gt; shapes.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Create the S3 endpoint&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Register the S3 endpoint&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
proxmox-backup-manager s3 endpoint create myminio \
  --access-key &amp;#39;youradmin&amp;#39; \
  --secret-key &amp;#39;CHANGE_ME_STRONG&amp;#39; \
  --endpoint &amp;#39;https://10.0.0.110:9000&amp;#39; \
  --region us-east-1 \
  --path-style true
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;MinIO uses &lt;strong&gt;path-style&lt;/strong&gt; bucket addressing (&lt;code&gt;endpoint/bucket&lt;/code&gt;) rather than the virtual-host style AWS defaults to, so set that flag.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Gotcha #1: PBS refuses plain-text S3&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Proxmox Backup Server does &lt;strong&gt;not&lt;/strong&gt; support unencrypted S3 — all traffic is HTTPS. Plain-HTTP MinIO (fine for a quick &lt;code&gt;mc&lt;/code&gt; test like mine above) will be rejected. Give MinIO a TLS certificate; if it’s self-signed, pass its &lt;strong&gt;fingerprint&lt;/strong&gt; to the endpoint with &lt;code&gt;--fingerprint&lt;/code&gt; so PBS can validate it. This is the single most common reason a first attempt fails.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Create the S3-backed datastore&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Create the datastore (with its required local cache)&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
proxmox-backup-manager datastore create s3store /var/cache/pbs-s3 \
  --backend type=s3,client=myminio,bucket=pbs-backups
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;That &lt;code&gt;/var/cache/pbs-s3&lt;/code&gt; is the mandatory &lt;strong&gt;local cache directory&lt;/strong&gt;.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Gotcha #2: you still need local disk&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;An S3 datastore isn’t “no local storage.” PBS keeps a persistent local cache (the docs suggest &lt;strong&gt;64–128 GiB&lt;/strong&gt;) alongside the object backend, and the bucket must grant &lt;strong&gt;get, put, list, and delete&lt;/strong&gt;. One S3 datastore also can’t be shared between two PBS instances at once. Plan the cache disk before you start.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;confirm-it-actually-works&quot;&gt;Confirm it actually works&lt;/h2&gt;
&lt;p&gt;Creating the datastore doesn’t prove the round-trip — point a backup at it and watch the bucket fill:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Back up to the S3 datastore, then check the bucket&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
# The new datastore should appear in the list
proxmox-backup-manager datastore list

# Run a backup targeting s3store, then confirm objects landed
mc ls --recursive local/pbs-backups | head
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;You should see PBS’s deduplicated chunk objects — a &lt;code&gt;.chunks/&lt;/code&gt; prefix plus the snapshot index — appear in the bucket. If the datastore lists fine but the bucket stays empty after a backup, it’s almost always the HTTPS/fingerprint gotcha above; check &lt;code&gt;journalctl -u proxmox-backup&lt;/code&gt; for a TLS or endpoint error.&lt;/p&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Going further: immutable, ransomware-resistant backups&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The real payoff of object storage is &lt;strong&gt;immutability&lt;/strong&gt; — the promise this post opened with. Create the bucket with &lt;strong&gt;object locking&lt;/strong&gt; enabled and MinIO can enforce a retention window during which nobody — not an admin, not ransomware holding your keys — can delete or overwrite an object. Paired with PBS’s own verification jobs, that turns your offsite copy into a genuine write-once safety net a plain file share can never be.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;from-object-storage-to-live-migration&quot;&gt;From object storage to live migration&lt;/h2&gt;
&lt;p&gt;Your backups now live in an object store you own, with PBS’s deduplication on top. To close out this flagship run we head back into the hypervisor for a problem that bites every growing homelab: &lt;a href=&quot;https://peira.dev/articles/proxmox-92-custom-cpu-models/&quot;&gt;custom CPU models in Proxmox VE 9.2&lt;/a&gt; so a VM can live-migrate between nodes with &lt;em&gt;different&lt;/em&gt; processors.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-92-sdn-fabric-wireguard/&quot;&gt;Proxmox VE 9.2 SDN Fabrics&lt;/a&gt; — the previous flagship.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-92-custom-cpu-models/&quot;&gt;Proxmox VE 9.2 Custom CPU Models for Live Migration&lt;/a&gt; — the next flagship: migrate across unlike CPUs.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-backup-server/&quot;&gt;Deploy a Proxmox Backup Server&lt;/a&gt; — the PBS foundation this builds on.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-restore-rto-measured/&quot;&gt;How Fast Can You Actually Restore a Proxmox Backup?&lt;/a&gt; — measuring restores, now from object storage.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/use-a-nas-with-your-homelab/&quot;&gt;Use a NAS With Your Homelab&lt;/a&gt; — where a self-hosted MinIO naturally lives.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/smart-disk-health-monitoring/&quot;&gt;SMART Disk-Health Trending for Your Whole Fleet&lt;/a&gt; — watch the disks under your backup cache.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-storage-guide/&quot;&gt;Proxmox Storage Guide: LVM, ZFS, NFS, and Ceph&lt;/a&gt; — how object storage fits the wider picture.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;em&gt;Backups are only as good as your last successful restore — test yours.&lt;/em&gt;&lt;/p&gt;</content:encoded><category>proxmox</category><category>storage</category><category>infrastructure</category></item><item><title>Proxmox VE 9.2 Custom CPU Models for Live Migration</title><link>https://peira.dev/articles/proxmox-92-custom-cpu-models/</link><guid isPermaLink="true">https://peira.dev/articles/proxmox-92-custom-cpu-models/</guid><description>Use Proxmox VE 9.2&apos;s custom CPU models and cross-node flag selector to build a common CPU your VMs can live-migrate across, even between different processors.</description><pubDate>Fri, 04 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Here’s a failure that feels like a betrayal the first time it happens. You’ve got a healthy cluster, live migration works beautifully, and you’ve set your VMs to CPU type &lt;code&gt;host&lt;/code&gt; because — why wouldn’t you? — you want full performance. Then you add one new node with a &lt;em&gt;different&lt;/em&gt; processor, migrate a VM onto it, and the VM &lt;strong&gt;dies mid-flight&lt;/strong&gt;. Not a warning. The QEMU process just stops, because the guest was promised CPU features the new node doesn’t have.&lt;/p&gt;
&lt;p&gt;I run four nodes that happen to be identical today (all AMD Ryzen 5 PRO 2400G), so mine migrate fine — but “identical forever” is not a plan, it’s a countdown. The day you add a newer Ryzen, an Intel box, or a bargain mini-PC, &lt;code&gt;host&lt;/code&gt; turns into a trap. Proxmox VE 9.2 gives this a proper fix: a GUI to build &lt;strong&gt;custom CPU models&lt;/strong&gt;, and — the genuinely new bit — a flag selector that shows you what every node in the cluster supports &lt;em&gt;at once&lt;/em&gt;, so you can pick a safe common CPU on purpose instead of by trial and error.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 760 360&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: a VM set to CPU type host migrates to a node with a different CPU and QEMU stops because a flag is missing; a VM set to a common x86-64-v3 model migrates successfully to the same node.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;defs&gt;&lt;linearGradient id=&quot;cpuPanel&quot; x1=&quot;0&quot; y1=&quot;0&quot; x2=&quot;0&quot; y2=&quot;1&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#223224&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#1C2C1F&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;/defs&gt;&lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;760&quot; height=&quot;360&quot; fill=&quot;url(#cpuPanel)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Same migration, two CPU types — one survives the different node&lt;/text&gt;&lt;rect x=&quot;30&quot; y=&quot;60&quot; width=&quot;150&quot; height=&quot;52&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;105&quot; y=&quot;82&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;VM · cpu: host&lt;/text&gt;&lt;text x=&quot;105&quot; y=&quot;99&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;promised every flag&lt;/text&gt;&lt;line x1=&quot;180&quot; y1=&quot;86&quot; x2=&quot;470&quot; y2=&quot;86&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;6 4&quot;&gt;&lt;/line&gt;&lt;text x=&quot;325&quot; y=&quot;76&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;migrate to a different CPU&lt;/text&gt;&lt;rect x=&quot;470&quot; y=&quot;58&quot; width=&quot;160&quot; height=&quot;56&quot; rx=&quot;9&quot; fill=&quot;#241512&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;550&quot; y=&quot;80&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;700&quot;&gt;QEMU stops&lt;/text&gt;&lt;text x=&quot;550&quot; y=&quot;98&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;missing flag on target&lt;/text&gt;&lt;circle cx=&quot;182&quot; cy=&quot;86&quot; r=&quot;4.5&quot; fill=&quot;#C8564A&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;182;450&quot; keyTimes=&quot;0;1&quot; dur=&quot;1.3s&quot; begin=&quot;0.3s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;1;1;0&quot; keyTimes=&quot;0;0.8;1&quot; dur=&quot;1.3s&quot; begin=&quot;0.3s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;text x=&quot;380&quot; y=&quot;160&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Pick the newest level EVERY node supports:&lt;/text&gt;&lt;rect x=&quot;180&quot; y=&quot;175&quot; width=&quot;90&quot; height=&quot;40&quot; rx=&quot;7&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;225&quot; y=&quot;200&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;x86-64-v1&lt;/text&gt;&lt;rect x=&quot;300&quot; y=&quot;175&quot; width=&quot;90&quot; height=&quot;40&quot; rx=&quot;7&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;345&quot; y=&quot;200&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;x86-64-v2&lt;/text&gt;&lt;rect x=&quot;420&quot; y=&quot;175&quot; width=&quot;90&quot; height=&quot;40&quot; rx=&quot;7&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;2&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;465&quot; y=&quot;200&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;12&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;x86-64-v3&lt;/text&gt;&lt;rect x=&quot;540&quot; y=&quot;175&quot; width=&quot;90&quot; height=&quot;40&quot; rx=&quot;7&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;585&quot; y=&quot;200&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;12&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;x86-64-v4&lt;/text&gt;&lt;text x=&quot;465&quot; y=&quot;232&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;v3 = common denominator here · v4 not on every node&lt;/text&gt;&lt;rect x=&quot;30&quot; y=&quot;270&quot; width=&quot;150&quot; height=&quot;52&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;105&quot; y=&quot;292&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;VM · x86-64-v3&lt;/text&gt;&lt;text x=&quot;105&quot; y=&quot;309&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;only common flags&lt;/text&gt;&lt;line x1=&quot;180&quot; y1=&quot;296&quot; x2=&quot;470&quot; y2=&quot;296&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;2.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;470&quot; y=&quot;268&quot; width=&quot;160&quot; height=&quot;56&quot; rx=&quot;9&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;550&quot; y=&quot;290&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;700&quot;&gt;migrates cleanly&lt;/text&gt;&lt;text x=&quot;550&quot; y=&quot;308&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;nothing promised is missing&lt;/text&gt;&lt;circle cx=&quot;182&quot; cy=&quot;296&quot; r=&quot;4.5&quot; fill=&quot;#7BB26A&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;182;470&quot; keyTimes=&quot;0;1&quot; dur=&quot;1.3s&quot; begin=&quot;1.8s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;/svg&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The CPU models named here (like &lt;code&gt;x86-64-v3&lt;/code&gt;) depend on &lt;strong&gt;your&lt;/strong&gt; hardware — pick the level your own nodes actually support, which the 9.2 flag selector shows you. Any custom model name is yours to choose. If a value looks specific to one machine, it’s a placeholder to change, not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-three-way-tradeoff-youre-actually-making&quot;&gt;The three-way tradeoff you’re actually making&lt;/h2&gt;
&lt;p&gt;Every VM’s CPU type is a choice among three bad-if-you-pick-wrong options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;host&lt;/code&gt;&lt;/strong&gt; — passes your physical CPU straight through. Fastest possible, and completely fine &lt;em&gt;until&lt;/em&gt; you try to migrate to a different or older chip, at which point it’s a brick wall. Great for a single node; a liability the moment your cluster isn’t uniform.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;kvm64&lt;/code&gt; / &lt;code&gt;qemu64&lt;/code&gt;&lt;/strong&gt; — a tiny, ancient baseline that runs and migrates literally anywhere, at the cost of leaving a decade of CPU performance (AVX, AES acceleration, and more) switched off.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;x86-64-v2&lt;/code&gt; / &lt;code&gt;v3&lt;/code&gt; / &lt;code&gt;v4&lt;/code&gt;&lt;/strong&gt; — the sane middle. These are &lt;a href=&quot;https://pve.proxmox.com/pve-docs/chapter-qm.html&quot;&gt;standardized microarchitecture levels&lt;/a&gt;, agreed in 2020 by AMD, Intel, Red Hat, and SUSE, that bundle progressively more modern instructions. You pick the &lt;strong&gt;highest level every node in your cluster supports&lt;/strong&gt;, and get modern performance while staying migratable. (Proxmox even defaults new VMs to &lt;code&gt;x86-64-v2-AES&lt;/code&gt; for this reason.)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The whole game is finding your cluster’s &lt;strong&gt;newest common denominator&lt;/strong&gt;. That used to be guesswork. In 9.2 it’s a screen you can read.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;find-your-common-denominator-with-the-92-flag-selector&quot;&gt;Find your common denominator with the 9.2 flag selector&lt;/h2&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Open the custom CPU model editor&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Go to &lt;strong&gt;Datacenter → Custom CPU Models&lt;/strong&gt; and add one. The 9.2 dialog embeds a &lt;strong&gt;flag editor grid&lt;/strong&gt; with free-text search over flag names, an accelerator (kvm/tcg) selector, and — the star of the show — a &lt;strong&gt;per-node multi-select&lt;/strong&gt; that shows which flags are supported across the nodes you choose. That cross-node view is exactly what you need: it makes the flags &lt;em&gt;not&lt;/em&gt; shared by every node visible, so you don’t promise a guest something a node can’t deliver.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Sanity-check from the shell too&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;You can corroborate the GUI from a node. A quick read-only check tells you which microarchitecture level a node meets — handy when deciding between v2, v3, and v4:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Which x86-64 level does this node support? (read-only)&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
/lib64/ld-linux-x86-64.so.2 --help | grep &amp;#39;x86-64-v&amp;#39;
# real output on my node:
#   x86-64-v2 (supported, searched)
#   x86-64-v3 (supported, searched)     &amp;lt;- v3 is the ceiling; no v4 line

# and the raw flags:
grep -m1 flags /proc/cpuinfo
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;On my cluster every node is an AMD Ryzen 5 PRO 2400G, which supports up through &lt;strong&gt;x86-64-v3&lt;/strong&gt; (it has AVX2) but not v4 — so v3 is the ceiling I’d standardize on if I added a non-identical node.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;3&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Apply it to a VM and migrate&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Either set the VM’s CPU type directly to the common baseline (e.g. &lt;code&gt;x86-64-v3&lt;/code&gt;), or reference your custom model as &lt;code&gt;custom-&amp;lt;name&amp;gt;&lt;/code&gt; in the VM’s CPU setting. Then do the thing this was all for: &lt;strong&gt;live-migrate the VM&lt;/strong&gt; between two unlike nodes and watch it succeed where a &lt;code&gt;host&lt;/code&gt;-typed VM would have stopped.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Changing CPU type needs a real power cycle&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The CPU a guest sees is fixed at boot, so re-typing a running VM only takes effect after a &lt;strong&gt;full stop and start&lt;/strong&gt; — not a reboot from inside the guest. Set the type &lt;em&gt;before&lt;/em&gt; you build fleets on top of a VM, and budget a brief stop for anything you re-type after the fact.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-mental-model-in-one-ladder&quot;&gt;The mental model, in one ladder&lt;/h2&gt;
&lt;svg viewBox=&quot;0 0 760 250&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;A ladder from kvm64 at the bottom through x86-64-v2, v3, v4 to host at the top, showing performance rising and migration compatibility falling as you climb.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;380&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Climb for speed, descend for portability — stop at your cluster’s ceiling&lt;/text&gt;&lt;rect x=&quot;60&quot; y=&quot;90&quot; width=&quot;110&quot; height=&quot;70&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;115&quot; y=&quot;120&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;kvm64&lt;/text&gt;&lt;text x=&quot;115&quot; y=&quot;140&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;migrates anywhere · slow&lt;/text&gt;&lt;rect x=&quot;210&quot; y=&quot;90&quot; width=&quot;110&quot; height=&quot;70&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;265&quot; y=&quot;120&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;x86-64-v2&lt;/text&gt;&lt;text x=&quot;265&quot; y=&quot;140&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;safe modern baseline&lt;/text&gt;&lt;rect x=&quot;360&quot; y=&quot;90&quot; width=&quot;110&quot; height=&quot;70&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;415&quot; y=&quot;120&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;x86-64-v3&lt;/text&gt;&lt;text x=&quot;415&quot; y=&quot;140&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;AVX2 · your ceiling here&lt;/text&gt;&lt;rect x=&quot;510&quot; y=&quot;90&quot; width=&quot;110&quot; height=&quot;70&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#E0A83F&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;565&quot; y=&quot;120&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;x86-64-v4&lt;/text&gt;&lt;text x=&quot;565&quot; y=&quot;140&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;AVX-512 · newest nodes only&lt;/text&gt;&lt;rect x=&quot;640&quot; y=&quot;90&quot; width=&quot;110&quot; height=&quot;70&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;695&quot; y=&quot;120&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;host&lt;/text&gt;&lt;text x=&quot;695&quot; y=&quot;140&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;fastest · no migration&lt;/text&gt;&lt;line x1=&quot;60&quot; y1=&quot;185&quot; x2=&quot;750&quot; y2=&quot;185&quot; stroke=&quot;#2A3A2C&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;text x=&quot;90&quot; y=&quot;205&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;← more portable&lt;/text&gt;&lt;text x=&quot;700&quot; y=&quot;205&quot; text-anchor=&quot;end&quot; fill=&quot;#C8564A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;more performance →&lt;/text&gt;&lt;/svg&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;thats-the-flagship-run&quot;&gt;That’s the flagship run&lt;/h2&gt;
&lt;p&gt;Five builds, each one a genuine gap when I went looking: a &lt;a href=&quot;https://peira.dev/articles/olla-ollama-load-balancer/&quot;&gt;load-balanced local-AI endpoint&lt;/a&gt;, a &lt;a href=&quot;https://peira.dev/articles/read-only-homelab-mcp-server/&quot;&gt;read-only way to let an AI see your homelab&lt;/a&gt;, &lt;a href=&quot;https://peira.dev/articles/proxmox-92-sdn-fabric-wireguard/&quot;&gt;self-healing routed networking&lt;/a&gt;, &lt;a href=&quot;https://peira.dev/articles/pbs-42-minio-s3-backups/&quot;&gt;object-storage backups you own&lt;/a&gt;, and now cross-CPU live migration. If you build only one, build the one that removes a fear you actually have — that’s what a homelab is for.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/pbs-42-minio-s3-backups/&quot;&gt;PBS 4.2 Backups to Self-Hosted MinIO&lt;/a&gt; — the previous flagship.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/olla-ollama-load-balancer/&quot;&gt;Load-Balance a Multi-Node Ollama Cluster With Olla&lt;/a&gt; — where the flagship run began.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-92-sdn-fabric-wireguard/&quot;&gt;Proxmox VE 9.2 SDN Fabrics&lt;/a&gt; — the other big 9.2 feature in this set.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-create-vm/&quot;&gt;Create Your First Proxmox VM&lt;/a&gt; — where the CPU type is chosen.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-cluster-hp-elitedesk/&quot;&gt;Build a 4-Node Proxmox Cluster on HP EliteDesk Mini PCs&lt;/a&gt; — the kind of cluster that grows mixed over time.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-vm-vs-lxc/&quot;&gt;Proxmox VM vs LXC: When to Use Each&lt;/a&gt; — the workloads you’re migrating.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/read-only-homelab-mcp-server/&quot;&gt;Build a Read-Only Homelab MCP Server&lt;/a&gt; — ask an AI whether your migration actually balanced the cluster.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>proxmox</category><category>infrastructure</category></item><item><title>Proxmox VE 9.2 SDN Fabrics: Routed, Encrypted Networking</title><link>https://peira.dev/articles/proxmox-92-sdn-fabric-wireguard/</link><guid isPermaLink="true">https://peira.dev/articles/proxmox-92-sdn-fabric-wireguard/</guid><description>Use Proxmox VE 9.2 SDN Fabrics to build a routed, self-healing node network — OSPF or OpenFabric, WireGuard encryption, and route-maps that keep storage private.</description><pubDate>Fri, 04 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;For a long time my cluster’s inter-node network was held together by static routes I’d typed onto each node and then prayed I’d never have to remember. It worked — until a cable or a NIC hiccuped, and then it very much did not, because a static route has no idea the path it points at is dead. It just keeps pointing.&lt;/p&gt;
&lt;p&gt;Proxmox VE 9.2’s &lt;strong&gt;SDN Fabrics&lt;/strong&gt; are the grown-up answer. You declare which nodes and interfaces participate and pick a routing protocol, and Proxmox writes the router config on every node for you. The nodes then discover each other, exchange routes, and — the part I actually wanted — &lt;strong&gt;reroute automatically&lt;/strong&gt; when a link goes down. This flagship walks the concepts and the exact build path, and it corrects a misconception I see everywhere about where WireGuard fits. Every menu path and behavior below is from the official &lt;a href=&quot;https://pve.proxmox.com/pve-docs/chapter-pvesdn.html&quot;&gt;Proxmox SDN documentation&lt;/a&gt;.&lt;/p&gt;
&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;https://pve-demo.homelab.lan:8006/&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/pve-dc-sdn.DZ2JGPh4_Z1rnqae.webp&quot; aria-label=&quot;Enlarge screenshot: Proxmox VE Datacenter SDN status view showing a healthy zone on the pve-demo node and navigation for Zones and VNets&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/pve-dc-sdn.DZ2JGPh4_I5lFS.webp&quot; alt=&quot;Proxmox VE Datacenter SDN status view showing a healthy zone on the pve-demo node and navigation for Zones and VNets&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;720&quot; height=&quot;450&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Datacenter → SDN is the cluster-wide home for zones and VNets. This is where Proxmox turns the network design into shared configuration.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;svg viewBox=&quot;0 0 760 380&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: four Proxmox nodes in a mesh fabric with two paths between the far nodes; when one link fails, traffic reroutes over the alternate path automatically.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;defs&gt;&lt;linearGradient id=&quot;sdnPanel&quot; x1=&quot;0&quot; y1=&quot;0&quot; x2=&quot;0&quot; y2=&quot;1&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#223224&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#1C2C1F&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;/defs&gt;&lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;760&quot; height=&quot;380&quot; fill=&quot;url(#sdnPanel)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;32&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;A link dies — the fabric routes around it, no static routes to fix&lt;/text&gt;&lt;rect x=&quot;300&quot; y=&quot;42&quot; width=&quot;120&quot; height=&quot;56&quot; rx=&quot;10&quot; fill=&quot;#253727&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;66&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;node1&lt;/text&gt;&lt;text x=&quot;360&quot; y=&quot;83&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;loopback&lt;/text&gt;&lt;rect x=&quot;60&quot; y=&quot;172&quot; width=&quot;120&quot; height=&quot;56&quot; rx=&quot;10&quot; fill=&quot;#253727&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;196&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;node2&lt;/text&gt;&lt;text x=&quot;120&quot; y=&quot;213&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;loopback&lt;/text&gt;&lt;rect x=&quot;540&quot; y=&quot;172&quot; width=&quot;120&quot; height=&quot;56&quot; rx=&quot;10&quot; fill=&quot;#253727&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;600&quot; y=&quot;196&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;node3&lt;/text&gt;&lt;text x=&quot;600&quot; y=&quot;213&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;loopback&lt;/text&gt;&lt;rect x=&quot;300&quot; y=&quot;272&quot; width=&quot;120&quot; height=&quot;56&quot; rx=&quot;10&quot; fill=&quot;#253727&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;296&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;node4&lt;/text&gt;&lt;text x=&quot;360&quot; y=&quot;313&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;loopback&lt;/text&gt;&lt;line x1=&quot;300&quot; y1=&quot;90&quot; x2=&quot;180&quot; y2=&quot;180&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;2&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;420&quot; y1=&quot;90&quot; x2=&quot;540&quot; y2=&quot;180&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;2&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;180&quot; y1=&quot;220&quot; x2=&quot;300&quot; y2=&quot;290&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;3&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;540&quot; y1=&quot;220&quot; x2=&quot;420&quot; y2=&quot;290&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;3&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;180&quot; y1=&quot;200&quot; x2=&quot;540&quot; y2=&quot;200&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;2.5&quot; stroke-dasharray=&quot;7 5&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;360&quot; cy=&quot;200&quot; r=&quot;13&quot; fill=&quot;#241512&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M354 194 l12 12 M366 194 l-12 12&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot;&gt;&lt;/path&gt;&lt;text x=&quot;360&quot; y=&quot;235&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;direct link down&lt;/text&gt;&lt;circle cx=&quot;180&quot; cy=&quot;200&quot; r=&quot;5&quot; fill=&quot;#7BB26A&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;180;300;360;420;540&quot; keyTimes=&quot;0;0.25;0.5;0.75;1&quot; dur=&quot;2.4s&quot; begin=&quot;0.6s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;animate attributeName=&quot;cy&quot; values=&quot;200;290;300;290;200&quot; keyTimes=&quot;0;0.25;0.5;0.75;1&quot; dur=&quot;2.4s&quot; begin=&quot;0.6s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;text x=&quot;380&quot; y=&quot;352&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;node2 → node4 → node3: the routing protocol finds the alternate path on its own.&lt;/text&gt;&lt;/svg&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Node names, interfaces, and any addresses here are examples. Use your own node names, the real interface names on your hardware, and CIDR ranges from your own address plan (the docs use ranges like &lt;code&gt;10.0.0.0/24&lt;/code&gt; for loopbacks). If a value looks specific to one machine, it’s a placeholder to change, not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-a-fabric-actually-is&quot;&gt;What a fabric actually is&lt;/h2&gt;
&lt;p&gt;A &lt;strong&gt;fabric&lt;/strong&gt; is a routed network between your nodes, defined once in the datacenter and pushed to every node. Proxmox VE 9.2 gives you three protocols, and picking the right one is most of the decision:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;OpenFabric&lt;/strong&gt; — based on the IS-IS protocol and tuned for &lt;strong&gt;spine-leaf&lt;/strong&gt; data-center layouts. It’s the modern, low-fuss choice for a homelab mesh; router IDs can be IPv4 or IPv6.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;OSPF&lt;/strong&gt; — the classic, universally understood link-state protocol. Reach for it if you already speak OSPF or need to interoperate with existing OSPF gear.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;WireGuard&lt;/strong&gt; — and here’s the misconception worth killing.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;WireGuard is encryption, not routing&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;It’s tempting to call WireGuard a third routing protocol. It isn’t. The docs are explicit: WireGuard “does not provide dynamic routing by itself,” but is used &lt;strong&gt;in conjunction with&lt;/strong&gt; OSPF or BGP. WireGuard builds the encrypted tunnels between nodes; OSPF or BGP runs &lt;em&gt;on top&lt;/em&gt; to distribute the routes. So a “WireGuard fabric” is really an &lt;strong&gt;encrypted underlay&lt;/strong&gt; carrying a dynamic routing protocol — the private road, with OSPF doing the signposting. If you want your inter-node routing encrypted (say, across sites), that’s the combination.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;build-a-fabric&quot;&gt;Build a fabric&lt;/h2&gt;
&lt;p&gt;The whole thing is driven from &lt;strong&gt;Datacenter → SDN → Fabrics&lt;/strong&gt;, and it writes the low-level router config so you never touch &lt;a href=&quot;https://frrouting.org/&quot;&gt;FRR&lt;/a&gt; by hand.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Add the fabric&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Under &lt;strong&gt;Datacenter → SDN → Fabrics&lt;/strong&gt;, click &lt;strong&gt;Add Fabric&lt;/strong&gt; and choose your protocol (OpenFabric for a fresh homelab mesh). Set the fabric-level basics — router IDs, the loopback prefix, and area settings where the protocol asks for them.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Add nodes and their interfaces&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;With the fabric created, add each participating node with the &lt;strong&gt;+&lt;/strong&gt; button, selecting which of its interfaces join the fabric and giving each interface an address in CIDR notation. Proxmox automatically creates the &lt;strong&gt;dummy loopback interfaces&lt;/strong&gt; the routing protocol uses as stable per-node identities.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;3&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Apply — and know what it does&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Back on the main &lt;strong&gt;SDN&lt;/strong&gt; panel, hit &lt;strong&gt;Apply Configuration&lt;/strong&gt;. This is the moment it becomes real: Proxmox generates and writes the &lt;a href=&quot;https://frrouting.org/&quot;&gt;FRR&lt;/a&gt; configuration (&lt;code&gt;/etc/frr/frr.conf&lt;/code&gt;) on &lt;strong&gt;every node&lt;/strong&gt; and reloads it. From here the nodes exchange routes and converge on best paths themselves.&lt;/p&gt;&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Apply is cluster-wide&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Applying an SDN change regenerates the routing config on all participating nodes at once, not just the one you’re clicking from. That’s the point — the fabric is a cluster object — but it means you plan the address scheme up front rather than nudging one node at a time.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;keep-storage-and-management-traffic-where-it-belongs&quot;&gt;Keep storage and management traffic where it belongs&lt;/h2&gt;
&lt;p&gt;Once nodes are exchanging routes, the next question is &lt;em&gt;which&lt;/em&gt; routes. You rarely want every network advertised to every peer — your management or &lt;a href=&quot;https://peira.dev/articles/proxmox-storage-guide/&quot;&gt;Ceph&lt;/a&gt; storage network should not leak out to, say, a guest-facing peer. Proxmox VE 9.2 gives you two filtering tools for the BGP/EVPN controller:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Prefix Lists&lt;/strong&gt; (&lt;strong&gt;Datacenter → SDN → Prefix Lists&lt;/strong&gt;) — an ordered, named list of CIDR entries, each permit or deny. This is your “which networks are we even talking about” list.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Route Maps&lt;/strong&gt; (&lt;strong&gt;Datacenter → SDN → Route Maps&lt;/strong&gt;) — ordered entries that match routes against criteria and then permit, deny, or &lt;strong&gt;modify&lt;/strong&gt; them (for example, adjusting a metric) before they’re advertised.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A controller references these for its incoming and outgoing route policy, so you decide exactly which prefixes reach which peers.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 760 280&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: a route-map advertises the guest network prefix to a peer while denying the management and storage prefixes, which are filtered out and never leave.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;380&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;A route-map advertises one network and withholds the sensitive ones&lt;/text&gt;&lt;rect x=&quot;30&quot; y=&quot;70&quot; width=&quot;180&quot; height=&quot;150&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;92&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;routes this node knows&lt;/text&gt;&lt;rect x=&quot;48&quot; y=&quot;112&quot; width=&quot;144&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#09100B&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;127&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;guest net&lt;/text&gt;&lt;rect x=&quot;48&quot; y=&quot;142&quot; width=&quot;144&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#09100B&quot; stroke=&quot;#E0A83F&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;157&quot; text-anchor=&quot;middle&quot; fill=&quot;#E0A83F&quot; font-size=&quot;10&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;management net&lt;/text&gt;&lt;rect x=&quot;48&quot; y=&quot;172&quot; width=&quot;144&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#09100B&quot; stroke=&quot;#E0A83F&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;120&quot; y=&quot;187&quot; text-anchor=&quot;middle&quot; fill=&quot;#E0A83F&quot; font-size=&quot;10&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;storage / Ceph net&lt;/text&gt;&lt;path d=&quot;M300 100 l50 -20 l0 130 l-50 -20 z&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/path&gt;&lt;text x=&quot;325&quot; y=&quot;150&quot; text-anchor=&quot;middle&quot; fill=&quot;#4FAE96&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot; transform=&quot;rotate(-90 325 150)&quot;&gt;route-map&lt;/text&gt;&lt;rect x=&quot;560&quot; y=&quot;120&quot; width=&quot;170&quot; height=&quot;56&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;645&quot; y=&quot;145&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;peer&lt;/text&gt;&lt;text x=&quot;645&quot; y=&quot;162&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;sees only the guest net&lt;/text&gt;&lt;line x1=&quot;210&quot; y1=&quot;123&quot; x2=&quot;300&quot; y2=&quot;123&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;2&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;350&quot; y1=&quot;120&quot; x2=&quot;560&quot; y2=&quot;140&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;2.5&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;210&quot; cy=&quot;123&quot; r=&quot;4.5&quot; fill=&quot;#7BB26A&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;210;560&quot; keyTimes=&quot;0;1&quot; dur=&quot;1.6s&quot; begin=&quot;0.4s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;animate attributeName=&quot;cy&quot; values=&quot;123;140&quot; keyTimes=&quot;0;1&quot; dur=&quot;1.6s&quot; begin=&quot;0.4s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;line x1=&quot;210&quot; y1=&quot;153&quot; x2=&quot;300&quot; y2=&quot;150&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;4 3&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;210&quot; y1=&quot;183&quot; x2=&quot;300&quot; y2=&quot;178&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;4 3&quot;&gt;&lt;/line&gt;&lt;text x=&quot;325&quot; y=&quot;245&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;management + storage: denied, never advertised&lt;/text&gt;&lt;/svg&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-homelab-payoff-a-full-mesh-ceph-network&quot;&gt;The homelab payoff: a full-mesh Ceph network&lt;/h2&gt;
&lt;p&gt;The single most useful place a homelabber meets fabrics is a &lt;strong&gt;full-mesh &lt;a href=&quot;https://peira.dev/articles/proxmox-storage-guide/&quot;&gt;Ceph&lt;/a&gt; network&lt;/strong&gt;. Ceph wants a fast, reliable private network between nodes, and wiring nodes directly to each other (no switch) is a classic way to get 10-gig-plus between three or four boxes cheaply. Historically that meant fiddly static routes on every node; a fabric turns it into a declared object that heals itself if a direct link drops. If you’re building a small Ceph cluster, this is the modern way to lay its network.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;back-up-across-the-fabric&quot;&gt;Back up across the fabric&lt;/h2&gt;
&lt;p&gt;You’ve got a routed, self-healing, optionally-encrypted network under your cluster. Next in this flagship run we point Proxmox Backup Server 4.2’s brand-new S3 support at a &lt;strong&gt;self-hosted&lt;/strong&gt; object store: &lt;a href=&quot;https://peira.dev/articles/pbs-42-minio-s3-backups/&quot;&gt;PBS 4.2 backing up to MinIO&lt;/a&gt; running on your own NAS.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/read-only-homelab-mcp-server/&quot;&gt;Build a Read-Only Homelab MCP Server for Your LLM&lt;/a&gt; — the previous flagship.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/pbs-42-minio-s3-backups/&quot;&gt;PBS 4.2 Backups to Self-Hosted MinIO (S3)&lt;/a&gt; — the next flagship: 9.2-era backups to your own object store.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-storage-guide/&quot;&gt;Proxmox Storage Guide: LVM, ZFS, NFS, and Ceph&lt;/a&gt; — the Ceph network fabrics were made for.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-lxc-networking/&quot;&gt;Proxmox LXC Networking: Bridges, VLANs, and Static IPs&lt;/a&gt; — the flat-network fundamentals fabrics build beyond.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;Tailscale Subnet Router for Your Homelab&lt;/a&gt; — WireGuard for reaching the lab; fabrics are WireGuard between nodes.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-cluster-hp-elitedesk/&quot;&gt;Build a 4-Node Proxmox Cluster on HP EliteDesk Mini PCs&lt;/a&gt; — the kind of cluster a fabric knits together.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-create-vm/&quot;&gt;Create Your First Proxmox VM&lt;/a&gt; — the workloads that ride on top of the fabric.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>proxmox</category><category>networking</category><category>infrastructure</category></item><item><title>Build a Read-Only Homelab MCP Server for Your LLM</title><link>https://peira.dev/articles/read-only-homelab-mcp-server/</link><guid isPermaLink="true">https://peira.dev/articles/read-only-homelab-mcp-server/</guid><description>Build a read-only MCP server so Claude or any LLM can safely query your Proxmox and Prometheus homelab — no tool can change a thing. FastMCP, tested.</description><pubDate>Fri, 04 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I wanted to be able to ask my AI assistant plain questions about my homelab — “are all my nodes up?”, “how many disks are being monitored?”, “any firing alerts?” — and get real answers from the real cluster. What I absolutely did &lt;strong&gt;not&lt;/strong&gt; want was to hand a language model a button that could reboot a node or delete a VM. Convenience is lovely right up until the model confidently does the wrong thing at 2 a.m.&lt;/p&gt;
&lt;p&gt;The resolution is a &lt;strong&gt;read-only MCP server&lt;/strong&gt;: a small program that exposes your homelab to an AI as a set of &lt;em&gt;query&lt;/em&gt; tools and nothing else, connecting with credentials that can only read. The safety isn’t a promise you extract from the model — it’s baked into the architecture. There is simply no tool, and no permission, to change anything. This flagship builds one, and every number you’ll see below came out of my own running cluster through the server I’m about to show you.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 760 360&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: an AI assistant calls a read-only MCP server, which forwards read queries to Proxmox and Prometheus and returns data; a write attempt is rejected at the server because no write tool exists.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;defs&gt;&lt;linearGradient id=&quot;mcpPanel&quot; x1=&quot;0&quot; y1=&quot;0&quot; x2=&quot;0&quot; y2=&quot;1&quot;&gt;&lt;stop offset=&quot;0&quot; stop-color=&quot;#223224&quot;&gt;&lt;/stop&gt;&lt;stop offset=&quot;1&quot; stop-color=&quot;#1C2C1F&quot;&gt;&lt;/stop&gt;&lt;/linearGradient&gt;&lt;/defs&gt;&lt;rect x=&quot;0&quot; y=&quot;0&quot; width=&quot;760&quot; height=&quot;360&quot; fill=&quot;url(#mcpPanel)&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;380&quot; y=&quot;32&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;The AI can ask anything — and change nothing&lt;/text&gt;&lt;rect x=&quot;30&quot; y=&quot;150&quot; width=&quot;120&quot; height=&quot;70&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;90&quot; y=&quot;180&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;AI assistant&lt;/text&gt;&lt;text x=&quot;90&quot; y=&quot;199&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;MCP client&lt;/text&gt;&lt;rect x=&quot;230&quot; y=&quot;120&quot; width=&quot;170&quot; height=&quot;130&quot; rx=&quot;12&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;2&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;315&quot; y=&quot;150&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;700&quot;&gt;MCP server&lt;/text&gt;&lt;text x=&quot;315&quot; y=&quot;170&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;read tools only&lt;/text&gt;&lt;rect x=&quot;248&quot; y=&quot;185&quot; width=&quot;134&quot; height=&quot;24&quot; rx=&quot;5&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;315&quot; y=&quot;201&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;prometheus_query&lt;/text&gt;&lt;rect x=&quot;248&quot; y=&quot;214&quot; width=&quot;134&quot; height=&quot;24&quot; rx=&quot;5&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;315&quot; y=&quot;230&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;cluster_targets_up&lt;/text&gt;&lt;line x1=&quot;400&quot; y1=&quot;185&quot; x2=&quot;560&quot; y2=&quot;125&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;560&quot; y=&quot;95&quot; width=&quot;170&quot; height=&quot;60&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;645&quot; y=&quot;121&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;Proxmox&lt;/text&gt;&lt;text x=&quot;645&quot; y=&quot;139&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;PVEAuditor token&lt;/text&gt;&lt;line x1=&quot;400&quot; y1=&quot;185&quot; x2=&quot;560&quot; y2=&quot;235&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;560&quot; y=&quot;205&quot; width=&quot;170&quot; height=&quot;60&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;645&quot; y=&quot;231&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;Prometheus&lt;/text&gt;&lt;text x=&quot;645&quot; y=&quot;249&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;instant queries&lt;/text&gt;&lt;circle cx=&quot;150&quot; cy=&quot;185&quot; r=&quot;5&quot; fill=&quot;#7BB26A&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;150;230&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.7s&quot; begin=&quot;0s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;1;0&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.7s&quot; begin=&quot;0.7s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;g opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.5s&quot; begin=&quot;1.4s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;text x=&quot;90&quot; y=&quot;245&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;10&quot; font-family=&quot;ui-monospace, monospace&quot;&gt;reboot_node()?&lt;/text&gt;&lt;line x1=&quot;150&quot; y1=&quot;255&quot; x2=&quot;228&quot; y2=&quot;255&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;4 3&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;235&quot; cy=&quot;255&quot; r=&quot;11&quot; fill=&quot;#241512&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M230 250 l10 10 M240 250 l-10 10&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot;&gt;&lt;/path&gt;&lt;text x=&quot;315&quot; y=&quot;300&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;no such tool exists — nothing to reject, nothing to fear&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The addresses below are examples. Replace &lt;strong&gt;&lt;code&gt;10.0.0.104&lt;/code&gt;&lt;/strong&gt; with your Prometheus host and any Proxmox address with your own. Keep every credential (the read-only API token) in your secret store and pass it via an environment variable — never paste a real token into the server file. If a value looks specific to one machine, it’s a placeholder to change, not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-mcp-is-in-one-minute&quot;&gt;What MCP is, in one minute&lt;/h2&gt;
&lt;p&gt;The &lt;a href=&quot;https://modelcontextprotocol.io&quot;&gt;Model Context Protocol&lt;/a&gt; (MCP) is an open standard — originally from Anthropic — for connecting AI assistants to tools. An &lt;strong&gt;MCP server&lt;/strong&gt; publishes a set of tools (typed functions); an &lt;strong&gt;MCP client&lt;/strong&gt; (Claude Desktop, &lt;a href=&quot;https://claude.com/claude-code&quot;&gt;Claude Code&lt;/a&gt;, and a growing list of others) lets the model discover and call them. Instead of the model hallucinating your cluster’s state, it &lt;em&gt;asks&lt;/em&gt; your server and gets the real answer.&lt;/p&gt;
&lt;p&gt;The protocol itself is neutral about safety — a tool can do anything you program it to. Which is exactly why the interesting design decision is &lt;strong&gt;what you choose to expose&lt;/strong&gt;. We’re going to expose only reads.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;build-the-server&quot;&gt;Build the server&lt;/h2&gt;
&lt;p&gt;I’ll use Python and &lt;a href=&quot;https://github.com/jlowin/fastmcp&quot;&gt;FastMCP&lt;/a&gt;, where a decorated function becomes a tool. Two tools is enough to be genuinely useful: a general Prometheus query, and a friendly “are my targets up?” summary.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Write a read-only server&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;server.py — read-only homelab tools&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
import os, requests
from fastmcp import FastMCP

PROM_URL = os.environ.get(&amp;quot;PROM_URL&amp;quot;, &amp;quot;http://10.0.0.104:9090&amp;quot;)
mcp = FastMCP(&amp;quot;homelab-readonly&amp;quot;)

@mcp.tool
def prometheus_query(promql: str) -&amp;gt; dict:
    &amp;quot;&amp;quot;&amp;quot;Run a read-only Prometheus instant query.&amp;quot;&amp;quot;&amp;quot;
    r = requests.get(f&amp;quot;{PROM_URL}/api/v1/query&amp;quot;,
                     params={&amp;quot;query&amp;quot;: promql}, timeout=10)
    r.raise_for_status()
    data = r.json()[&amp;quot;data&amp;quot;][&amp;quot;result&amp;quot;]
    return {&amp;quot;query&amp;quot;: promql, &amp;quot;series&amp;quot;: len(data),
            &amp;quot;sample&amp;quot;: [{&amp;quot;metric&amp;quot;: s[&amp;quot;metric&amp;quot;], &amp;quot;value&amp;quot;: s[&amp;quot;value&amp;quot;][1]}
                       for s in data[:5]]}

@mcp.tool
def cluster_targets_up() -&amp;gt; dict:
    &amp;quot;&amp;quot;&amp;quot;How many scrape targets are up vs down (read-only).&amp;quot;&amp;quot;&amp;quot;
    r = requests.get(f&amp;quot;{PROM_URL}/api/v1/query&amp;quot;,
                     params={&amp;quot;query&amp;quot;: &amp;quot;up&amp;quot;}, timeout=10)
    r.raise_for_status()
    res = r.json()[&amp;quot;data&amp;quot;][&amp;quot;result&amp;quot;]
    up = sum(1 for s in res if s[&amp;quot;value&amp;quot;][1] == &amp;quot;1&amp;quot;)
    return {&amp;quot;targets_total&amp;quot;: len(res), &amp;quot;targets_up&amp;quot;: up,
            &amp;quot;targets_down&amp;quot;: len(res) - up}

if __name__ == &amp;quot;__main__&amp;quot;:
    mcp.run()   # stdio transport by default
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Notice what’s &lt;em&gt;not&lt;/em&gt; here: there is no &lt;code&gt;reboot&lt;/code&gt;, no &lt;code&gt;delete&lt;/code&gt;, no &lt;code&gt;create&lt;/code&gt;. The tool surface is the security boundary.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Smoke-test it over the real MCP protocol&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;You don’t need to wire it into a chat client to know it works. FastMCP ships an in-memory client, so a five-line script exercises the actual protocol — list the tools, call one, see real data. This is the unedited output from my cluster:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;A real MCP round-trip&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
tools/list -&amp;gt; [&amp;#39;prometheus_query&amp;#39;, &amp;#39;cluster_targets_up&amp;#39;]
call cluster_targets_up  -&amp;gt; {&amp;#39;targets_total&amp;#39;: 27, &amp;#39;targets_up&amp;#39;: 27, &amp;#39;targets_down&amp;#39;: 0}
call prometheus_query(&amp;#39;count(smartctl_device_smart_status)&amp;#39;)
                         -&amp;gt; {&amp;#39;series&amp;#39;: 1, &amp;#39;sample&amp;#39;: [{&amp;#39;value&amp;#39;: &amp;#39;8&amp;#39;}]}
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Twenty-seven scrape targets, all up; eight disks reporting SMART. The model asked; the cluster answered; nothing changed.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;read-only-by-design--the-four-layers&quot;&gt;Read-only &lt;em&gt;by design&lt;/em&gt; — the four layers&lt;/h2&gt;
&lt;p&gt;“Read-only” isn’t one setting; it’s a posture you build in layers, so a mistake at any single layer can’t hand an AI the keys.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 760 260&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram of four defense layers that make the MCP server read-only: read-only credentials, only read tools exposed, bounded inputs, and a private network scope.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;380&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Four independent layers — each one alone would stop a mistake&lt;/text&gt;&lt;rect x=&quot;25&quot; y=&quot;70&quot; width=&quot;155&quot; height=&quot;110&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;102&quot; y=&quot;102&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;1. Read-only creds&lt;/text&gt;&lt;text x=&quot;102&quot; y=&quot;128&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;PVEAuditor token,&lt;/text&gt;&lt;text x=&quot;102&quot; y=&quot;144&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;query-only DB user&lt;/text&gt;&lt;circle cx=&quot;102&quot; cy=&quot;165&quot; r=&quot;7&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.25&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M98 165 l3 3 l6 -6&quot; fill=&quot;none&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;210&quot; y=&quot;70&quot; width=&quot;155&quot; height=&quot;110&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;287&quot; y=&quot;102&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;2. Read tools only&lt;/text&gt;&lt;text x=&quot;287&quot; y=&quot;128&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;no write/delete tool&lt;/text&gt;&lt;text x=&quot;287&quot; y=&quot;144&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;ever registered&lt;/text&gt;&lt;circle cx=&quot;287&quot; cy=&quot;165&quot; r=&quot;7&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.25&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M283 165 l3 3 l6 -6&quot; fill=&quot;none&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;395&quot; y=&quot;70&quot; width=&quot;155&quot; height=&quot;110&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;472&quot; y=&quot;102&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;3. Bounded inputs&lt;/text&gt;&lt;text x=&quot;472&quot; y=&quot;128&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;instant queries only,&lt;/text&gt;&lt;text x=&quot;472&quot; y=&quot;144&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;no admin endpoints&lt;/text&gt;&lt;circle cx=&quot;472&quot; cy=&quot;165&quot; r=&quot;7&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.25&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M468 165 l3 3 l6 -6&quot; fill=&quot;none&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;/path&gt;&lt;rect x=&quot;580&quot; y=&quot;70&quot; width=&quot;155&quot; height=&quot;110&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;657&quot; y=&quot;102&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;4. Private scope&lt;/text&gt;&lt;text x=&quot;657&quot; y=&quot;128&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;localhost / Tailscale,&lt;/text&gt;&lt;text x=&quot;657&quot; y=&quot;144&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;never the internet&lt;/text&gt;&lt;circle cx=&quot;657&quot; cy=&quot;165&quot; r=&quot;7&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.25&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M653 165 l3 3 l6 -6&quot; fill=&quot;none&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;/path&gt;&lt;text x=&quot;380&quot; y=&quot;215&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Give the token to Proxmox as PVEAuditor; give the AI only the tools you wrote; keep it off the public net.&lt;/text&gt;&lt;/svg&gt;
&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;The credential is the real lock&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;The single most important choice is the &lt;strong&gt;read-only credential&lt;/strong&gt;. In Proxmox, that’s a token bound to the built-in &lt;code&gt;PVEAuditor&lt;/code&gt; role — it can read cluster state and nothing else. Even if you later fat-finger a write tool into the server, an audit token has no permission to carry it out. Store the token in your secret manager and inject it as an environment variable; it never belongs in the code.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;connect-it-to-claude&quot;&gt;Connect it to Claude&lt;/h2&gt;
&lt;p&gt;To use it from an MCP client, register the server. In Claude Desktop or &lt;a href=&quot;https://claude.com/claude-code&quot;&gt;Claude Code&lt;/a&gt; that’s a small entry pointing at your server command:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;MCP client config (mcpServers entry)&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
{
  &amp;quot;mcpServers&amp;quot;: {
    &amp;quot;homelab-readonly&amp;quot;: {
      &amp;quot;command&amp;quot;: &amp;quot;python&amp;quot;,
      &amp;quot;args&amp;quot;: [&amp;quot;/opt/homelab-mcp/server.py&amp;quot;],
      &amp;quot;env&amp;quot;: { &amp;quot;PROM_URL&amp;quot;: &amp;quot;http://10.0.0.104:9090&amp;quot; }
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;Now you can ask, in plain English, “are all my Prometheus targets up?” and the assistant calls &lt;code&gt;cluster_targets_up&lt;/code&gt; and tells you. I keep mine reachable only over &lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;Tailscale&lt;/a&gt;, so the tools are available from my laptop or phone but never from the open internet.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-flourish-a-fully-self-hosted-loop&quot;&gt;The flourish: a fully self-hosted loop&lt;/h2&gt;
&lt;p&gt;Here’s the part I find genuinely delightful. Pair this with the &lt;a href=&quot;https://peira.dev/articles/olla-ollama-load-balancer/&quot;&gt;Olla endpoint from the last post&lt;/a&gt; and a local model, and the entire loop is yours: a &lt;strong&gt;local&lt;/strong&gt; LLM, load-balanced across &lt;strong&gt;your&lt;/strong&gt; Ollama nodes, calling a &lt;strong&gt;read-only&lt;/strong&gt; tool server to answer questions about &lt;strong&gt;your&lt;/strong&gt; cluster — no cloud in the path, and no way for any of it to change a thing. Ask your homelab how it’s doing, and your homelab answers, on your hardware.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;from-safe-visibility-to-resilient-networking&quot;&gt;From safe visibility to resilient networking&lt;/h2&gt;
&lt;p&gt;You’ve given an AI a safe pair of eyes on your infrastructure. Next in this flagship run we get our hands dirty in the network layer: &lt;a href=&quot;https://peira.dev/articles/proxmox-92-sdn-fabric-wireguard/&quot;&gt;Proxmox VE 9.2’s new SDN fabrics&lt;/a&gt;, building a routed, self-healing network between cluster nodes with WireGuard and route-map filtering.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/olla-ollama-load-balancer/&quot;&gt;Load-Balance a Multi-Node Ollama Cluster With Olla&lt;/a&gt; — the local endpoint that completes the self-hosted loop.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-92-sdn-fabric-wireguard/&quot;&gt;Proxmox VE 9.2 SDN Fabrics With WireGuard&lt;/a&gt; — the next flagship: routed networking between nodes.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;Give Your Local AI Private Web Search With SearXNG&lt;/a&gt; — another safe capability for a local model.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;What Is Prometheus?&lt;/a&gt; — the metrics source this server reads from.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/tailscale-subnet-router/&quot;&gt;Tailscale Subnet Router for Your Homelab&lt;/a&gt; — how I keep the MCP server private but reachable.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/ollama-lxc-cluster/&quot;&gt;Run an Ollama Cluster in Proxmox LXC&lt;/a&gt; — the local models that call these tools.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/best-small-llm-cpu-homelab/&quot;&gt;The Best Small LLM for a CPU-Only Homelab Node&lt;/a&gt; — which local model to run before wiring it in.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-create-lxc/&quot;&gt;Create Your First Proxmox LXC Container&lt;/a&gt; — a home for the server.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>ai</category><category>self-hosted</category><category>monitoring</category></item><item><title>Give Your Local AI Private Web Search With SearXNG</title><link>https://peira.dev/articles/searxng-owui-private-web-search/</link><guid isPermaLink="true">https://peira.dev/articles/searxng-owui-private-web-search/</guid><description>Wire Open WebUI to a self-hosted SearXNG metasearch engine so your local LLM answers current-events questions with citations — no cloud, no API keys.</description><pubDate>Fri, 04 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I love running a local model. I can ask it anything, it never phones home, and it costs me nothing per question. But it has one embarrassing blind spot: it cannot see &lt;em&gt;today&lt;/em&gt;. Ask my &lt;a href=&quot;https://ollama.com&quot;&gt;Ollama&lt;/a&gt; model who won a match last night or what version of some tool just shipped, and it either shrugs or — worse — invents a confident, wrong answer. A model that can’t see the present is only half a tool.&lt;/p&gt;
&lt;p&gt;The fix is to give it eyes: a search engine it can query, fetch pages from, and cite. And because this is a homelab and I care about not leaking every question I ask to a search company, I want that engine to be &lt;em&gt;mine&lt;/em&gt;. This post wires &lt;a href=&quot;https://openwebui.com&quot;&gt;Open WebUI&lt;/a&gt; — the chat front-end most of us put on top of Ollama — to a self-hosted &lt;a href=&quot;https://docs.searxng.org/&quot;&gt;SearXNG&lt;/a&gt; metasearch engine, so answers come back with citations and nothing sensitive ever leaves my network but the search itself. This is the first stop in the &lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;Self-Host the Apps You Actually Use&lt;/a&gt; series, and it’s my favorite because the payoff is so immediate.&lt;/p&gt;
&lt;p&gt;Here’s the whole pipeline we’re about to build:&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 320&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: a question flows from you into Open WebUI, out to your self-hosted SearXNG, which fans the query to public search engines, returns results that Open WebUI fetches and embeds, and the local Ollama model produces a cited answer.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;360&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Your question, answered with live sources — all on your hardware&lt;/text&gt;&lt;circle cx=&quot;60&quot; cy=&quot;160&quot; r=&quot;15&quot; fill=&quot;#253727&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/circle&gt;&lt;circle cx=&quot;60&quot; cy=&quot;155&quot; r=&quot;5.5&quot; fill=&quot;#C9A24A&quot;&gt;&lt;/circle&gt;&lt;path d=&quot;M49 171 q11 -11 22 0&quot; fill=&quot;none&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;2.5&quot; stroke-linecap=&quot;round&quot;&gt;&lt;/path&gt;&lt;text x=&quot;60&quot; y=&quot;196&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;You&lt;/text&gt;&lt;rect x=&quot;130&quot; y=&quot;120&quot; width=&quot;130&quot; height=&quot;80&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;195&quot; y=&quot;155&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;Open WebUI&lt;/text&gt;&lt;text x=&quot;195&quot; y=&quot;174&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;+ Ollama&lt;/text&gt;&lt;rect x=&quot;320&quot; y=&quot;120&quot; width=&quot;130&quot; height=&quot;80&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;385&quot; y=&quot;155&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;SearXNG&lt;/text&gt;&lt;text x=&quot;385&quot; y=&quot;174&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;metasearch&lt;/text&gt;&lt;line x1=&quot;450&quot; y1=&quot;160&quot; x2=&quot;560&quot; y2=&quot;90&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;560&quot; y=&quot;70&quot; width=&quot;120&quot; height=&quot;40&quot; rx=&quot;8&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;620&quot; y=&quot;95&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Engine A&lt;/text&gt;&lt;line x1=&quot;450&quot; y1=&quot;160&quot; x2=&quot;560&quot; y2=&quot;170&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;560&quot; y=&quot;150&quot; width=&quot;120&quot; height=&quot;40&quot; rx=&quot;8&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;620&quot; y=&quot;175&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Engine B&lt;/text&gt;&lt;line x1=&quot;450&quot; y1=&quot;160&quot; x2=&quot;560&quot; y2=&quot;250&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;560&quot; y=&quot;230&quot; width=&quot;120&quot; height=&quot;40&quot; rx=&quot;8&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;620&quot; y=&quot;255&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Engine C&lt;/text&gt;&lt;text x=&quot;620&quot; y=&quot;285&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;public search engines&lt;/text&gt;&lt;circle cx=&quot;60&quot; cy=&quot;160&quot; r=&quot;4.5&quot; fill=&quot;#4FAE96&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;82;130;320&quot; keyTimes=&quot;0;0.5;1&quot; dur=&quot;1.6s&quot; begin=&quot;0s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;1;1;0&quot; keyTimes=&quot;0;0.9;1&quot; dur=&quot;1.6s&quot; begin=&quot;0s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;line x1=&quot;82&quot; y1=&quot;160&quot; x2=&quot;130&quot; y2=&quot;160&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;4 4&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;260&quot; y1=&quot;160&quot; x2=&quot;320&quot; y2=&quot;160&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;4 4&quot;&gt;&lt;/line&gt;&lt;g opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.5s&quot; begin=&quot;2s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;rect x=&quot;130&quot; y=&quot;214&quot; width=&quot;130&quot; height=&quot;26&quot; rx=&quot;6&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;195&quot; y=&quot;231&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;cited answer [1][2]&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Every address, container ID, and model name below is an example. Before you copy a command, swap in your own values: &lt;strong&gt;&lt;code&gt;10.0.0.20&lt;/code&gt;&lt;/strong&gt; is a stand-in for your SearXNG host’s IP, &lt;strong&gt;&lt;code&gt;10.0.0.10&lt;/code&gt;&lt;/strong&gt; for your Open WebUI host, &lt;strong&gt;&lt;code&gt;8888&lt;/code&gt;&lt;/strong&gt; is the port I happened to use, and model names like &lt;strong&gt;&lt;code&gt;qwen2.5:3b&lt;/code&gt;&lt;/strong&gt; should be whatever you have pulled in Ollama. If a value looks specific to one machine, it’s a placeholder to change — not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;why-a-metasearch-engine-and-why-self-host-it&quot;&gt;Why a metasearch engine, and why self-host it&lt;/h2&gt;
&lt;p&gt;A &lt;strong&gt;metasearch engine&lt;/strong&gt; doesn’t crawl the web itself. It takes your query, forwards it to a pile of existing search engines at once, merges what they return, and hands you a clean, ad-free, tracker-free list. &lt;a href=&quot;https://docs.searxng.org/&quot;&gt;SearXNG&lt;/a&gt; is the best-known open-source one, and it’s a joy to run at home for two reasons.&lt;/p&gt;
&lt;p&gt;First, &lt;strong&gt;no API keys&lt;/strong&gt;. Every “give your LLM web search” tutorial that reaches for a commercial search API asks you to paste a billing-attached key and start metering your curiosity. SearXNG needs none — it speaks to public engines the same way your browser does.&lt;/p&gt;
&lt;p&gt;Second, &lt;strong&gt;no query leakage&lt;/strong&gt;. When your model searches through SearXNG, the questions fan out to public engines but never accumulate into a profile at a single company tied to your account. For a machine whose whole selling point is privacy, sending every question to a cloud search API would rather defeat the purpose.&lt;/p&gt;
&lt;p&gt;The catch — and it’s the whole reason this post exists — is that the wiring between Open WebUI and SearXNG has a few silent failure modes that make everything &lt;em&gt;look&lt;/em&gt; connected while quietly doing nothing. We’ll deploy SearXNG first, then walk the wiring carefully.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;deploy-searxng&quot;&gt;Deploy SearXNG&lt;/h2&gt;
&lt;p&gt;I run SearXNG natively (no Docker) in a small &lt;a href=&quot;https://peira.dev/articles/proxmox-create-lxc/&quot;&gt;Proxmox LXC container&lt;/a&gt; — it’s a lightweight Python app and doesn’t need a container-in-a-container. The official &lt;a href=&quot;https://docs.searxng.org/admin/installation-searxng.html&quot;&gt;step-by-step install&lt;/a&gt; is the source of truth; here’s the shape of it with the two homelab-specific settings that matter.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Create a container with internet access&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;A Debian LXC with 2 CPU cores, 1 GB of RAM, and 10 GB of disk is plenty. SearXNG &lt;em&gt;must&lt;/em&gt; be able to reach the internet — it’s the thing doing the searching — so make sure the container gets a normal network setup and can resolve DNS. Everything after this runs inside that container.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Install SearXNG into a virtualenv&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Following the official install, you create a dedicated &lt;code&gt;searxng&lt;/code&gt; user, clone the source, and install it into a Python virtual environment. A virtualenv is just an isolated folder of Python packages so SearXNG’s dependencies never collide with the system’s.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Install SearXNG from source (abridged — see official docs)&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
# as root, create the service user and directories
sudo useradd --system --home-dir /usr/local/searxng --shell /bin/bash searxng

# as the searxng user, clone and install into a venv
git clone https://github.com/searxng/searxng /usr/local/searxng/searxng-src
python3 -m venv /usr/local/searxng/searx-pyenv
. /usr/local/searxng/searx-pyenv/bin/activate
pip install --use-pep517 --no-build-isolation -e /usr/local/searxng/searxng-src
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;3&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Enable the JSON API — this is the one that bites you&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;By default SearXNG only returns &lt;strong&gt;HTML&lt;/strong&gt; — a web page for humans. Open WebUI needs &lt;strong&gt;JSON&lt;/strong&gt; — structured data for machines. If you forget this single line, Open WebUI’s searches come back with a &lt;code&gt;403 Forbidden&lt;/code&gt; and you’ll chase phantom network problems for an hour. Both the &lt;a href=&quot;https://docs.searxng.org/dev/search_api.html&quot;&gt;SearXNG search API docs&lt;/a&gt; and &lt;a href=&quot;https://docs.openwebui.com/features/chat-conversations/web-search/providers/searxng/&quot;&gt;Open WebUI’s own SearXNG guide&lt;/a&gt; call this out.&lt;/p&gt;&lt;p&gt;Edit &lt;code&gt;/etc/searxng/settings.yml&lt;/code&gt; and set the formats and a couple of LAN-friendly options:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;/etc/searxng/settings.yml — the parts that matter&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
use_default_settings: true

search:
  formats:
    - html
    - json          # REQUIRED, or Open WebUI gets empty/403 results

server:
  limiter: false    # LAN-only instance: skip the Redis/Valkey rate-limiter
  public_instance: false
  secret_key: &amp;quot;CHANGE_ME&amp;quot;   # generate a random value inside the container
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Two settings that are safe only because this is private&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Turning the &lt;code&gt;limiter&lt;/code&gt; off skips SearXNG’s abuse protection, which is fine for an instance only you can reach on a trusted subnet — but never do it on anything internet-facing. Generate the &lt;code&gt;secret_key&lt;/code&gt; with something like &lt;code&gt;openssl rand -hex 32&lt;/code&gt; &lt;em&gt;inside&lt;/em&gt; the container and keep it there.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;4&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Serve it with granian and log the queries&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;SearXNG’s current recommended app server is &lt;a href=&quot;https://docs.searxng.org/admin/installation-granian.html&quot;&gt;granian&lt;/a&gt; (the replacement for the older uWSGI). Run it under a systemd service so it starts on boot. One flag is worth adding deliberately: &lt;code&gt;--access-log&lt;/code&gt;. Granian doesn’t log requests by default, and being able to &lt;em&gt;see&lt;/em&gt; your searches land is how you prove the whole thing works.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Run SearXNG under granian&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
granian --interface wsgi --host 0.0.0.0 --port 8888 --access-log searx.webapp:app
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Leave the worker count alone&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;It’s tempting to crank up &lt;code&gt;--workers&lt;/code&gt;, but SearXNG’s docs specifically advise against it — more workers means more resource use and can trip the public engines’ bot detection. The defaults are tuned for this. Stick with them.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Confirm the JSON API answers before you touch Open WebUI. From inside the container:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Prove the JSON API works&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
curl -s -o /dev/null -w &amp;#39;%{http_code}\n&amp;#39; &amp;quot;http://127.0.0.1:8888/search?q=proxmox&amp;amp;format=json&amp;quot;
# expect: 200
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;That &lt;code&gt;200&lt;/code&gt; is your green light. (When I re-checked my live instance while writing this, that’s exactly what it returned.)&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Known-normal log noise, don&amp;#39;t chase it&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;On a fresh server IP, engines like Startpage and DuckDuckGo may temporarily CAPTCHA-suspend themselves — SearXNG just serves results from the rest of the pool and self-heals. You may also see a cosmetic &lt;code&gt;botdetection: X-Forwarded-For nor X-Real-IP header is set&lt;/code&gt; warning on direct connections. Neither is a failure.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;wire-open-webui-to-it--and-the-silent-traps&quot;&gt;Wire Open WebUI to it — and the silent traps&lt;/h2&gt;
&lt;p&gt;This is where the hour goes, so let’s go slowly. On paper it’s three settings. In practice, three separate things can make the globe icon in your chat do absolutely nothing while reporting no error at all.&lt;/p&gt;
&lt;p&gt;The official &lt;a href=&quot;https://docs.openwebui.com/features/chat-conversations/web-search/providers/searxng/&quot;&gt;Open WebUI SearXNG docs&lt;/a&gt; give you the three settings:&lt;/p&gt;
&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Open WebUI web-search settings&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
ENABLE_WEB_SEARCH=True
WEB_SEARCH_ENGINE=searxng
SEARXNG_QUERY_URL=http://10.0.0.20:8888/search?q=&amp;lt;query&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;p&gt;The literal string &lt;code&gt;&amp;lt;query&amp;gt;&lt;/code&gt; in that URL is a placeholder Open WebUI fills in — leave it exactly as written. Now the three traps, in the order they bit me.&lt;/p&gt;
&lt;h3 id=&quot;trap-1-in-recent-versions-the-database-beats-the-environment&quot;&gt;Trap 1: in recent versions, the database beats the environment&lt;/h3&gt;
&lt;p&gt;Newer Open WebUI (I was on the 0.10 line) stores settings in a database table, and on an existing install &lt;strong&gt;those rows win over environment variables&lt;/strong&gt;. You can set &lt;code&gt;ENABLE_WEB_SEARCH&lt;/code&gt; in your service file all day; if a config row already exists, your variable is politely ignored. The reliable fix is to set it in the running app’s &lt;strong&gt;Admin Panel → Settings → Web Search&lt;/strong&gt;, which writes the database directly. Set the engine to &lt;code&gt;searxng&lt;/code&gt; and paste the query URL there.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Verify against the right surface&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Don’t confirm your settings by hitting the unauthenticated &lt;code&gt;/api/config&lt;/code&gt; endpoint — it only exposes auth-related flags, not the web-search config. I wasted real time “verifying” a setting that endpoint never reports. Check it in the admin panel instead.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h3 id=&quot;trap-2-the-model-needs-the-right-calling-mode-or-search-silently-no-ops&quot;&gt;Trap 2: the model needs the right calling mode, or search silently no-ops&lt;/h3&gt;
&lt;p&gt;This is the subtle one. In the version I ran, Open WebUI only runs its forced web-search step for a model whose calling mode is set to &lt;strong&gt;legacy&lt;/strong&gt; function calling. The default (native) path instead expects the model to &lt;em&gt;decide on its own&lt;/em&gt; to call a search tool — which small local models essentially never do. And a freshly pulled Ollama model has no per-model config entry at all, so the setting is simply absent, and search is skipped for everyone with no error.&lt;/p&gt;
&lt;p&gt;I only found this by reading the backend source for the exact version I was running, which is the honest lesson here: when a feature silently does nothing, read what the running code actually checks. The fix is to give each chat model a config entry setting its function-calling mode to legacy, via the model editor.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 300&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: two paths for a web-search request. With native function-calling the small local model never calls the search tool, so the search is silently skipped. With legacy function-calling set, Open WebUI forces the search and a cited answer comes back.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;360&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Same globe toggle, two very different outcomes&lt;/text&gt;&lt;rect x=&quot;40&quot; y=&quot;60&quot; width=&quot;150&quot; height=&quot;46&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;115&quot; y=&quot;82&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;globe ON,&lt;/text&gt;&lt;text x=&quot;115&quot; y=&quot;98&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;native calling (default)&lt;/text&gt;&lt;line x1=&quot;190&quot; y1=&quot;83&quot; x2=&quot;300&quot; y2=&quot;83&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;300&quot; y=&quot;60&quot; width=&quot;180&quot; height=&quot;46&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;390&quot; y=&quot;82&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;model waits to call a tool&lt;/text&gt;&lt;text x=&quot;390&quot; y=&quot;98&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;…but never does&lt;/text&gt;&lt;line x1=&quot;480&quot; y1=&quot;83&quot; x2=&quot;560&quot; y2=&quot;83&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;560&quot; y=&quot;60&quot; width=&quot;130&quot; height=&quot;46&quot; rx=&quot;9&quot; fill=&quot;#241512&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;625&quot; y=&quot;80&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;no search&lt;/text&gt;&lt;text x=&quot;625&quot; y=&quot;96&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;no error, no clue&lt;/text&gt;&lt;rect x=&quot;40&quot; y=&quot;200&quot; width=&quot;150&quot; height=&quot;46&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;115&quot; y=&quot;222&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;globe ON,&lt;/text&gt;&lt;text x=&quot;115&quot; y=&quot;238&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;legacy calling set&lt;/text&gt;&lt;line x1=&quot;190&quot; y1=&quot;223&quot; x2=&quot;300&quot; y2=&quot;223&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;2&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;300&quot; y=&quot;200&quot; width=&quot;180&quot; height=&quot;46&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;390&quot; y=&quot;222&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;OWUI forces the search&lt;/text&gt;&lt;text x=&quot;390&quot; y=&quot;238&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;fetch + embed pages&lt;/text&gt;&lt;line x1=&quot;480&quot; y1=&quot;223&quot; x2=&quot;560&quot; y2=&quot;223&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;2&quot;&gt;&lt;/line&gt;&lt;rect x=&quot;560&quot; y=&quot;200&quot; width=&quot;130&quot; height=&quot;46&quot; rx=&quot;9&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;625&quot; y=&quot;220&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;cited answer&lt;/text&gt;&lt;text x=&quot;625&quot; y=&quot;236&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;[1][2][3]&lt;/text&gt;&lt;circle cx=&quot;192&quot; cy=&quot;223&quot; r=&quot;4.5&quot; fill=&quot;#4FAE96&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;192;300;480;560&quot; keyTimes=&quot;0;0.4;0.75;1&quot; dur=&quot;2.4s&quot; begin=&quot;0.5s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;/svg&gt;
&lt;h3 id=&quot;trap-3-leave-search-query-generation-off-for-small-models&quot;&gt;Trap 3: leave “search query generation” off for small models&lt;/h3&gt;
&lt;p&gt;Open WebUI has an option to let a model &lt;em&gt;rewrite&lt;/em&gt; your prompt into a search query before searching. It sounds smart. With small local models it’s a disaster: they emit malformed or empty queries, and Open WebUI then &lt;strong&gt;silently skips the search&lt;/strong&gt; and answers from stale memory — sometimes with a confident, wrong result. I re-enabled it deliberately once just to confirm, and got zero sources and a hallucinated answer. Leave search-query generation &lt;strong&gt;off&lt;/strong&gt;; the raw prompt is a perfectly good search query.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-speed-reality-so-youre-not-surprised&quot;&gt;The speed reality (so you’re not surprised)&lt;/h2&gt;
&lt;p&gt;When it works, the first thing you’ll notice is that web-search answers are &lt;em&gt;slow&lt;/em&gt; on CPU-only hardware. That’s expected, and it’s mostly not the model’s fault. Turning your prompt into an answer breaks into: search (fast), &lt;strong&gt;fetch several web pages and embed their text&lt;/strong&gt; (slow), then generate the reply (medium).&lt;/p&gt;
&lt;p&gt;On my GPU-less nodes, a small &lt;code&gt;qwen2.5:3b&lt;/code&gt; model gave plain chat replies in roughly 15–30 seconds but took around 80 seconds &lt;em&gt;with&lt;/em&gt; web search — because fetching and embedding the pages dominates, not the thinking. A 7B model on the same CPU was simply too slow to enjoy. Two honest takeaways: use a &lt;strong&gt;small model&lt;/strong&gt; for interactive web search on CPU (I &lt;a href=&quot;https://peira.dev/articles/best-small-llm-cpu-homelab/&quot;&gt;bench-tested seven small models on a GPU-less node&lt;/a&gt; to pick one), and know that a &lt;strong&gt;GPU&lt;/strong&gt; is the real fix if you want it snappy. See &lt;a href=&quot;https://peira.dev/articles/ollama-lxc-cluster/&quot;&gt;Run an Ollama Cluster in LXC&lt;/a&gt; for how the inference side is laid out.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;dont-let-it-fail-silently&quot;&gt;Don’t let it fail silently&lt;/h2&gt;
&lt;p&gt;There’s a nasty property to this setup: if SearXNG goes down, Open WebUI’s citations just quietly stop — the chat still answers, just without sources, and you might not notice for weeks. That’s exactly the kind of silent failure worth a &lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;monitoring&lt;/a&gt; check. I point a simple black-box HTTP probe at the SearXNG URL and alert if it stops returning &lt;code&gt;200&lt;/code&gt;, so a dead search engine pages me instead of degrading in silence. The &lt;a href=&quot;https://peira.dev/playbooks/searxng-owui-websearch/&quot;&gt;companion playbook&lt;/a&gt; includes the deploy steps end to end.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;point-local-ai-at-bookmarks&quot;&gt;Point local AI at bookmarks&lt;/h2&gt;
&lt;p&gt;You’ve now got a local model that can see today, with citations, and without leaking a single question to a search vendor. Next in the series, we point that same local-AI muscle at your bookmarks: &lt;a href=&quot;https://peira.dev/articles/karakeep-local-ai-bookmarks/&quot;&gt;Karakeep&lt;/a&gt; auto-tags every link you save using a local model, so your bookmark graveyard becomes something you can actually find things in.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/karakeep-local-ai-bookmarks/&quot;&gt;Self-Hosted Bookmarks That Tag Themselves With Local AI&lt;/a&gt; — the next post in this series: point the same local model at your saved links.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/paperless-ngx-document-archive/&quot;&gt;Paperless-ngx: A Searchable Archive for Every Document&lt;/a&gt; — same self-hosting instinct, applied to every PDF you own.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/changedetection-watch-web-pages/&quot;&gt;Watch Any Web Page for Changes With changedetection.io&lt;/a&gt; — let a watcher poll pages so you don’t have to search for the same update twice.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/ollama-lxc-cluster/&quot;&gt;Run an Ollama Cluster in Proxmox LXC&lt;/a&gt; — the local inference layer this post assumes you already have.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/best-small-llm-cpu-homelab/&quot;&gt;The Best Small LLM for a CPU-Only Homelab Node&lt;/a&gt; — pick the model that answers these searches best on CPU.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/open-webui-advanced/&quot;&gt;Open WebUI: Advanced Setup&lt;/a&gt; — the chat front-end we wired SearXNG into, configured properly.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;What Is Prometheus?&lt;/a&gt; — the monitoring that catches a silently-dead search engine.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-create-lxc/&quot;&gt;Create Your First Proxmox LXC Container&lt;/a&gt; — where SearXNG lives in this build.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>ai</category><category>ollama</category><category>self-hosted</category></item><item><title>SMART Disk-Health Trending for Your Whole Fleet</title><link>https://peira.dev/articles/smart-disk-health-monitoring/</link><guid isPermaLink="true">https://peira.dev/articles/smart-disk-health-monitoring/</guid><description>Trend SMART disk health across your Proxmox nodes and NAS bays in Grafana, with class-split temperature alerts, so a dying drive warns you weeks ahead.</description><pubDate>Fri, 04 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A hard drive rarely dies without warning — it &lt;em&gt;whispers&lt;/em&gt; first. Reallocated sectors tick up from zero. Pending sectors appear. An SSD’s wear-level creeps toward its rated limit. All of this is recorded, right now, inside every drive you own. The tragedy is that if nothing is &lt;em&gt;reading&lt;/em&gt; those numbers, the first sign of trouble you get is a dead array and a restore from backup. The drive warned you; nobody was listening.&lt;/p&gt;
&lt;p&gt;This is the finale of the &lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;Self-Host the Apps You Actually Use&lt;/a&gt; series, and it’s the one that protects everything else. We’ve stood up &lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;private AI search&lt;/a&gt;, &lt;a href=&quot;https://peira.dev/articles/karakeep-local-ai-bookmarks/&quot;&gt;self-tagging bookmarks&lt;/a&gt;, an &lt;a href=&quot;https://peira.dev/articles/paperless-ngx-document-archive/&quot;&gt;OCR’d document archive&lt;/a&gt;, and a &lt;a href=&quot;https://peira.dev/articles/changedetection-watch-web-pages/&quot;&gt;tireless page-watcher&lt;/a&gt; — all of it living on disks. Let’s make those disks tell us when they’re getting sick, weeks ahead, so a failing drive is a planned swap instead of a 2 a.m. emergency.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 300&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: a drive&apos;s reallocated-sector count stays flat for weeks then begins climbing; an alert threshold is crossed well before the drive fails, giving early warning.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;360&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;The drive warns for weeks — if something is trending it&lt;/text&gt;&lt;line x1=&quot;70&quot; y1=&quot;240&quot; x2=&quot;670&quot; y2=&quot;240&quot; stroke=&quot;#2A3A2C&quot; stroke-width=&quot;2&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;70&quot; y1=&quot;60&quot; x2=&quot;70&quot; y2=&quot;240&quot; stroke=&quot;#2A3A2C&quot; stroke-width=&quot;2&quot;&gt;&lt;/line&gt;&lt;text x=&quot;60&quot; y=&quot;70&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;sectors&lt;/text&gt;&lt;text x=&quot;360&quot; y=&quot;262&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;time →&lt;/text&gt;&lt;line x1=&quot;70&quot; y1=&quot;120&quot; x2=&quot;670&quot; y2=&quot;120&quot; stroke=&quot;#E0A83F&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;6 4&quot;&gt;&lt;/line&gt;&lt;text x=&quot;668&quot; y=&quot;114&quot; text-anchor=&quot;end&quot; fill=&quot;#E0A83F&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;alert threshold&lt;/text&gt;&lt;polyline points=&quot;70,235 250,234 380,232 470,215 540,180 600,120 660,70&quot; fill=&quot;none&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;3&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot;&gt;&lt;animate attributeName=&quot;stroke&quot; values=&quot;#7BB26A;#7BB26A;#C8564A&quot; keyTimes=&quot;0;0.6;1&quot; dur=&quot;2.5s&quot; begin=&quot;0s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/polyline&gt;&lt;circle cx=&quot;600&quot; cy=&quot;120&quot; r=&quot;6&quot; fill=&quot;#C8564A&quot; opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.5s&quot; begin=&quot;2.2s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;text x=&quot;600&quot; y=&quot;104&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;page fires&lt;/text&gt;&lt;text x=&quot;662&quot; y=&quot;58&quot; text-anchor=&quot;end&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;…failure later&lt;/text&gt;&lt;text x=&quot;360&quot; y=&quot;286&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Flat for weeks, then it climbs. The alert crosses long before the drive quits.&lt;/text&gt;&lt;/svg&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Hostnames, ports, and thresholds below are examples. Replace &lt;strong&gt;&lt;code&gt;10.0.0.70&lt;/code&gt;&lt;/strong&gt; with your Pushgateway’s real address, node names like &lt;strong&gt;&lt;code&gt;node1&lt;/code&gt;&lt;/strong&gt; with your own, and — importantly — &lt;strong&gt;calibrate the temperature thresholds to your own drives’ measured baselines&lt;/strong&gt; before arming them. If a value looks specific to one machine, it’s a placeholder to change — not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-smart-is-briefly&quot;&gt;What SMART is, briefly&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;SMART&lt;/strong&gt; (Self-Monitoring, Analysis and Reporting Technology) is a health-reporting system baked into virtually every modern drive. It exposes counters and attributes you can read at any time: reallocated sector count, pending sectors, power-on hours, temperature, and — for SSDs — a wear-level indicator and NVMe critical-warning flags. The &lt;a href=&quot;https://www.smartmontools.org/&quot;&gt;&lt;code&gt;smartmontools&lt;/code&gt;&lt;/a&gt; package’s &lt;code&gt;smartctl&lt;/code&gt; command is the standard way to read them on Linux.&lt;/p&gt;
&lt;p&gt;The single most useful thing about SMART is that many of these numbers &lt;strong&gt;change gradually&lt;/strong&gt;. A drive that’s developing bad sectors doesn’t usually leap from perfect to dead; the reallocated-sector count climbs. If you record that number over time, the climb &lt;em&gt;is&lt;/em&gt; your early warning. That’s the whole game: don’t just check SMART once, &lt;strong&gt;trend&lt;/strong&gt; it.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;put-an-exporter-on-every-node&quot;&gt;Put an exporter on every node&lt;/h2&gt;
&lt;p&gt;To trend SMART in &lt;a href=&quot;https://peira.dev/articles/what-is-grafana/&quot;&gt;Grafana&lt;/a&gt;, you need something to turn &lt;code&gt;smartctl&lt;/code&gt; output into &lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;Prometheus&lt;/a&gt; metrics. That’s exactly what the &lt;a href=&quot;https://github.com/prometheus-community/smartctl_exporter&quot;&gt;prometheus-community &lt;code&gt;smartctl_exporter&lt;/code&gt;&lt;/a&gt; does — it runs &lt;code&gt;smartctl&lt;/code&gt; and publishes the results on port &lt;code&gt;9633&lt;/code&gt;.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Install the exporter on each host&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;10 min per host&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Grab the release binary (verify its checksum — always, for anything that reads your hardware), drop it in &lt;code&gt;/usr/local/bin&lt;/code&gt;, and run it under systemd. It auto-discovers your drives.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;smartctl_exporter under systemd&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
# install smartmontools (provides smartctl), then the exporter binary
apt-get install -y smartmontools

# after placing the verified binary at /usr/local/bin/smartctl_exporter:
systemctl enable --now smartctl-exporter
# metrics now on :9633 -&amp;gt; curl http://127.0.0.1:9633/metrics | grep smartctl_
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Add a scrape job&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Point Prometheus at each node’s exporter. Give every target a &lt;code&gt;host&lt;/code&gt; label so you can tell disks apart in the dashboard.&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;prometheus.yml — the smart scrape job&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
scrape_configs:
  - job_name: smart
    scrape_interval: 60s
    static_configs:
      - targets: [&amp;quot;node1:9633&amp;quot;]
        labels: { host: node1 }
      - targets: [&amp;quot;node2:9633&amp;quot;]
        labels: { host: node2 }
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;That covers every host you can install software on. Which leaves the interesting one.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-nas-is-the-hard-part&quot;&gt;The NAS is the hard part&lt;/h2&gt;
&lt;p&gt;My NAS runs a locked-down appliance OS — I can’t just drop a binary and a systemd unit on it. And I didn’t want to poke a new hole in the firewall so Prometheus could &lt;em&gt;scrape&lt;/em&gt; it. The clean answer is to flip the direction: let the NAS &lt;strong&gt;push&lt;/strong&gt; its metrics out, which it can already do, instead of waiting to be scraped.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 300&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: Proxmox nodes are scraped directly by Prometheus on port 9633, while the NAS runs the exporter in a localhost-only container and a cron job pushes its metrics to a Pushgateway, which Prometheus scrapes. Both land in one Grafana dashboard.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;360&quot; y=&quot;28&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Scrape what you can; let the NAS push the rest&lt;/text&gt;&lt;rect x=&quot;30&quot; y=&quot;60&quot; width=&quot;150&quot; height=&quot;60&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;105&quot; y=&quot;86&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Proxmox nodes&lt;/text&gt;&lt;text x=&quot;105&quot; y=&quot;104&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;exporter :9633&lt;/text&gt;&lt;rect x=&quot;30&quot; y=&quot;180&quot; width=&quot;150&quot; height=&quot;76&quot; rx=&quot;9&quot; fill=&quot;#253727&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;105&quot; y=&quot;204&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;NAS&lt;/text&gt;&lt;text x=&quot;105&quot; y=&quot;222&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;exporter (localhost)&lt;/text&gt;&lt;text x=&quot;105&quot; y=&quot;238&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;+ cron push&lt;/text&gt;&lt;rect x=&quot;270&quot; y=&quot;185&quot; width=&quot;150&quot; height=&quot;66&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;345&quot; y=&quot;212&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Pushgateway&lt;/text&gt;&lt;text x=&quot;345&quot; y=&quot;230&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;job nas_smart&lt;/text&gt;&lt;rect x=&quot;470&quot; y=&quot;120&quot; width=&quot;150&quot; height=&quot;76&quot; rx=&quot;9&quot; fill=&quot;#223224&quot; stroke=&quot;#E0A83F&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;545&quot; y=&quot;150&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;Prometheus&lt;/text&gt;&lt;text x=&quot;545&quot; y=&quot;170&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;one metric name,&lt;/text&gt;&lt;text x=&quot;545&quot; y=&quot;184&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;both sources&lt;/text&gt;&lt;rect x=&quot;470&quot; y=&quot;235&quot; width=&quot;150&quot; height=&quot;46&quot; rx=&quot;9&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;545&quot; y=&quot;263&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;one dashboard&lt;/text&gt;&lt;line x1=&quot;180&quot; y1=&quot;90&quot; x2=&quot;470&quot; y2=&quot;150&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;text x=&quot;300&quot; y=&quot;112&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;scrape&lt;/text&gt;&lt;line x1=&quot;180&quot; y1=&quot;218&quot; x2=&quot;270&quot; y2=&quot;218&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;text x=&quot;225&quot; y=&quot;210&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;9&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;push&lt;/text&gt;&lt;line x1=&quot;420&quot; y1=&quot;205&quot; x2=&quot;470&quot; y2=&quot;175&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;545&quot; y1=&quot;196&quot; x2=&quot;545&quot; y2=&quot;235&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;180&quot; cy=&quot;218&quot; r=&quot;4&quot; fill=&quot;#C9A24A&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;180;270&quot; keyTimes=&quot;0;1&quot; dur=&quot;1s&quot; begin=&quot;0.3s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;/svg&gt;
&lt;p&gt;The recipe: run the same &lt;code&gt;smartctl_exporter&lt;/code&gt; on the NAS as a &lt;strong&gt;privileged container bound to &lt;code&gt;127.0.0.1&lt;/code&gt; only&lt;/strong&gt; (privileged so it can see the physical drives; localhost-only so it’s not exposed), then a small &lt;strong&gt;cron job every few minutes&lt;/strong&gt; filters the &lt;code&gt;smartctl_*&lt;/code&gt; metrics and POSTs them to a &lt;a href=&quot;https://github.com/prometheus/pushgateway&quot;&gt;Prometheus Pushgateway&lt;/a&gt;. The &lt;a href=&quot;https://prometheus.io/docs/practices/pushing/&quot;&gt;Pushgateway is designed&lt;/a&gt; for exactly this — jobs and agents that can’t be scraped directly, such as something behind a firewall or an appliance you can’t open up. (For a long-running service you fully control, Prometheus remote-write is the more “correct” tool; for a periodic cron relay off an appliance, the Pushgateway is the pragmatic fit.)&lt;/p&gt;
&lt;p&gt;The payoff of using the &lt;strong&gt;same exporter&lt;/strong&gt; on both sides: the metric names are identical, so your single Grafana dashboard and one set of alert rules cover the scraped node drives and the pushed NAS bays without any special-casing.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;alert-on-the-numbers-that-matter--carefully&quot;&gt;Alert on the numbers that matter — carefully&lt;/h2&gt;
&lt;p&gt;With metrics flowing, the alerts are where the value lands. The ones worth having:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;SMART overall status failed&lt;/strong&gt; — &lt;code&gt;smartctl_device_smart_status&lt;/code&gt; reporting bad. Critical; this is the drive itself saying it’s unwell.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reallocated / pending sectors rising&lt;/strong&gt; — alert on a delta over 24 hours, not an absolute value, so a drive that’s &lt;em&gt;newly&lt;/em&gt; growing bad sectors pages you.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;NVMe critical warning / media errors&lt;/strong&gt; — the SSD equivalent signals.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Wear level past a threshold&lt;/strong&gt; — for SSDs, warn as the rated endurance is used up (say, past 90%).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A stale NAS push&lt;/strong&gt; — if the pushed metrics stop arriving (say, no update for 30 minutes), page — otherwise a dead relay looks identical to healthy silence.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And the one that will bite you if you’re not careful:&lt;/p&gt;
&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Split temperature thresholds by drive class, and calibrate first&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;I nearly armed a single “disk over 60°C” rule. Good thing I checked baselines first: one fanless NVMe SSD idles right around &lt;strong&gt;61°C&lt;/strong&gt; — completely healthy for that drive — and a universal 60°C rule would have paged within the hour, every hour. The fix is to split the threshold by device class (for example &lt;strong&gt;HDD &amp;gt; 60°C, NVMe &amp;gt; 70°C&lt;/strong&gt;) after looking at what your own drives actually run. One &lt;code&gt;sort_desc(temperature)&lt;/code&gt; query turns a guessed default into an informed decision.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;two-gotchas-that-look-like-bugs-but-arent&quot;&gt;Two gotchas that look like bugs but aren’t&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;A USB-attached drive showing no SMART is correct, not broken.&lt;/strong&gt; Many USB-to-SATA bridge chips don’t pass SMART commands through, so a drive in a USB enclosure may report nothing. When my discovery skipped one such device, that was the &lt;em&gt;right&lt;/em&gt; behavior — it wasn’t a real monitored bay. Don’t chase it; just know why it’s absent.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Grafana’s file-based alerting won’t delete a rule you removed from the file.&lt;/strong&gt; When I replaced that universal temperature rule with the two class-split ones, the old rule stayed &lt;em&gt;armed&lt;/em&gt; alongside the new pair — dropping it from the provisioning file doesn’t retire it. You need an explicit &lt;code&gt;deleteRules&lt;/code&gt; stanza and a restart. The tell is the rule count: if you expect 8 and Grafana shows 9, a zombie rule is still live.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-series-wrapped&quot;&gt;The series, wrapped&lt;/h2&gt;
&lt;p&gt;That’s the set. Five services that each earn their keep: a &lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;private search engine&lt;/a&gt; so your local AI can see today, &lt;a href=&quot;https://peira.dev/articles/karakeep-local-ai-bookmarks/&quot;&gt;bookmarks that tag themselves&lt;/a&gt;, a &lt;a href=&quot;https://peira.dev/articles/paperless-ngx-document-archive/&quot;&gt;document archive you can actually search&lt;/a&gt;, a &lt;a href=&quot;https://peira.dev/articles/changedetection-watch-web-pages/&quot;&gt;watcher for the pages you keep forgetting&lt;/a&gt;, and now SMART trending so the disks under all of it warn you before they fail. The &lt;a href=&quot;https://peira.dev/playbooks/smart-disk-health-homelab/&quot;&gt;companion playbook&lt;/a&gt; has the full deploy for both the scraped nodes and the pushed NAS bays. Build the ones that solve a problem you actually have — that’s the whole point of a homelab.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/changedetection-watch-web-pages/&quot;&gt;Watch Any Web Page for Changes With changedetection.io&lt;/a&gt; — the previous post in the series.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/searxng-owui-private-web-search/&quot;&gt;Give Your Local AI Private Web Search With SearXNG&lt;/a&gt; — where the series began.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/node-exporter-grafana-proxmox/&quot;&gt;Node Exporter + Grafana for Proxmox&lt;/a&gt; — the sibling exporter for CPU/RAM/disk-usage metrics.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-prometheus/&quot;&gt;What Is Prometheus?&lt;/a&gt; — the metrics store this all feeds into.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-grafana/&quot;&gt;What Is Grafana?&lt;/a&gt; — where the disk-health dashboard lives.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-backup-server/&quot;&gt;Deploy a Proxmox Backup Server&lt;/a&gt; — the backups a dying disk makes you very glad you had.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/use-a-nas-with-your-homelab/&quot;&gt;Use a NAS With Your Homelab&lt;/a&gt; — the multi-bay storage this monitors most closely.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>monitoring</category><category>storage</category></item><item><title>How and When to Use Kubernetes in a Homelab</title><link>https://peira.dev/articles/how-and-when-kubernetes-homelab/</link><guid isPermaLink="true">https://peira.dev/articles/how-and-when-kubernetes-homelab/</guid><description>Install k3s in one command, deploy your first app, learn Helm basics — and get an honest read on when Kubernetes is worth it at home and when it&apos;s overkill.</description><pubDate>Wed, 02 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;In the &lt;a href=&quot;https://peira.dev/articles/what-is-kubernetes/&quot;&gt;overview post&lt;/a&gt; I argued that most homelabs don’t need &lt;a href=&quot;https://kubernetes.io&quot;&gt;Kubernetes&lt;/a&gt; — and I meant it. So this guide starts with the honest question of &lt;em&gt;whether&lt;/em&gt; you should, and only then shows you how. The how is genuinely one command; the whether is where the real decision lives.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;This guide uses placeholders. Swap them for yours before you paste:&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;10.0.0.30&lt;/code&gt;&lt;/strong&gt; — the IP of your k3s server node.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;YOUR_NODE_TOKEN&lt;/code&gt;&lt;/strong&gt; — the join token you’ll read off the server in Task 4.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Rule of thumb: if a value looks specific to one machine, it’s a placeholder to change — not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;when-its-worth-it--and-when-it-isnt&quot;&gt;When it’s worth it — and when it isn’t&lt;/h2&gt;
&lt;p&gt;Before you install anything, sit honestly in one of these two columns:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Reach for &lt;a href=&quot;https://peira.dev/articles/first-docker-compose-stack/&quot;&gt;Docker Compose&lt;/a&gt; instead if&lt;/strong&gt; you run your services on one machine and it’s working. Compose is simpler, easier to reason about, and there’s no shame in it powering a great homelab for years.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Reach for Kubernetes if&lt;/strong&gt; you want self-healing and high availability across &lt;em&gt;several&lt;/em&gt; machines, you’ve outgrown a single host, or — the most common honest reason — &lt;strong&gt;you want to learn the thing that runs most of the cloud.&lt;/strong&gt; Learning is a completely valid reason; just name it as the reason, so you’re not surprised by the complexity you signed up for.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you landed in the second column, here’s the good news about staying light.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;what-makes-k3s-the-right-starting-point&quot;&gt;What makes k3s the right starting point&lt;/h2&gt;
&lt;p&gt;You don’t begin with upstream Kubernetes and its pile of separately-installed components. You begin with &lt;strong&gt;&lt;a href=&quot;https://k3s.io&quot;&gt;k3s&lt;/a&gt;&lt;/strong&gt;: a fully compliant Kubernetes distribution shipped as a single binary under 100 MB, using about half the memory of standard Kubernetes. Crucially, it &lt;em&gt;bundles&lt;/em&gt; the pieces a cluster needs so you’re not wiring them together yourself:&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 330&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: k3s packages containerd, Flannel CNI, CoreDNS, Traefik ingress, ServiceLB, and local-path storage together into a single binary under 100 MB.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;360&quot; y=&quot;32&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Everything a cluster needs, in one install&lt;/text&gt;&lt;rect x=&quot;250&quot; y=&quot;60&quot; width=&quot;220&quot; height=&quot;228&quot; rx=&quot;14&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;2&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;86&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;14&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;700&quot;&gt;k3s binary&lt;/text&gt;&lt;text x=&quot;360&quot; y=&quot;104&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;under 100 MB&lt;/text&gt;&lt;g opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.35s&quot; begin=&quot;0.4s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;rect x=&quot;266&quot; y=&quot;122&quot; width=&quot;188&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;137&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;containerd — runtime&lt;/text&gt;&lt;/g&gt;&lt;g opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.35s&quot; begin=&quot;0.75s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;rect x=&quot;266&quot; y=&quot;150&quot; width=&quot;188&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;165&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Flannel — CNI networking&lt;/text&gt;&lt;/g&gt;&lt;g opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.35s&quot; begin=&quot;1.1s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;rect x=&quot;266&quot; y=&quot;178&quot; width=&quot;188&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;193&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;CoreDNS — cluster DNS&lt;/text&gt;&lt;/g&gt;&lt;g opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.35s&quot; begin=&quot;1.4499999999999997s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;rect x=&quot;266&quot; y=&quot;206&quot; width=&quot;188&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;221&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Traefik — ingress&lt;/text&gt;&lt;/g&gt;&lt;g opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.35s&quot; begin=&quot;1.7999999999999998s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;rect x=&quot;266&quot; y=&quot;234&quot; width=&quot;188&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;249&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;ServiceLB — load balancer&lt;/text&gt;&lt;/g&gt;&lt;g opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.35s&quot; begin=&quot;2.15s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;rect x=&quot;266&quot; y=&quot;262&quot; width=&quot;188&quot; height=&quot;22&quot; rx=&quot;5&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;360&quot; y=&quot;277&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10.5&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;local-path — storage&lt;/text&gt;&lt;/g&gt;&lt;text x=&quot;360&quot; y=&quot;314&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Upstream Kubernetes leaves most of these for you to choose and wire up yourself.&lt;/text&gt;&lt;/svg&gt;
&lt;p&gt;Those defaults — containerd, Flannel, CoreDNS, Traefik, ServiceLB, and local-path storage — are exactly the choices a beginner would otherwise agonize over. k3s makes sensible ones for you, and you can swap any of them later.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-1-install-k3s&quot;&gt;Task 1: Install k3s&lt;/h2&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Run the one-line installer&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;On the machine you want as your server node — a mini PC, a VM, or an &lt;a href=&quot;https://peira.dev/articles/proxmox-vm-vs-lxc/&quot;&gt;LXC container&lt;/a&gt; with a couple of gigabytes of RAM — run the official installer:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Install k3s (server node)&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
curl -sfL https://get.k3s.io | sh -
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;That single command installs k3s, starts it as a system service, and brings up a complete single-node cluster. When it finishes, you already have Kubernetes running.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Talk to your cluster&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;k3s writes a kubeconfig — the file that tells &lt;code&gt;kubectl&lt;/code&gt; how to reach your cluster — to &lt;code&gt;/etc/rancher/k3s/k3s.yaml&lt;/code&gt;, and installs its own bundled &lt;code&gt;kubectl&lt;/code&gt;. Check the node is ready:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Confirm the cluster is up&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
sudo k3s kubectl get nodes
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;You should see one node with status &lt;code&gt;Ready&lt;/code&gt;. That’s a real, compliant Kubernetes cluster answering you.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-2-deploy-your-first-app&quot;&gt;Task 2: Deploy your first app&lt;/h2&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Create a Deployment&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Remember from the overview: you don’t create pods directly, you declare a Deployment and let Kubernetes manage the pods. Create one from an image:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Run three replicas of a test app&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
sudo k3s kubectl create deployment web --image=nginx
sudo k3s kubectl scale deployment web --replicas=3
sudo k3s kubectl get pods
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Watch what happens: three pods appear. Delete one with &lt;code&gt;kubectl delete pod &amp;lt;name&amp;gt;&lt;/code&gt; and a replacement takes its place within seconds — the reconciliation loop from the overview, happening in front of you. That self-healing is the entire reason to be here.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-3-install-real-apps-with-helm&quot;&gt;Task 3: Install real apps with Helm&lt;/h2&gt;
&lt;p&gt;Typing out manifests by hand gets old fast. &lt;strong&gt;&lt;a href=&quot;https://helm.sh&quot;&gt;Helm&lt;/a&gt;&lt;/strong&gt; is Kubernetes’ package manager: it installs applications from pre-built packages called &lt;strong&gt;charts&lt;/strong&gt;, turning a complex deployment into one command. A chart lives in a &lt;strong&gt;repository&lt;/strong&gt;; installing it creates a named &lt;strong&gt;release&lt;/strong&gt; on your cluster.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Add a repo and install a chart&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;4 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;The pattern is always the same — add a repository, refresh the index, then install:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Helm: add, update, install&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
helm repo add podinfo https://stefanprodan.github.io/podinfo
helm repo update
helm install my-demo podinfo/podinfo
helm list
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;That installs &lt;a href=&quot;https://github.com/stefanprodan/podinfo&quot;&gt;podinfo&lt;/a&gt;, a tiny demo app made for exactly this — a safe first chart to prove the workflow. &lt;code&gt;helm list&lt;/code&gt; shows your releases; &lt;code&gt;helm uninstall my-demo&lt;/code&gt; removes one cleanly. From here, deploying most self-hosted apps is a matter of finding their chart.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Helm isn&amp;#39;t mandatory on day one&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;You can go a long way with plain &lt;code&gt;kubectl apply -f app.yaml&lt;/code&gt; manifests, and reading a few by hand teaches you what Helm is doing under the covers. Reach for Helm when the manifests get repetitive — not before you understand them.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-4-grow-to-more-than-one-node-optional&quot;&gt;Task 4: Grow to more than one node (optional)&lt;/h2&gt;
&lt;p&gt;A single node is a perfectly good place to stay. But the moment you want workloads to schedule across several machines, you join &lt;strong&gt;agent&lt;/strong&gt; nodes to your server.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Read the join token off the server&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;1 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;On the server node&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
sudo cat /var/lib/rancher/k3s/server/node-token
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Join a second machine&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;On the new machine, run the same installer but point it at the server’s URL and that token:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;On the agent node&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
curl -sfL https://get.k3s.io | K3S_URL=https://10.0.0.30:6443 K3S_TOKEN=YOUR_NODE_TOKEN sh -
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Back on the server, &lt;code&gt;sudo k3s kubectl get nodes&lt;/code&gt; now lists both. Kubernetes will start scheduling pods across them — you’ve turned two boxes into one pool.&lt;/p&gt;&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Note&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Each machine needs a unique hostname. If two nodes share one, pass &lt;code&gt;K3S_NODE_NAME=some-unique-name&lt;/code&gt; on the install line so the cluster can tell them apart.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;where-to-go-next&quot;&gt;Where to go next&lt;/h2&gt;
&lt;p&gt;You’ve got a real cluster, a self-healing app, and Helm for everything else. The honest next step is to &lt;em&gt;use&lt;/em&gt; it for something you’d actually run — then decide, with real experience behind you, whether Kubernetes has earned a permanent place in your lab or taught you what you came to learn. Either outcome is a win.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-kubernetes/&quot;&gt;What Is Kubernetes? A Plain-English Homelab Guide&lt;/a&gt; — the concepts (pods, nodes, control plane, services, ingress) this guide puts into practice.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/playbooks/deploy-k3s-single-node/&quot;&gt;Deploy k3s on a single node (playbook)&lt;/a&gt; — the copy-paste version of Task 1.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/playbooks/add-k3s-worker-node/&quot;&gt;Add a worker node to a k3s cluster (playbook)&lt;/a&gt; — the copy-paste version of Task 4.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/playbooks/install-helm-deploy-chart/&quot;&gt;Install Helm and deploy your first chart (playbook)&lt;/a&gt; — the copy-paste version of Task 3.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/first-docker-compose-stack/&quot;&gt;Your First Docker Compose Stack&lt;/a&gt; — the simpler alternative that’s the right call for most homelabs.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-vm-vs-lxc/&quot;&gt;Proxmox VM vs LXC: Which to Use&lt;/a&gt; — choosing what your k3s nodes run on.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-traefik/&quot;&gt;What Is Traefik? The Reverse Proxy, Explained&lt;/a&gt; — the ingress controller k3s ships by default.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-cluster-setup/&quot;&gt;Build a Proxmox Cluster&lt;/a&gt; — pooling machines at the hypervisor layer, next to pooling them with Kubernetes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sources: &lt;a href=&quot;https://kubernetes.io/docs/concepts/overview/components/&quot;&gt;Kubernetes documentation&lt;/a&gt;, &lt;a href=&quot;https://docs.k3s.io/&quot;&gt;k3s documentation&lt;/a&gt;, &lt;a href=&quot;https://helm.sh/docs/intro/using_helm/&quot;&gt;Helm documentation&lt;/a&gt;.&lt;/p&gt;</content:encoded><category>self-hosted</category><category>infrastructure</category></item><item><title>What Is Kubernetes? A Plain-English Homelab Guide</title><link>https://peira.dev/articles/what-is-kubernetes/</link><guid isPermaLink="true">https://peira.dev/articles/what-is-kubernetes/</guid><description>Kubernetes explained without the buzzwords: pods, nodes, the control plane, services, and ingress — what each one actually does, for homelabbers who&apos;ve only used Docker.</description><pubDate>Wed, 02 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;You’ve been running containers for a while. &lt;a href=&quot;https://peira.dev/articles/first-docker-compose-stack/&quot;&gt;Docker Compose&lt;/a&gt; brings your stack up, and it’s been fine. Then one night a container dies and stays dead until you notice. Or one machine fills up and you wish the load could spill onto another. Or you just keep hearing the word &lt;em&gt;Kubernetes&lt;/em&gt; and want to know what everyone’s on about. That’s what this post is for.&lt;/p&gt;
&lt;p&gt;I’ll explain &lt;a href=&quot;https://kubernetes.io&quot;&gt;Kubernetes&lt;/a&gt; — “K8s” for short — in plain English, no cloud-architect vocabulary. By the end you’ll know what a pod, a node, the control plane, a service, and an ingress actually are, and whether any of it belongs in your homelab.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-one-idea-underneath-all-of-it&quot;&gt;The one idea underneath all of it&lt;/h2&gt;
&lt;p&gt;Here’s the mental model that makes everything else click: &lt;strong&gt;Kubernetes is declarative.&lt;/strong&gt; You don’t tell it “start this container.” You tell it “I want three copies of this app running, always” — and then Kubernetes takes responsibility for making that true and &lt;em&gt;keeping&lt;/em&gt; it true. A container crashes? It starts another. A machine dies? It reschedules that machine’s work elsewhere. You describe the destination; it drives.&lt;/p&gt;
&lt;p&gt;That constant “compare what-is to what-should-be, then fix the gap” loop is called &lt;strong&gt;reconciliation&lt;/strong&gt;, and it’s the heartbeat of the whole system.&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 360&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: the control plane holds the desired state of three app replicas and schedules pods across two worker nodes; when one pod fails, it schedules a replacement to keep the count at three.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;360&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Desired: 3 replicas — the control plane keeps it true&lt;/text&gt;&lt;rect x=&quot;28&quot; y=&quot;96&quot; width=&quot;176&quot; height=&quot;176&quot; rx=&quot;12&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;2&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;116&quot; y=&quot;120&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot; font-weight=&quot;600&quot;&gt;Control plane&lt;/text&gt;&lt;rect x=&quot;48&quot; y=&quot;140&quot; width=&quot;136&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;116&quot; y=&quot;160&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;API server&lt;/text&gt;&lt;rect x=&quot;48&quot; y=&quot;178&quot; width=&quot;136&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;116&quot; y=&quot;198&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Scheduler&lt;/text&gt;&lt;rect x=&quot;48&quot; y=&quot;216&quot; width=&quot;136&quot; height=&quot;30&quot; rx=&quot;6&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;116&quot; y=&quot;236&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;etcd (store)&lt;/text&gt;&lt;rect x=&quot;392&quot; y=&quot;70&quot; width=&quot;300&quot; height=&quot;104&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;408&quot; y=&quot;92&quot; fill=&quot;#94A684&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Node A · kubelet&lt;/text&gt;&lt;rect x=&quot;392&quot; y=&quot;196&quot; width=&quot;300&quot; height=&quot;104&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;408&quot; y=&quot;218&quot; fill=&quot;#94A684&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Node B · kubelet&lt;/text&gt;&lt;line x1=&quot;204&quot; y1=&quot;150&quot; x2=&quot;392&quot; y2=&quot;120&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;4 4&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;204&quot; y1=&quot;200&quot; x2=&quot;392&quot; y2=&quot;246&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;4 4&quot;&gt;&lt;/line&gt;&lt;g opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.4s&quot; begin=&quot;0.3s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;rect x=&quot;430&quot; y=&quot;112&quot; width=&quot;52&quot; height=&quot;40&quot; rx=&quot;7&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;456&quot; y=&quot;137&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;pod&lt;/text&gt;&lt;/g&gt;&lt;g opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.4s&quot; begin=&quot;0.9s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;rect x=&quot;510&quot; y=&quot;112&quot; width=&quot;52&quot; height=&quot;40&quot; rx=&quot;7&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;536&quot; y=&quot;137&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;pod&lt;/text&gt;&lt;/g&gt;&lt;g opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.4s&quot; begin=&quot;1.5s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;rect x=&quot;430&quot; y=&quot;238&quot; width=&quot;52&quot; height=&quot;40&quot; rx=&quot;7&quot; fill=&quot;#3B6B4E&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;456&quot; y=&quot;263&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;pod&lt;/text&gt;&lt;/g&gt;&lt;g opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;1;0.25&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.6s&quot; begin=&quot;2.1s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;rect x=&quot;590&quot; y=&quot;112&quot; width=&quot;52&quot; height=&quot;40&quot; rx=&quot;7&quot; fill=&quot;#241512&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.5&quot; stroke-dasharray=&quot;3 3&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;616&quot; y=&quot;137&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;✕&lt;/text&gt;&lt;/g&gt;&lt;path d=&quot;M616 156 q -40 60 -160 78&quot; fill=&quot;none&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.75&quot; stroke-dasharray=&quot;4 4&quot; opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.5s&quot; begin=&quot;2.4s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/path&gt;&lt;text x=&quot;360&quot; y=&quot;336&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;A pod dies on Node A → the control plane reschedules it → the count is 3 again.&lt;/text&gt;&lt;/svg&gt;
&lt;p&gt;Everything below is just the vocabulary for the pieces in that picture.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;nodes-the-machines-that-do-the-work&quot;&gt;Nodes: the machines that do the work&lt;/h2&gt;
&lt;p&gt;A &lt;strong&gt;&lt;a href=&quot;https://kubernetes.io/docs/concepts/architecture/nodes/&quot;&gt;node&lt;/a&gt;&lt;/strong&gt; is a worker machine — a physical box, a VM, or an &lt;a href=&quot;https://peira.dev/articles/proxmox-vm-vs-lxc/&quot;&gt;LXC container&lt;/a&gt; — that actually runs your containers. A cluster is just a set of nodes pooled together so your workloads can land on whichever one has room. On each node runs an agent called the &lt;strong&gt;kubelet&lt;/strong&gt;, whose job is simple to state: make sure the containers that are &lt;em&gt;supposed&lt;/em&gt; to be running here actually are.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;the-control-plane-the-brain-that-decides&quot;&gt;The control plane: the brain that decides&lt;/h2&gt;
&lt;p&gt;If nodes are the hands, the &lt;strong&gt;&lt;a href=&quot;https://kubernetes.io/docs/concepts/overview/components/&quot;&gt;control plane&lt;/a&gt;&lt;/strong&gt; is the brain. It’s the set of components that hold the desired state and drive the cluster toward it. You don’t run apps here; you run the decision-making. Its main parts, in plain terms:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;kube-apiserver&lt;/strong&gt; — the front door. Every command and every component talks through this HTTP API. When you run &lt;code&gt;kubectl&lt;/code&gt;, you’re talking to the API server.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;etcd&lt;/strong&gt; — the memory. A consistent, highly-available key-value store that holds all cluster data: what should exist, and what currently does.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;kube-scheduler&lt;/strong&gt; — the placement engine. It spots pods that haven’t been assigned a home yet and picks a suitable node for each.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;kube-controller-manager&lt;/strong&gt; — the enforcers. It runs the control loops that notice “desired says 3, reality says 2” and act to close the gap.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That last one &lt;em&gt;is&lt;/em&gt; the reconciliation loop from the top of the post, made concrete.&lt;/p&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;pods-the-smallest-unit-kubernetes-runs&quot;&gt;Pods: the smallest unit Kubernetes runs&lt;/h2&gt;
&lt;p&gt;You’d expect the basic unit to be “a container.” It’s almost that: it’s a &lt;strong&gt;&lt;a href=&quot;https://kubernetes.io/docs/concepts/workloads/pods/&quot;&gt;pod&lt;/a&gt;&lt;/strong&gt; — one or more containers that share a network address and storage and are always scheduled together onto the same node. In practice the overwhelming majority of pods hold exactly one container; the multi-container case is for tightly-coupled helpers.&lt;/p&gt;
&lt;p&gt;Here’s the important habit: &lt;strong&gt;you almost never create pods yourself.&lt;/strong&gt; You create a higher-level object — most often a &lt;strong&gt;&lt;a href=&quot;https://kubernetes.io/docs/concepts/workloads/controllers/deployment/&quot;&gt;Deployment&lt;/a&gt;&lt;/strong&gt; — that says “keep 3 replicas of this pod.” The Deployment creates the pods, replaces them when they die, and handles rolling updates. Pods are cattle, not pets; the Deployment is the rancher.&lt;/p&gt;
&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Why pods are disposable on purpose&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Because a Deployment can recreate a pod at any moment on any node, pods are treated as throwaway. That’s the source of Kubernetes’ self-healing — but it’s also why “where does my data live?” becomes its own topic (persistent volumes), separate from the pod itself.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;services-and-ingress-how-anything-reaches-your-app&quot;&gt;Services and ingress: how anything reaches your app&lt;/h2&gt;
&lt;p&gt;Disposable pods create a puzzle: if a pod can be replaced at any time — new pod, new internal IP — how does anything reliably talk to it? Two objects solve that.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;&lt;a href=&quot;https://kubernetes.io/docs/concepts/services-networking/service/&quot;&gt;Service&lt;/a&gt;&lt;/strong&gt; is a stable front for a changing set of pods. It gets a fixed cluster address and load-balances across whichever pods currently match it. Pods come and go; the Service address stays put.&lt;/li&gt;
&lt;li&gt;An &lt;strong&gt;&lt;a href=&quot;https://kubernetes.io/docs/concepts/services-networking/ingress/&quot;&gt;Ingress&lt;/a&gt;&lt;/strong&gt; handles traffic arriving from &lt;em&gt;outside&lt;/em&gt; the cluster — HTTP and HTTPS routing by hostname and path, sending &lt;code&gt;photos.homelab.lan&lt;/code&gt; to one Service and &lt;code&gt;grafana.homelab.lan&lt;/code&gt; to another. If you’ve used a &lt;a href=&quot;https://peira.dev/articles/what-is-traefik/&quot;&gt;reverse proxy&lt;/a&gt;, an Ingress is the same idea, expressed the Kubernetes way. (k3s even ships Traefik as its default ingress controller.)&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;so-should-you-run-it-at-home&quot;&gt;So should you run it at home?&lt;/h2&gt;
&lt;p&gt;Let me be honest, because the hype rarely is: &lt;strong&gt;most homelabs do not need Kubernetes, and that’s completely fine.&lt;/strong&gt; If Docker Compose on one box covers your services, adding Kubernetes trades a simple system you understand for a complex one you’re still learning — more moving parts, more ways to get stuck.&lt;/p&gt;
&lt;p&gt;It becomes genuinely worthwhile when one of these is true:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;you want &lt;strong&gt;self-healing and high availability&lt;/strong&gt; across more than one machine;&lt;/li&gt;
&lt;li&gt;you’re &lt;strong&gt;learning the tool&lt;/strong&gt; that runs a huge share of the modern cloud, on purpose, for your career;&lt;/li&gt;
&lt;li&gt;you’ve outgrown “one host” and want workloads to schedule across a pool.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If that’s you, the good news is you don’t start with the heavyweight version. A single-binary distribution called &lt;strong&gt;&lt;a href=&quot;https://k3s.io&quot;&gt;k3s&lt;/a&gt;&lt;/strong&gt; gives you real, compliant Kubernetes on hardware as small as a mini PC — and that’s exactly where the &lt;a href=&quot;https://peira.dev/articles/how-and-when-kubernetes-homelab/&quot;&gt;companion how-to&lt;/a&gt; picks up.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/how-and-when-kubernetes-homelab/&quot;&gt;How and When to Use Kubernetes in a Homelab&lt;/a&gt; — the hands-on companion: install k3s, deploy your first app, and an honest look at when it’s overkill.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/first-docker-compose-stack/&quot;&gt;Your First Docker Compose Stack&lt;/a&gt; — the simpler tool Kubernetes is often compared to; master this first.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/docker-proxmox-lxc-vs-vm/&quot;&gt;Docker on Proxmox: LXC vs VM, Done Right&lt;/a&gt; — where your containers run before you ever reach for an orchestrator.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-vm-vs-lxc/&quot;&gt;Proxmox VM vs LXC: Which to Use&lt;/a&gt; — the kind of node a homelab Kubernetes cluster runs on.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-traefik/&quot;&gt;What Is Traefik? The Reverse Proxy, Explained&lt;/a&gt; — the same routing idea an Ingress expresses inside a cluster.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-cluster-setup/&quot;&gt;Build a Proxmox Cluster&lt;/a&gt; — pooling machines at the hypervisor layer, a useful comparison to pooling them at the container layer.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><category>self-hosted</category><category>infrastructure</category></item><item><title>How to Set Up Authentik with Docker Compose</title><link>https://peira.dev/articles/how-to-set-up-authentik/</link><guid isPermaLink="true">https://peira.dev/articles/how-to-set-up-authentik/</guid><description>Install Authentik with Docker Compose, set your first admin, and put a login in front of an app that never had one — a step-by-step homelab walkthrough.</description><pubDate>Tue, 01 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;In the &lt;a href=&quot;https://peira.dev/articles/what-is-authentik/&quot;&gt;overview post&lt;/a&gt; I made the case for running a single front door for your homelab. This is the part where we actually build it. By the end you’ll have &lt;a href=&quot;https://goauthentik.io&quot;&gt;Authentik&lt;/a&gt; running, a real admin account, and — the fun part — a login screen sitting in front of an app that shipped without one.&lt;/p&gt;
&lt;p&gt;I’ll keep this grounded: every command here is the one from Authentik’s own &lt;a href=&quot;https://docs.goauthentik.io/docs/install-config/install/docker-compose&quot;&gt;installation docs&lt;/a&gt;, and every screenshot comes from a fresh Authentik 2026.8.5 install I walked through on 21 October 2026. I’ve flagged the two places it tripped me up.&lt;/p&gt;
&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;First: make these values your own&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;This guide uses placeholder values so it stays safe to publish. Swap them for yours before you paste:&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;10.0.0.20&lt;/code&gt;&lt;/strong&gt; — the IP (or hostname) of your Docker host running Authentik.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;auth.homelab.lan&lt;/code&gt;&lt;/strong&gt; — the internal DNS name you’ll reach Authentik at.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;app.homelab.lan&lt;/code&gt;&lt;/strong&gt; — the internal DNS name of the test app you’ll protect.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The &lt;code&gt;akadmin&lt;/code&gt; password&lt;/strong&gt; — you’ll set this yourself on first launch; keep it in your password manager, never in a note.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Rule of thumb: if a value looks specific to one machine, it’s a placeholder to change — not a literal to copy.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-1-install-authentik-with-docker-compose&quot;&gt;Task 1: Install Authentik with Docker Compose&lt;/h2&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Check the prerequisites&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;You need a host with &lt;a href=&quot;https://docs.docker.com/engine/install/&quot;&gt;Docker&lt;/a&gt; and the Compose v2 plugin, &lt;strong&gt;2 CPU cores and 2 GB of RAM&lt;/strong&gt; minimum. If you’re on Proxmox, an &lt;a href=&quot;https://peira.dev/articles/proxmox-vm-vs-lxc/&quot;&gt;LXC container&lt;/a&gt; or a small VM both work — Authentik doesn’t care which.&lt;/p&gt;&lt;p&gt;Confirm Compose v2 is present (note the space — &lt;code&gt;docker compose&lt;/code&gt;, not the old &lt;code&gt;docker-compose&lt;/code&gt;):&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Verify Docker Compose v2&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
docker compose version
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Download the compose file&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;1 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Authentik publishes a maintained &lt;code&gt;compose.yml&lt;/code&gt;. Make a folder for the stack and pull it in:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Fetch the official compose file&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
mkdir -p ~/authentik &amp;amp;&amp;amp; cd ~/authentik
wget https://docs.goauthentik.io/compose.yml
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;That file defines three services: the &lt;strong&gt;server&lt;/strong&gt;, a &lt;strong&gt;worker&lt;/strong&gt;, and a &lt;strong&gt;PostgreSQL&lt;/strong&gt; database. (Recent Authentik releases dropped the separate Redis container from the official Compose file.) You don’t need to edit it.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;3&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Generate the secrets&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Authentik needs two secrets: a database password and an application secret key. Never invent these by hand — generate real random values and append them to a &lt;code&gt;.env&lt;/code&gt; file that Compose reads automatically:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Create the .env with strong random secrets&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
echo &amp;quot;PG_PASS=$(openssl rand -base64 36 | tr -d &amp;#39;\n&amp;#39;)&amp;quot; &amp;gt;&amp;gt; .env
echo &amp;quot;AUTHENTIK_SECRET_KEY=$(openssl rand -base64 60 | tr -d &amp;#39;\n&amp;#39;)&amp;quot; &amp;gt;&amp;gt; .env
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Treat .env like a password&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;That file now contains your database password and the key that signs every session token. Keep it out of Git, off shared notes, and back it up somewhere private — if you lose &lt;code&gt;AUTHENTIK_SECRET_KEY&lt;/code&gt;, existing sessions and tokens break.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Optionally, if you want Authentik to reach it on the standard web ports instead of 9000/9443, add these two lines to the same &lt;code&gt;.env&lt;/code&gt; before starting — though if a &lt;a href=&quot;https://peira.dev/articles/what-is-traefik/&quot;&gt;reverse proxy&lt;/a&gt; will front it, leave the defaults:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Optional: use ports 80 and 443&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
echo &amp;quot;COMPOSE_PORT_HTTP=80&amp;quot; &amp;gt;&amp;gt; .env
echo &amp;quot;COMPOSE_PORT_HTTPS=443&amp;quot; &amp;gt;&amp;gt; .env
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;4&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Pull and start the stack&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Bring Authentik up&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
docker compose pull
docker compose up -d
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;The first pull downloads a few hundred megabytes and the database initializes on first boot, so give it a few minutes. Watch &lt;code&gt;docker compose ps&lt;/code&gt; until the &lt;strong&gt;worker&lt;/strong&gt; shows &lt;code&gt;healthy&lt;/code&gt;: the worker creates the initial-setup flow on first boot, and until it has, the setup page in the next task won’t load. On a 2-vCPU VM that took about two and a half minutes in my re-test. If the page still won’t load once everything is healthy, Authentik’s docs suggest restarting the containers.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-2-set-your-first-admin-and-look-around&quot;&gt;Task 2: Set your first admin and look around&lt;/h2&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Run the initial-setup flow&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Open the &lt;strong&gt;root&lt;/strong&gt; of the server in a browser. Authentik notices it hasn’t been set up yet and starts the first-run flow for you:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Initial setup — start from the root&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
http://10.0.0.20:9000/
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;div class=&quot;callout callout-warning&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;⚠️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Don&amp;#39;t jump straight to the setup flow&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Older guides (this one included, before this update) send you to &lt;code&gt;/if/flow/initial-setup/&lt;/code&gt; directly. On Authentik 2026.8.5 that’s refused with &lt;strong&gt;Request has been denied&lt;/strong&gt;, and the message tells you to open the root URL instead. The setup flow only runs when you enter it from &lt;code&gt;/&lt;/code&gt;.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;The form asks for four things:&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Email&lt;/strong&gt; — the address for the built-in &lt;strong&gt;&lt;code&gt;akadmin&lt;/code&gt;&lt;/strong&gt; account, the default superuser.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Password&lt;/strong&gt; and &lt;strong&gt;Password (repeat)&lt;/strong&gt; — there is no pre-set password to look up; whatever you type here becomes it. Put it straight into your &lt;a href=&quot;https://peira.dev/articles/vaultwarden-proxmox-lxc/&quot;&gt;password manager&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Base URL&lt;/strong&gt; — the address Authentik should use when it builds links for itself. Use the URL you’ll actually reach it at, with no path on the end. If you’ll put it behind a reverse proxy later, that’s your HTTPS name, such as &lt;code&gt;https://auth.homelab.lan&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;shot-url&quot; data-astro-cid-pmiqfeva&gt;http://10.0.0.20:9000/&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/authentik-initial-setup.DN2hSXO6_1TkNnb.webp&quot; aria-label=&quot;Enlarge screenshot: Authentik first-run setup form with Email, Password, Password (repeat) and Base URL fields for the akadmin account&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/authentik-initial-setup.DN2hSXO6_1TkNnb.webp&quot; alt=&quot;Authentik first-run setup form with Email, Password, Password (repeat) and Base URL fields for the akadmin account&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;700&quot; height=&quot;818&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;The first-run form on Authentik 2026.8.5. Base URL is new: it&amp;#39;s the address Authentik uses when it builds its own links.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Find the two interfaces&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Authentik has two faces, and knowing which is which saves confusion:&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;User interface&lt;/strong&gt; (&lt;code&gt;/&lt;/code&gt;) — the tile dashboard your family or teammates see: just the apps they’re allowed to open.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Admin interface&lt;/strong&gt; (&lt;code&gt;/if/admin/&lt;/code&gt;) — where you, as &lt;code&gt;akadmin&lt;/code&gt;, configure everything: applications, providers, flows, and users.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Everything below happens in the admin interface. Sign in as &lt;code&gt;akadmin&lt;/code&gt; and head there.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Do the boring hardening now&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Before you wire up apps, give &lt;code&gt;akadmin&lt;/code&gt; a second factor. In the user interface, click the &lt;strong&gt;gear icon&lt;/strong&gt; at the top right, open &lt;strong&gt;Credentials&lt;/strong&gt;, and under &lt;strong&gt;MFA Devices&lt;/strong&gt; click &lt;strong&gt;Enroll&lt;/strong&gt; to add a TOTP app or a passkey. MFA on the account that controls every other login is the whole point of running an identity provider.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/authentik-mfa-devices.BrwxTWHE_2rTa6e.webp&quot; aria-label=&quot;Enlarge screenshot: Authentik user settings on the Credentials tab, showing an empty MFA Devices list with an Enroll button&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/authentik-mfa-devices.BrwxTWHE_ZWjkxd.webp&quot; alt=&quot;Authentik user settings on the Credentials tab, showing an empty MFA Devices list with an Enroll button&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1100&quot; height=&quot;391&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Gear icon → Credentials → MFA Devices. Enroll opens the TOTP and passkey options.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-3-create-your-first-application-and-provider&quot;&gt;Task 3: Create your first application and provider&lt;/h2&gt;
&lt;p&gt;In Authentik, a &lt;strong&gt;provider&lt;/strong&gt; is &lt;em&gt;how&lt;/em&gt; it integrates with a service, and an &lt;strong&gt;application&lt;/strong&gt; is the &lt;em&gt;tile&lt;/em&gt; that points at that provider and decides who may use it. The admin interface builds both at once.&lt;/p&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Open the application wizard&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;1 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;In the admin interface, go to &lt;strong&gt;Applications → Applications&lt;/strong&gt; and click &lt;strong&gt;New Application&lt;/strong&gt;. That opens a short wizard that creates the application and a new provider together. (The dropdown beside the button also offers &lt;strong&gt;with Existing Provider…&lt;/strong&gt; if you ever build a provider separately first.)&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Walk the four stages&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;4 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;The wizard walks four short steps:&lt;/p&gt;&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Application&lt;/strong&gt; — a name (say, “Grafana”) and an optional group.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Choose a Provider&lt;/strong&gt; — pick the protocol the app speaks. Modern apps use &lt;strong&gt;OAuth2/OpenID Connect&lt;/strong&gt;; an app with no login of its own uses &lt;strong&gt;Proxy&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Configure Provider&lt;/strong&gt; — accept the auto-filled name and choose the &lt;strong&gt;authorization flow&lt;/strong&gt; (the default &lt;code&gt;default-provider-authorization-explicit-consent&lt;/code&gt; is fine to start).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Configure Bindings&lt;/strong&gt; — leave empty for now to allow everyone, or bind a group later to restrict access.&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;On the &lt;strong&gt;Review and Submit Application&lt;/strong&gt; panel, check the summary and click &lt;strong&gt;Create Application&lt;/strong&gt;. You’ve now got a working application and its provider in one pass.&lt;/p&gt;&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/authentik-wizard-provider-type.BdUBEgXP_Z22NBEI.webp&quot; aria-label=&quot;Enlarge screenshot: Authentik New application wizard on the Choose a Provider step, showing provider type cards for OAuth2/OpenID, SAML, SAML from metadata and RAC&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/authentik-wizard-provider-type.BdUBEgXP_hRE44.webp&quot; alt=&quot;Authentik New application wizard on the Choose a Provider step, showing provider type cards for OAuth2/OpenID, SAML, SAML from metadata and RAC&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1100&quot; height=&quot;597&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Step 2 of the wizard. Scroll the grid for Proxy, LDAP, RADIUS and SCIM.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-info&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;ℹ️&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Note&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;For an OAuth2/OIDC app, this is where Authentik hands you the &lt;strong&gt;Client ID&lt;/strong&gt;, &lt;strong&gt;Client Secret&lt;/strong&gt;, and the OpenID configuration URL. You paste those into the app’s own “single sign-on” settings — each app words it slightly differently, but it always wants those three things. Treat the Client Secret like a password: it goes into the app’s config and your password manager, never into a screenshot or a chat message.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;task-4-put-a-login-in-front-of-an-app-that-has-none&quot;&gt;Task 4: Put a login in front of an app that has none&lt;/h2&gt;
&lt;p&gt;This is the trick that makes Authentik feel like magic: taking a bare dashboard with no auth and giving it a real login — no code changes to the app. It works through a &lt;strong&gt;Proxy provider&lt;/strong&gt; and &lt;em&gt;forward authentication&lt;/em&gt;, where your reverse proxy asks Authentik to vet each request first.&lt;/p&gt;
&lt;p&gt;Here’s the shape of a single request once it’s wired up:&lt;/p&gt;
&lt;svg viewBox=&quot;0 0 720 320&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; role=&quot;img&quot; aria-label=&quot;Diagram: a browser request hits the reverse proxy, which forwards it to Authentik&apos;s outpost for a decision; unauthenticated requests are redirected to the login page, authenticated ones are passed through to the app.&quot; style=&quot;width:100%;height:auto;background:#0E1912;border:1px solid #6E5F33;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.3)&quot;&gt;&lt;text x=&quot;360&quot; y=&quot;30&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;13&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;One request through forward authentication&lt;/text&gt;&lt;rect x=&quot;24&quot; y=&quot;120&quot; width=&quot;120&quot; height=&quot;64&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#C9A24A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;84&quot; y=&quot;150&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Browser&lt;/text&gt;&lt;text x=&quot;84&quot; y=&quot;168&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;app.homelab.lan&lt;/text&gt;&lt;rect x=&quot;200&quot; y=&quot;120&quot; width=&quot;120&quot; height=&quot;64&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#4FAE96&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;260&quot; y=&quot;150&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Reverse proxy&lt;/text&gt;&lt;text x=&quot;260&quot; y=&quot;168&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;forwardAuth&lt;/text&gt;&lt;rect x=&quot;376&quot; y=&quot;120&quot; width=&quot;128&quot; height=&quot;64&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#E0A83F&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;440&quot; y=&quot;150&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Authentik&lt;/text&gt;&lt;text x=&quot;440&quot; y=&quot;168&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;outpost check&lt;/text&gt;&lt;rect x=&quot;560&quot; y=&quot;60&quot; width=&quot;132&quot; height=&quot;60&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;626&quot; y=&quot;88&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;The app&lt;/text&gt;&lt;text x=&quot;626&quot; y=&quot;106&quot; text-anchor=&quot;middle&quot; fill=&quot;#7BB26A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;signed in → allow&lt;/text&gt;&lt;rect x=&quot;560&quot; y=&quot;188&quot; width=&quot;132&quot; height=&quot;60&quot; rx=&quot;10&quot; fill=&quot;#223224&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;1.75&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;626&quot; y=&quot;216&quot; text-anchor=&quot;middle&quot; fill=&quot;#F4EEDA&quot; font-size=&quot;12&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;Login page&lt;/text&gt;&lt;text x=&quot;626&quot; y=&quot;234&quot; text-anchor=&quot;middle&quot; fill=&quot;#C8564A&quot; font-size=&quot;10&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;no session → redirect&lt;/text&gt;&lt;line x1=&quot;144&quot; y1=&quot;152&quot; x2=&quot;200&quot; y2=&quot;152&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;320&quot; y1=&quot;152&quot; x2=&quot;376&quot; y2=&quot;152&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;504&quot; y1=&quot;140&quot; x2=&quot;560&quot; y2=&quot;96&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;504&quot; y1=&quot;164&quot; x2=&quot;560&quot; y2=&quot;212&quot; stroke=&quot;#6E5F33&quot; stroke-width=&quot;1.5&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;440&quot; cy=&quot;152&quot; r=&quot;5&quot; fill=&quot;#4FAE96&quot;&gt;&lt;animate attributeName=&quot;cx&quot; values=&quot;84;260;440&quot; keyTimes=&quot;0;0.5;1&quot; dur=&quot;2s&quot; begin=&quot;0s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;circle cx=&quot;626&quot; cy=&quot;90&quot; r=&quot;7&quot; fill=&quot;none&quot; stroke=&quot;#7BB26A&quot; stroke-width=&quot;2&quot; opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.5s&quot; begin=&quot;2.1s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;circle cx=&quot;626&quot; cy=&quot;218&quot; r=&quot;7&quot; fill=&quot;none&quot; stroke=&quot;#C8564A&quot; stroke-width=&quot;2&quot; opacity=&quot;1&quot;&gt;&lt;animate attributeName=&quot;opacity&quot; values=&quot;0;1&quot; keyTimes=&quot;0;1&quot; dur=&quot;0.5s&quot; begin=&quot;2.1s&quot; fill=&quot;freeze&quot;&gt;&lt;/animate&gt;&lt;/circle&gt;&lt;text x=&quot;360&quot; y=&quot;296&quot; text-anchor=&quot;middle&quot; fill=&quot;#94A684&quot; font-size=&quot;11&quot; font-family=&quot;system-ui, sans-serif&quot;&gt;The proxy never trusts the request itself — it asks Authentik, every time.&lt;/text&gt;&lt;/svg&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;1&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Create a Proxy provider&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;3 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Run the same &lt;strong&gt;Applications → Applications → New Application&lt;/strong&gt; wizard, but at the &lt;strong&gt;Choose a Provider&lt;/strong&gt; step pick &lt;strong&gt;Proxy&lt;/strong&gt;. Set it to &lt;strong&gt;Forward auth (single application)&lt;/strong&gt; and set &lt;strong&gt;External host&lt;/strong&gt; to the URL you’ll use, e.g. &lt;code&gt;https://app.homelab.lan&lt;/code&gt;. Authentik’s built-in &lt;strong&gt;embedded outpost&lt;/strong&gt; answers the forward-auth checks, so there’s nothing extra to deploy for a first app.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;2&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Add the app to the embedded outpost&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;This is the step I missed on my first pass. The embedded outpost only answers for applications assigned to it, and in my 2026.8.5 walk-through the wizard didn’t add the new proxy app for me. Until you do, the &lt;strong&gt;Providers&lt;/strong&gt; column for the outpost shows a dash and forward auth has nothing to check against.&lt;/p&gt;&lt;p&gt;Go to &lt;strong&gt;Applications → Outposts&lt;/strong&gt;, click the edit icon on &lt;strong&gt;authentik Embedded Outpost&lt;/strong&gt;, move your app from &lt;strong&gt;Available Applications&lt;/strong&gt; to &lt;strong&gt;Selected Applications&lt;/strong&gt;, and click &lt;strong&gt;Save Changes&lt;/strong&gt;.&lt;/p&gt;&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/authentik-outpost-add-app.CufFPoDc_ZVmvoB.webp&quot; aria-label=&quot;Enlarge screenshot: Authentik Edit Outpost dialog with Test Proxy App moved from Available Applications to Selected Applications&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/authentik-outpost-add-app.CufFPoDc_2e4ew5.webp&quot; alt=&quot;Authentik Edit Outpost dialog with Test Proxy App moved from Available Applications to Selected Applications&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1100&quot; height=&quot;597&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Applications → Outposts → edit the embedded outpost. Move the app across, then Save Changes.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;Back on the list, the outpost’s &lt;strong&gt;Providers&lt;/strong&gt; column now names your proxy provider:&lt;/p&gt;&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/authentik-outpost-assigned.3GKxekC-_Z2oGYk7.webp&quot; aria-label=&quot;Enlarge screenshot: Authentik Outposts list showing the embedded outpost, type Proxy, with Provider for Test Proxy App in the Providers column and a healthy last-seen status&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/authentik-outpost-assigned.3GKxekC-_2jPm5V.webp&quot; alt=&quot;Authentik Outposts list showing the embedded outpost, type Proxy, with Provider for Test Proxy App in the Providers column and a healthy last-seen status&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1100&quot; height=&quot;255&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;Before this step the Providers column showed a dash. Now the embedded outpost serves the test app.&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;3&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Point your reverse proxy at the outpost&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;5 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Now tell your proxy to check with Authentik before serving the app. With &lt;a href=&quot;https://peira.dev/articles/traefik-letsencrypt-setup/&quot;&gt;Traefik&lt;/a&gt;, that’s a &lt;code&gt;forwardAuth&lt;/code&gt; middleware pointed at the embedded outpost’s auth endpoint:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;Traefik forwardAuth middleware (dynamic config)&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
http:
  middlewares:
    authentik:
      forwardAuth:
        address: http://10.0.0.20:9000/outpost.goauthentik.io/auth/traefik
        trustForwardHeader: true
        authResponseHeaders:
          - X-authentik-username
          - X-authentik-groups
          - X-authentik-entitlements
          - X-authentik-email
          - X-authentik-name
          - X-authentik-uid
          - X-authentik-jwt
          - X-authentik-meta-jwks
          - X-authentik-meta-outpost
          - X-authentik-meta-provider
          - X-authentik-meta-app
          - X-authentik-meta-version
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Attach that &lt;code&gt;authentik&lt;/code&gt; middleware to the router for &lt;code&gt;app.homelab.lan&lt;/code&gt;. The &lt;code&gt;address&lt;/code&gt; is the embedded outpost’s Traefik endpoint; &lt;code&gt;trustForwardHeader&lt;/code&gt; lets Authentik see the original host, and the response headers pass the signed-in user’s identity (username, groups, email and more) down to the app. That header list matches Authentik’s own Traefik example, and this exact middleware is the one I tested end to end on Traefik v3.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;step&quot; data-astro-cid-wwaqy5cd&gt;&lt;div class=&quot;step-header&quot; data-astro-cid-wwaqy5cd&gt;&lt;span class=&quot;step-num&quot; data-astro-cid-wwaqy5cd&gt;4&lt;/span&gt;&lt;span class=&quot;step-title&quot; data-astro-cid-wwaqy5cd&gt;Test it end to end&lt;/span&gt;&lt;span class=&quot;step-time&quot; data-astro-cid-wwaqy5cd&gt;2 min&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;step-body&quot; data-astro-cid-wwaqy5cd&gt;&lt;p&gt;Open &lt;code&gt;https://app.homelab.lan&lt;/code&gt; in a private browser window. Instead of the app, you should land on Authentik’s login page. Sign in, and because the wizard’s default authorization flow is the &lt;em&gt;explicit consent&lt;/em&gt; one, Authentik asks once whether to let the app see your details:&lt;/p&gt;&lt;figure class=&quot;shot&quot; data-astro-cid-pmiqfeva&gt;&lt;div class=&quot;shot-bar&quot; data-astro-cid-pmiqfeva&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-pmiqfeva&gt;&lt;/span&gt;&lt;/div&gt;&lt;button type=&quot;button&quot; class=&quot;shot-zoom&quot; data-full=&quot;/_astro/authentik-forward-auth-consent.Cg82YeuO_Z14IvOc.webp&quot; aria-label=&quot;Enlarge screenshot: Authentik consent screen reading Redirecting to Test Proxy App, listing the permissions the app requests, with a Continue button&quot; data-astro-cid-pmiqfeva&gt;&lt;img src=&quot;https://peira.dev/_astro/authentik-forward-auth-consent.Cg82YeuO_Z1HwmLA.webp&quot; alt=&quot;Authentik consent screen reading Redirecting to Test Proxy App, listing the permissions the app requests, with a Continue button&quot; data-astro-cid-pmiqfeva=&quot;true&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;760&quot; height=&quot;676&quot; class=&quot;shot-img&quot;&gt;&lt;span class=&quot;shot-zoom-hint&quot; aria-hidden=&quot;true&quot; data-astro-cid-pmiqfeva&gt;⤢&lt;/span&gt;&lt;/button&gt;&lt;figcaption class=&quot;shot-caption&quot; data-astro-cid-pmiqfeva&gt;The explicit-consent flow, the wizard&amp;#39;s default, asks once per app. Pick the implicit-consent flow if you&amp;#39;d rather skip it.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p&gt;Click &lt;strong&gt;Continue&lt;/strong&gt; and you’re bounced straight through to the app, now wearing a login it never had. That round trip &lt;em&gt;is&lt;/em&gt; the win.&lt;/p&gt;&lt;p&gt;For my test I put &lt;a href=&quot;https://github.com/traefik/whoami&quot;&gt;traefik/whoami&lt;/a&gt;, which simply echoes the request it receives, behind the middleware. Trimmed and with the values replaced, this is what arrived after sign-in:&lt;/p&gt;&lt;figure class=&quot;terminal&quot; data-astro-cid-kenkipkp&gt;&lt;figcaption class=&quot;terminal-bar&quot; data-astro-cid-kenkipkp&gt;&lt;span class=&quot;dot red&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot yellow&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;dot green&quot; data-astro-cid-kenkipkp&gt;&lt;/span&gt;&lt;span class=&quot;terminal-title&quot; data-astro-cid-kenkipkp&gt;What the app receives after sign-in (trimmed, values replaced)&lt;/span&gt;&lt;button class=&quot;terminal-copy&quot; type=&quot;button&quot; aria-label=&quot;Copy commands&quot; data-astro-cid-kenkipkp&gt;&lt;svg width=&quot;13&quot; height=&quot;13&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;none&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;2&quot; stroke-linecap=&quot;round&quot; stroke-linejoin=&quot;round&quot; aria-hidden=&quot;true&quot; data-astro-cid-kenkipkp&gt;&lt;rect x=&quot;9&quot; y=&quot;9&quot; width=&quot;13&quot; height=&quot;13&quot; rx=&quot;2&quot; data-astro-cid-kenkipkp&gt;&lt;/rect&gt;&lt;path d=&quot;M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1&quot; data-astro-cid-kenkipkp&gt;&lt;/path&gt;&lt;/svg&gt;&lt;span class=&quot;terminal-copy-label&quot; data-astro-cid-kenkipkp&gt;Copy&lt;/span&gt;&lt;/button&gt;&lt;/figcaption&gt;&lt;pre class=&quot;terminal-body&quot; data-astro-cid-kenkipkp&gt;&lt;code data-astro-cid-kenkipkp&gt;
X-Authentik-Username: akadmin
X-Authentik-Groups: authentik Admins
X-Authentik-Email: admin@homelab.lan
X-Authentik-Name: authentik Default Admin
X-Authentik-Jwt: eyJhbGciOi...  (a signed token, trimmed)
X-Authentik-Meta-Outpost: authentik Embedded Outpost
X-Authentik-Meta-Provider: Provider for Test Proxy App
X-Authentik-Meta-Version: goauthentik.io/outpost/2026.8.5
&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;The app never handled a password. It got a set of headers saying who you are and which groups you’re in, and apps that support header auth can log you in from those alone.&lt;/p&gt;&lt;div class=&quot;callout callout-danger&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;🚨&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Those headers are credentials&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;A real dump of these headers holds your email address, a signed JWT and the session cookie. Don’t paste one into a forum post or an issue tracker. And only trust the &lt;code&gt;X-Authentik-*&lt;/code&gt; headers on an app that can’t be reached except through the proxy: if the app’s own port is open on the network, anyone can send it headers that claim to be you.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;callout callout-tip&quot; data-astro-cid-q2ml7llr&gt;&lt;div class=&quot;callout-header&quot; data-astro-cid-q2ml7llr&gt;&lt;span class=&quot;callout-icon&quot; aria-hidden=&quot;true&quot; data-astro-cid-q2ml7llr&gt;💡&lt;/span&gt;&lt;span class=&quot;callout-label&quot; data-astro-cid-q2ml7llr&gt;Keep a way back in&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;callout-body&quot; data-astro-cid-q2ml7llr&gt;&lt;p&gt;Forward auth means Authentik now gates that app. Before you protect anything critical, make sure you have a break-glass path — a local admin account on the app itself, or proxy access that bypasses auth — so a misconfigured flow can’t lock you out of your own service.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;h2 id=&quot;where-to-go-next&quot;&gt;Where to go next&lt;/h2&gt;
&lt;p&gt;You’ve got Authentik running, a hardened admin, and one app protected. The natural next moves are to bind a &lt;strong&gt;group&lt;/strong&gt; to that application so only certain users see it, and to convert your OAuth2-capable apps (Grafana, Immich, and friends) from their own logins over to single sign-on one at a time. Do them one per evening — it’s oddly satisfying watching the separate passwords disappear.&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;strong&gt;Related posts:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/playbooks/deploy-authentik-docker-compose/&quot;&gt;Deploy Authentik with Docker Compose (playbook)&lt;/a&gt; — the copy-paste version of Task 1, if you just want the install in one block.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-authentik/&quot;&gt;What Is Authentik? One Login for Your Whole Homelab&lt;/a&gt; — the concepts behind this walkthrough; read it first if “provider” and “SSO” are fuzzy.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/what-is-traefik/&quot;&gt;What Is Traefik? The Reverse Proxy, Explained&lt;/a&gt; — the proxy that does the forward-auth handshake in Task 4.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/traefik-letsencrypt-setup/&quot;&gt;Traefik + Let’s Encrypt: Automatic HTTPS&lt;/a&gt; — get HTTPS on &lt;code&gt;app.homelab.lan&lt;/code&gt; before you put a login in front of it.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/vaultwarden-proxmox-lxc/&quot;&gt;Run Vaultwarden in a Proxmox LXC&lt;/a&gt; — where your new &lt;code&gt;akadmin&lt;/code&gt; password belongs.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/docker-proxmox-lxc-vs-vm/&quot;&gt;Docker on Proxmox: LXC vs VM, Done Right&lt;/a&gt; — the host this Compose stack runs on.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://peira.dev/articles/proxmox-security-hardening/&quot;&gt;Harden Proxmox Before You Expose Anything&lt;/a&gt; — secure the foundation under the identity layer.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sources: &lt;a href=&quot;https://docs.goauthentik.io/docs/install-config/install/docker-compose&quot;&gt;Authentik installation docs&lt;/a&gt;, &lt;a href=&quot;https://docs.goauthentik.io/docs/add-secure-apps/providers/proxy/server_traefik&quot;&gt;Authentik Traefik proxy docs&lt;/a&gt;.&lt;/p&gt;</content:encoded><category>self-hosted</category><category>security</category></item></channel></rss>