<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Networking on Barn</title><link>https://barn.pgsty.com/v1.5/tags/networking/</link><description>Recent content in Networking on Barn</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 11 Nov 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://barn.pgsty.com/v1.5/tags/networking/index.xml" rel="self" type="application/rss+xml"/><item><title>Host DNS and domain resolution for Pigsty on Barn</title><link>https://barn.pgsty.com/v1.5/blog/design/pigsty-host-dns/</link><pubDate>Tue, 10 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/pigsty-host-dns/</guid><description>&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;&lt;strong&gt;Scope narrowed on 2026-11-11:&lt;/strong&gt; the first delivery is now &lt;a href="https://barn.pgsty.com/v1.5/blog/design/pigsty-host-setup/"&gt;fixed core names and Pigsty CA trust&lt;/a&gt;. This page retains the broader exporter and resolver research; its general inventory and split-DNS work is optional expansion, not a prerequisite for the fixed profile.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Recommend explicit, opt-in managed hosts publication first.&lt;/strong&gt; Pigsty computes the names and service targets; Barn previews and installs one neutral address/name snapshot through its existing helper. This is worthwhile for opening portals, addressing nodes and connecting to database or VIP names in a static Linux lab. Fixed addresses make repeated synchronization cheap: unchanged records need no privileged operation. &lt;strong&gt;Root is still required for every actual system hosts change, including removal.&lt;/strong&gt; Setup does not grant perpetual update permission, and a cached or passwordless sudo authorization eliminates a password prompt, not privilege. Keep per-command authorization; consider suffix forwarding when a stable guest DNS endpoint and a complete namespace exist. A host daemon needs demonstrated demand beyond these two options.&lt;/p&gt;</description></item><item><title>Farrow 0.2.0: selected convergence and release integrity</title><link>https://barn.pgsty.com/v1.5/release/0.2.0/</link><pubDate>Tue, 01 Sep 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.2.0/</guid><description>&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;This version shipped as Farrow. Its download assets have been retired. See the &lt;a href="https://github.com/pgsty/barn/blob/v0.2.0/.github/releases/0.2.0.md"&gt;original tagged release notes&lt;/a&gt; or &lt;a href="https://barn.pgsty.com/v1.5/docs/start/installation/"&gt;install the current Barn release&lt;/a&gt;.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;Farrow 0.2.0 keeps the Pigsty inventory and on-disk deployment format introduced in 0.1.0 while fixing VPN route preflight false positives and selected-node convergence issues uncovered during native host testing.&lt;/p&gt;&#10;&lt;h2 id="what-changed"&gt;What changed&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;VPN-aware route preflight.&lt;/strong&gt; Broad VPN exclusion routes such as &lt;code&gt;10.0.0.0/8&lt;/code&gt; no longer block Farrow&amp;rsquo;s more specific &lt;code&gt;10.10.10.0/24&lt;/code&gt; lab subnet. Equal or more-specific foreign routes, overlapping interfaces, occupied IP addresses, or a missing Farrow route still fail preflight before any VM starts.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;True selected-node scale-out.&lt;/strong&gt; &lt;code&gt;farrow up &amp;lt;node&amp;gt;&lt;/code&gt; downloads images and prepares disks only for the targeted node. Uncreated inventory peers appear as &lt;code&gt;absent&lt;/code&gt;, and SSH config, &lt;code&gt;/etc/hosts&lt;/code&gt;, guest provisioning, UUID/port allocation, lifecycle commands, and persistent-disk checks operate strictly on the committed node set while leaving the full inventory intact for later expansion.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Updated &lt;code&gt;/etc/hosts&lt;/code&gt; ownership markers.&lt;/strong&gt; Newly provisioned guests write &lt;code&gt;# farrow-deployment-host&lt;/code&gt; and clean up both that marker and the 0.1.0 &lt;code&gt;# farrow-project-host&lt;/code&gt; marker when refreshing host entries.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Operational polish.&lt;/strong&gt; Includes graceful command cancellation, structured JSON/YAML output, interactive confirmations, &lt;code&gt;farrow reload&lt;/code&gt;, diagnostic redaction, and a trimmed Go dependency graph.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="native-and-release-evidence"&gt;Native and release evidence&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;macOS &lt;code&gt;arm64&lt;/code&gt;/HVF (with MonoProxy active)&lt;/strong&gt;: verified selected &lt;code&gt;u24-1&lt;/code&gt; creation, SSH, &lt;code&gt;stop&lt;/code&gt;/&lt;code&gt;start&lt;/code&gt;, incremental cached &lt;code&gt;el9-1&lt;/code&gt; scale-out, two-node lateral SSH alongside five &lt;code&gt;absent&lt;/code&gt; peers, and full deployment &lt;code&gt;destroy&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Ubuntu 26.04 &lt;code&gt;amd64&lt;/code&gt;/KVM&lt;/strong&gt;: verified read-only inspection and control-node SSH against an existing four-node deployment.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;CI and packaging&lt;/strong&gt;: passed local &lt;code&gt;make check&lt;/code&gt;, source CI, and the release packaging workflow, producing four platform archives, &lt;code&gt;amd64&lt;/code&gt;/&lt;code&gt;arm64&lt;/code&gt; DEB and RPM packages, SPDX SBOMs, a Homebrew formula, &lt;code&gt;install.sh&lt;/code&gt;, SHA-256 checksums, and release metadata.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Image catalog&lt;/strong&gt;: embeds signed catalog revision &lt;code&gt;2026082903&lt;/code&gt; (9 families, 27 architecture artifacts), with &lt;code&gt;https://repo.pigsty.cc/farrow&lt;/code&gt; as the default repository in 0.2.0 and &lt;code&gt;https://repo.pgsty.com/farrow&lt;/code&gt; verified as an alternate endpoint.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="install-or-upgrade"&gt;Upgrades and historical packages&#10;&lt;/h2&gt;&#10;&lt;p&gt;0.1.0 deployment state remains directly readable; running &lt;code&gt;farrow status&lt;/code&gt; while existing VMs are up records any missing process birth timestamps, and existing guests adopt the new &lt;code&gt;/etc/hosts&lt;/code&gt; marker the next time they are recreated.&lt;/p&gt;</description></item><item><title>Why Every Barn Node Has Two NICs</title><link>https://barn.pgsty.com/v1.5/blog/design/fixed-ip-two-nics/</link><pubDate>Thu, 27 Aug 2026 20:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/fixed-ip-two-nics/</guid><description>&lt;p&gt;This essay explains the Linux lab network architecture in Barn &lt;code&gt;1.1.0&lt;/code&gt; (&lt;a href="https://barn.pgsty.com/v1.5/docs/start/macos/"&gt;macOS guests&lt;/a&gt; use independent per-VM &lt;code&gt;vmnet&lt;/code&gt; NAT subnets).&lt;/p&gt;&#10;&lt;p&gt;A Pigsty inventory identifies every database node by a stable IPv4 address: PostgreSQL streaming replication, Patroni/etcd consensus, HAProxy backends, keepalived VIPs, Prometheus targets, and Ansible playbooks all expect &lt;code&gt;10.10.10.11&lt;/code&gt; to name the same host across boots. Forwarding a loopback port on the host can expose SSH or port &lt;code&gt;5432&lt;/code&gt; to your laptop, but peer VMs cannot form a cluster over host loopback forwards.&lt;/p&gt;</description></item><item><title>RC6 development candidate: owner-scoped Tier-1 delivery</title><link>https://barn.pgsty.com/v1.5/release/rc6-owner-scoped-20260825/</link><pubDate>Tue, 25 Aug 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/rc6-owner-scoped-20260825/</guid><description>&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;Pre-Barn historical archive (&lt;code&gt;Piglet 1.0.0-rc.6&lt;/code&gt;, 2026-08-25). This candidate was a local verification milestone and was never published as a GitHub Release or package repository; the SHA-256 digests below record the retained local build artifacts. For current Barn usage and support status, see the &lt;a href="https://barn.pgsty.com/v1.5/docs/"&gt;documentation&lt;/a&gt; and &lt;a href="https://barn.pgsty.com/v1.5/docs/about/status/"&gt;status page&lt;/a&gt;.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;Piglet &lt;code&gt;1.0.0-rc.6&lt;/code&gt; was a local development candidate that validated the Quick and four-node &lt;code&gt;full&lt;/code&gt; profiles on both Tier-1 native hypervisor platforms (&lt;code&gt;macOS arm64 / HVF&lt;/code&gt; and &lt;code&gt;Linux amd64 / KVM&lt;/code&gt;) and introduced journaled host-network transactions for crash recovery. &lt;a href="https://github.com/pgsty/barn.pgsty.com/blob/b2f220d/content/blog/release/rc6-owner-scoped-20260825.md"&gt;Original candidate acceptance record&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>