What each release brought, newest first. The full notes, with every change, the image digest and the downloads, are on GitHub. Upgrade a node or a pair with sparewall upgrade; nodes on the stable channel are never offered a prerelease.
Sparewall 0.7.0 brings diagnostics into the web UI and the CLI, so finding out why something doesn't work no longer needs SSH (#181). It adds:
the logs of Sparewall's units, and the traffic your rules log;
each network's neighbours and routes;
ping, traceroute and DNS lookups from the node;
short packet captures, downloaded as a pcap;
history charts on the status page, and sparewall metrics query;
in a pair, the peer's view of all of these, through the node you reached.
It also finishes IPv6's last two pieces from 0.6.0: hosts by suffix in a delegated prefix, and management over IPv6.
Diagnostics
Each is read-only, takes a time and size limit, and is checked against the caller's role. The web UI shows them on the Logs, Logged traffic and Network pages, and the CLI has a command for each.
Logs (#261, viewer and up). sparewall logs, or the Logs page: the journal of Sparewall's units, by unit, priority and text, newest first, with -f to follow. -u selinux shows the coordinator's SELinux denials.
Logged traffic (#262, viewer and up). sparewall hits, or the Logged traffic page: the packets that rules with log: true logged, by rule, zone pair, address and port, with -f to follow. The zone policy dialog links each logged rule there.
Neighbours and routes (#263, viewer and up). sparewall neighbours and sparewall routes, or the Network page: the neighbour table and the routing tables, by network. A neighbour that doesn't answer is marked.
Network tools (#264, operator and up). sparewall ping, traceroute and lookup, or the Network page's Tools tab, with output as it comes. --from leaves from the node's own address on a network.
Packet captures (#265, admin only). sparewall capture lan --filter 'icmp' -w ping.pcap, or the Network page's Capture tab:
Limits: a filter, a time limit (default 30 s, at most 300) and a size limit (default 8 MiB, at most 32). At the size limit, the packet past it is left out, so the file is always a whole pcap.
Nothing stays on the node: the pcap streams to the caller as it runs.
One at a time: a second capture on a node is refused while one runs.
Audit: each capture is recorded in sparewalld's journal: who started it, the network and the filter, then its size and why it ended.
Confinement: tcpdump runs outside the coordinator, in sparewall-capture@.service. That's a dynamic user holding only CAP_NET_RAW, in its own SELinux domain, writing no files.
Hosts by suffix in a delegated prefix (#245). An ipv6 object's suffixes now work on a delegated network too. The object follows each host's address as the prefix changes, so a rule can name a server whose prefix the ISP renumbers.
Management over IPv6 (#246). management.sources takes IPv6 addresses and prefixes, and the anti-lockout rule covers IPv6, on a management network that has ipv6.
Fixes
sparewalld's memory on a pair (#298). The daemon grew by about 20 MiB with some backups and never gave it back, reaching 200 MiB in two days. Each backup seals its secrets with Argon2id, whose 19 MiB working block glibc kept in the memory of whichever thread ran it. The unit now fixes glibc's mmap threshold, so the block is returned after each use. The daemon stays near 10 MiB.
Address lists mixing literals and objects (#259). A rule matching both addresses and @objects of one family rendered a set that nft rejected. Each object is now its own match. A rule with a limit that would need more than one line per family is refused at validation.
IPv6 sets across a reload (#258). The sets of IPv6 addresses that networkd or the coordinator fill at run time are kept when the ruleset reloads.
The HTTPS listener (#282). An API token's last use is saved at most once a minute, not on every metrics scrape. Connections and header reads are bounded.
Security
sparewall-run@ (#279). The helper that runs what the coordinator's confinement forbids (podman checks, bootc, keepalived's config check) now runs only typed operations, with their arguments checked, not any command line spooled to it.
Testing
New VM tests:
Diagnostics: every method, on a node and on a pair. That includes the peer's routes compared with its own, a ping and logs through the other node, and a node outside the pair refused.
Packet captures: a client's ping captured on each node of a pair, the pcap read back with tcpdump. Also a second capture refused, tcpdump's SELinux domain, the journal records, and an operator refused.
sparewalld's memory: the boot test checks the daemon runs with the fixed mmap threshold.
Known issue: a site tunnel after a rolling upgrade (#275). In some runs of the pair test, a site-to-site tunnel that the pair starts takes about two minutes to come back after the rolling upgrade hands the gateway to the freshly rebooted node. A failover without a reboot recovers in about a second. The test now counts from the handover as the nodes record it (#301), so it measures the delay correctly, but the delay itself is still under investigation.
Upgrade tests start from 0.6.1, on a single node and on a pair.
Requirements (#289). Getting started now states the hardware and the platforms Sparewall runs on.
Upgrading
Run sparewall upgrade on either node, or start it from the web UI. Nodes on 0.6.1 can upgrade straight to 0.7.0.
Schema revision 6. Suffixes on a delegated network, and IPv6 in management.sources, are schema revision 6: 0.6.x refuses a document that uses either.
Rolling back to 0.6.x: first roll the configuration back, with sparewall rollback, to a generation that uses neither. Then roll back the node.
Pairs: until both nodes run 0.7.0, a change that uses a revision 6 setting is refused. The peer's diagnostics also need the peer on 0.7.0.
IPv6 on the WAN, by DHCPv6 with prefix delegation, by SLAAC, or static;
IPv6 on inside networks, from the delegated prefix or a static /64, with router advertisements and DNS;
one set of zones and policies for both IPv4 and IPv6;
IPv6 in a pair, with no renumbering at a failover.
Forwards and NAT stay IPv4 only. A port opening to an inside IPv6 host is a policy rule.
IPv6
The schema (#211, #227). A network takes ipv6, and objects of type: ipv6 hold IPv6 addresses and prefixes. Rules take IPv6 addresses and proto: icmpv6.
Which family a rule covers follows from what it names. A rule with IPv4 addresses, or proto: icmp, is IPv4 only. One with IPv6 addresses, or proto: icmpv6, is IPv6 only. A rule that names no addresses applies to both.
Dynamic objects: an ipv6 object can follow a network's address or prefix.
The firewall (#212, #228). Without any ipv6 in the document, the ruleset is the same as before. With it, the node:
accepts neighbour discovery and multicast listener messages;
accepts router solicitations from inside networks;
accepts router advertisements and DHCPv6 replies on a WAN that asks for them;
drops IPv6 on every interface without ipv6;
otherwise applies the zones' policies to IPv6 as to IPv4.
The WAN (#213, #229). networks.<wan>.ipv6.mode is one of three modes:
dhcpv6: DHCPv6 for an address and a delegated prefix. prefix_length sets the delegated prefix's length (default 56). The client's DUID comes from the WAN's MAC, so a reinstall on the same NIC keeps the lease.
Inside networks (#214, #231). An inside network is either delegated (the subnet_idth /64 of the WAN's delegated prefix) or static.
Addresses: a standalone node is ::1 in the /64 (in a pair, the nodes take no address there; see Pairs), and hosts configure themselves by SLAAC.
DNS: the router advertisements name the node as the resolver wherever DHCP does. ipv6.dns names other resolvers instead (#230, #233).
Renumbering: a new delegated prefix renumbers the network on its own. The old prefix stays in the advertisements as deprecated while it's still valid, for up to 2 hours, so hosts pick their new address for new connections (#232, #244).
Pairs (#215, #237–#241). Only the master runs IPv6 on the WAN and sends router advertisements.
Leased WAN: with the pair's one DHCP lease, DHCPv6 runs on the master, with a DUID from the virtual MAC. A new master gets the same lease and prefix.
Static block: the WAN takes ipv6.vip, which moves with the IPv4 addresses, along with the IPv6 default route.
Other WAN shapes: a WAN off the virtual MAC is IPv4 only, and is refused with ipv6 (#247).
Inside networks: each needs a vrid. Hosts' gateway is fe80::1, on the network's IPv6 virtual MAC, so it doesn't change at a failover.
At a failover: the new master routes the old master's delegated /64s until its own DHCPv6 reply arrives. Hosts keep their addresses and connections. In the pair tests, IPv6 connections carried on across a trunk failure.
sparewall status: shows each network's IPv6 addresses, the delegated prefix with its lifetimes, the default route, and the prefixes each inside network advertises.
Health: a new ipv6 check is degraded while a WAN has no IPv6 default route, or a delegated network has no prefix. It's never failed: IPv4 still works.
Metrics:/metrics adds sparewall_ipv6_default_route and the delegated prefix's lifetimes.
Web UI: the status page has an IPv6 card, and the editor shows each IPv6 field only for the modes and networks it applies to.
Pairs
Re-pairing a restored pair (#242). After both nodes are restored from backups, re-pairing them with new sync keys is accepted again at the schema revision they already run.
Not in this release
Hosts by suffix in a delegated prefix (suffixes on an ipv6 object, for a delegated network) and management over IPv6 (IPv6 in management.sources) are in the schema but refused for now (#245, #246). Suffixes in a static prefix work.
IPv6 through a VPN client: the tunnel carries IPv4 only. A network with ipv6 that is routed through a VPN client gets only a validation warning. Without the kill switch, its IPv6 leaves through the WAN, around the tunnel. With the kill switch, its hosts have no IPv6 beyond the node. If you use a tunnel for privacy, leave ipv6 off the networks it carries.
DHCPv6 on inside networks (#217) and IPv6 through a tunnel (#218) come after 1.0.
Testing
New VM tests:
A standalone node: a DHCPv6 WAN with a delegated prefix, from radvd and Kea in the test harness. They cover SLAAC and DNS on the LAN, and the ISP renumbering the prefix, after which the client's old address is deprecated.
A pair with a leased WAN: the master leases one address and one prefix. The prefix moves across a trunk failure and a VLAN cut, and the ISP renumbers it during a takeover.
A pair with a static block: the IPv6 vip, the default route and the client's reach to the ISP are checked at every handover and through both rolling upgrades.
Upgrade tests start from 0.5.0, on a single node and on a pair.
Upgrading
Run sparewall upgrade on either node, or start it from the web UI. Nodes on 0.5.0 can upgrade straight to 0.6.0.
Schema revision 5. These are schema revision 5, and 0.5.x can't read a document that uses any of them:
networks.<name>.ipv6;
objects of type: ipv6, and suffixes;
an IPv6 address in a rule or object.
Rolling back to 0.5.x: first roll the configuration back, with sparewall rollback, to a generation that uses no revision 5 setting. Then roll back the node. See schema revisions.
Pairs: until both nodes run 0.6.0, any change that uses a revision 5 setting is refused. Upgrade both nodes first.
Reserved names: names of the form swgw<digits> are now reserved, for a pair's IPv6 gateway links. This covers networks, port roles, VPNs (vpn) and VPN clients (vpn_clients).
Existing rules and IPv6: once a network has ipv6, existing rules that name no addresses apply to IPv6 too. Check rules such as wan->lan accepts before turning IPv6 on.
Sparewall 0.5.0 connects sites and sends traffic through other people's VPNs. It adds:
WireGuard tunnels to other sites;
WireGuard clients that send chosen networks out through a VPN provider or hub;
log forwarding to any syslog collector;
an optional local Prometheus that keeps each node's metric history.
Tunnels
Site-to-site tunnels (#148, #221). A vpn peer with an endpoint is treated as another site.
Connections: the node connects to the other site as well as accepting connections from it.
Routing: the peer's networks are routed through the tunnel.
keepalive: a new per-peer setting that keeps an idle tunnel up and holds it open through NAT.
Endpoints named by DNS: resolved again while the tunnel is quiet, so a site on a dynamic address is found again.
sparewall vpn peer-config NAME: prints the other site's side of the tunnel, for wg-quick.
In a pair: only the master sends to the other site, from the gateway address. After a failover, the new master restarts the tunnel itself. In the pair test, the tunnel was back within 8 seconds.
Requirement: a pair with site peers needs exactly one static WAN, with a gateway address.
VPN clients (#149, #223). vpn_clients.<name> makes the node a WireGuard client of a service it doesn't run, such as a VPN provider, a cloud host or another organization's hub.
What goes through the tunnel: traffic from the networks listed in route.networks, except traffic to the node's own networks. Everything else keeps using the WAN.
Addressing: traffic leaving through the tunnel takes the tunnel's address.
Kill switch (on by default): while the tunnel is down, the routed networks can't reach the WAN.
DNS: DHCP hands the routed networks the client's dns servers.
In a pair: both nodes use the same key, and only the master's tunnel is up. In the pair test, connections through it carried on across a failover.
Health: the new tunnels check is degraded when a site or a service hasn't completed a handshake in three minutes.
Forwarding to a syslog collector (#147, #219). With logging.remote.provider: syslog, the node runs rsyslog, which sends the journal as RFC 5424 syslog to rsyslog, syslog-ng, Graylog or a SIEM.
Protocols: UDP (the default), TCP, TCP over TLS (RFC 5425) or RELP.
TLS:logging.remote.ca takes a private CA. logging.remote.certificate names a secret holding a client certificate; RELP over TLS needs one.
While the collector is down: messages wait on disk, up to 256 MB, and are sent when it is back.
Rule hits: the message carries the rule and the packet.
Health: the new log-forwarding check is degraded while the certificate's secret is missing.
A local Prometheus (#145, #220). With metrics.mode: local, each node keeps its own metric history: what /metrics shows, every 15 seconds.
How long it keeps it:metrics.retention (default 15d) and the new metrics.retention_size (default 1GB).
How it runs: in its own container, as nobody, listening on loopback only, with memory capped at 512 MB.
Querying:org.sparewall.Metrics.Query and QueryRange take PromQL from any token or session with the monitor role or above. Through /call/, a call answers 503 while Prometheus is down.
Not backed up: the history isn't part of the backup bundle.
The image: ghcr.io/sparewall/prometheus is a fourth provider image, bound to the OS image. It adds about 190 MB to each deployment.
Charts in the web UI are planned for 0.6.0 (#222).
A configuration change with the sync link cut (#224, #225). Each node now remembers which schema revision its peer last said it reads, even when the peer is out of reach or the node restarts. That allows --allow-diverge changes that use new settings while the sync link is down; before, only revision-1 changes were accepted.
Recovery times are now in the operations guide, as measured by the pair test.
Testing
New VM tests:
Syslog forwarding over UDP, TCP, TLS and RELP with a client certificate, including a collector outage.
A local Prometheus, including queries through the API.
Site-to-site tunnels: on a single node; and in a pair, across master loss and a rolling upgrade.
A VPN client with its kill switch, on a two-NIC pair, across a failover.
A sync-link cut with a revision 4 configuration.
Upgrade tests start from 0.4.0, on a single node and on a pair.
Upgrading
Run sparewall upgrade on either node, or start it from the web UI. Nodes on 0.4.0 can upgrade straight to 0.5.0.
Schema revision 4. These new settings and values are schema revision 4, and 0.4.x can't read a document that uses any of them:
logging.remote.ca and logging.remote.certificate;
metrics.retention and metrics.retention_size;
vpn.<name>.peers.<peer>.keepalive;
vpn_clients;
the values logging.remote.provider: syslog and metrics.mode: local.
Rolling back to 0.4.x: first roll the configuration back, with sparewall rollback, to a generation that doesn't use any revision 4 setting. Then roll back the node. See schema revisions.
Pairs: until both nodes run 0.5.0, any change that uses a revision 4 setting is refused. Upgrade both nodes first.
Download size: the Prometheus image is pulled with the upgrade even if metrics.mode isn't local.
Sparewall 0.4.0 keeps itself up to date: a node checks for new releases on its own, says so in sparewall status, the login banner and the web UI, and can upgrade itself in a maintenance window. Admins can start an upgrade from the web UI. A box with two network ports and no VLANs is now the documented default layout, backups prune their own old snapshots, and the web UI gains an API page.
Updates and upgrades
Background update check (#188, #198). A node asks its channel's registry for a newer release every six hours and logs when one appears (journal MESSAGE_ID=c8f95979678447529aa9b5914a38a3a0; a failed check is 52e0a9567b834f27aee3019c5703cf13). /metrics has sparewall_update_available{kind} and the time of the last successful check. The check never changes health. On an air-gapped site, turn it off with sparewall set updates.check=false.
Updates in sparewall status, the login banner and the web UI (#189, #190, #200, #204). They show what's available and what's running. When a pair's nodes run different images, status says so. sparewall upgrade --check also shows when the background check last ran.
Scheduled upgrades (#84, #202). With updates.mode: windowed, a node upgrades itself in a maintenance window:
yaml
updates:
mode: windowed
window: "Sun *-*-* 03:00" # a systemd calendar expression
window_minutes: 60 # how long after that an upgrade may still start
- **When it starts:** only on a standalone node or a pair's master, and only when health is ok, no change is pending, and the pair is in sync and not held.
- **If it fails:** health check `upgrade` turns degraded (`MESSAGE_ID=4f0b6f0a8f4c4e1f9c7d2b3a5e6d7c81`). No more windows are tried until `sparewall health ack upgrade`, or until you run an upgrade yourself.
- **The next window:** `sparewall upgrade --check` shows it. See [operations](https://github.com/sparewall/sparewall/blob/v0.4.0/docs/operations.md#upgrades).
Upgrade from the web UI (#191, #205). Admins see an Upgrade button when one is available. The page follows the run through the node's reboot. On a pair's standby, it follows the master's part too, until both nodes run the new image. A node runs one upgrade at a time: a second one is refused, whether it's started from the CLI, the web UI or a window, and a window that finds one running skips.
Security rebuilds (#187, #203). A weekly workflow rebuilds the current release when its Fedora base has security updates. Rebuilds are versioned X.Y.Z+rN (image tags X.Y.Z_rN). They are tested like a release, then offered on stable. 0.4.0 is the first release that can be rebuilt.
Two ports, no VLANs
The documented default is now a two-NIC box (#177, #208): the WAN on one port, and the LAN on the other.
The LAN can also be the management network, and in a pair the sync network.
management.sources limits which addresses reach the node's SSH and HTTPS.
New examples:examples/two-nic.yaml and examples/two-nic-pair.yaml. Getting started begins with this layout.
The trade-off for a pair: a host on the LAN can spoof the peer's address and flood the sync tunnel's port. That can slow replication, but can't read or inject sync traffic. Where LAN clients aren't trusted, a dedicated sync VLAN is still better.
Running Sparewall as a VM (#178, #209). A new guide covers running it beside other VMs on Proxmox or libvirt: keeping the host off the WAN, passthrough versus bridges, and start order.
vmac: false (#194, #199). On a pair with a static WAN block, this puts the gateway addresses back on the nodes' own MACs, for an upstream that can't take one more MAC address.
Backups
backup.retention (#140, #206). After each send, the node prunes its own old snapshots.
The default: keep 48 hourly, 30 daily, 12 weekly and 24 monthly.
Where it prunes: a standalone node or a pair's master also prunes the repository.
If it fails: health check backup-retention turns degraded.
Check the backup password from a workstation (#142, #207). sparewall -c CONTEXT backup --check-password asks the node whether your copy of the password is right.
Web UI
Besides the update card and the Upgrade button, a new API page lists the node's API from its /openapi.json (#161, #210). It shows the role each call needs, with a curl example for each.
Testing
New VM suites:
Two NICs, no VLANs: the new default layout, as a single node and as a pair.
Schema downgrade: an older release given a document it can't read runs the newest generation it can, and health says why.
Mixed versions: a pair refuses a change its older node can't read (#13, #201).
Upgrade tests start from 0.3.3 (single node and pair) and from 0.2.0 (pair).
Upgrading
Run sparewall upgrade on either node, or start it from the web UI. Nodes on 0.3.x and 0.2.0 can upgrade straight to 0.4.0.
Schema revision 3. These new settings are schema revision 3: updates.check, updates.window_minutes, networks.<name>.vmac, backup.retention and management.sources. 0.3.x can't read a document that uses any of them.
Rolling back to 0.3.x: roll the configuration back to a generation that doesn't use them first, with sparewall rollback, then roll back the node.
If you don't: the older release runs the newest generation it can read, and health reports generation failed until you fix it (operations).
Pairs: until both nodes run 0.4.0, a change that uses a revision 3 setting is refused. Upgrade both first.
Nodes installed from 0.3.2's media should have upgraded to 0.3.3 before this. If one hasn't, upgrading it straight to 0.4.0 is fine: 0.4.0 includes 0.3.3's fix.
Sparewall 0.3.3 fixes the install media of 0.3.2, which gave every node the same machine ID. On a pair with a static WAN block, the gateway addresses now move between nodes with a virtual MAC address. It also fixes a pair with one DHCP lease refusing VPN connections on its listen port, and makes later boots faster.
Fixes
Nodes installed from 0.3.2's media keep their secrets (#196, #197).
What happened: a systemd update during the 0.3.2 and 0.3.2-rc1 image builds wrote a machine ID into the images. Every node installed from their ISO or disk image shared it. On the next upgrade, the new image's ID replaced it, and systemd-creds discarded its host key, so the node lost its sealed secrets: the admin password, and anything set with sparewall secret.
The fix: images ship with no machine ID again, and the build fails if one appears. On its first boot of 0.3.3, a node installed from 0.3.2's media gets a machine ID of its own, and its credential key is rewritten for it, so its secrets keep working.
Nodes upgraded to 0.3.2 from an earlier release were never affected.
A pair's static WAN block moves with a virtual MAC address (#176, #195).
What happened: on a WAN with private node addresses, the gateway addresses sat on each node's own MAC. After a handover, the upstream router kept sending to the old master until its ARP cache expired, if it ignored the new master's gratuitous ARP.
The fix: the gateway addresses and the public route now sit on swwan, a link with the VRRP virtual MAC (00:00:5e:00:01:<vrid>). The MAC moves with the addresses, so the upstream doesn't need to relearn anything at a handover.
A pair with one DHCP lease accepts VPN connections on its listen port (#195).
What happened: on a pair whose WAN is one DHCP lease, the firewall admitted the remote-access VPN only on its redirected extra_ports, never on the listen port itself. Earlier releases all had this bug.
The fix: the VPN's input rule now covers the interface that holds the public address.
Later boots skip the /sysroot label check (#172, #193).
What happened: every boot walked all of /sysroot to check its SELinux labels, which slowed boots on a large disk.
The fix: once a deployment has been checked, later boots of it skip the walk. A new deployment is still checked on its first boot.
Testing
CI's ACME test no longer fails at random on a rejected nonce (#171, #192). The upgrade tests now start from 0.3.2's disk image, as a single node and as a pair, and check that a node installed from it keeps its secrets through the upgrade and a rollback.
Upgrading from 0.3.2
Run sparewall upgrade on either node.
Installed from 0.3.2's ISO or disk image? Upgrade to 0.3.3 (or later), not to anything else. Don't change the machine ID yourself.
Rolling back to 0.3.2 keeps your secrets if the node shuts down cleanly first, as bootc rollback and a reboot do. After a crash or a power cut on 0.3.3, a node booted back into 0.3.2 can't read them, and you'd need to set them again.
Pairs with a static WAN block: the gateway addresses move to the virtual MAC during the upgrade, when the upgraded standby takes over.
The upstream sees a new MAC at that handover. A router that ignores gratuitous ARP may drop traffic until its ARP cache expires, typically a couple of minutes. Plan the upgrade for a quiet time.
The upstream sees one more MAC: the virtual one, besides each node's own. If your ISP's equipment or a switch port limits the number of MAC addresses, make sure it allows one more.
The virtual MAC is always on for now; #194 tracks a setting to turn it off.
Upgrading from earlier releases
Nodes on 0.3.1 or 0.2.0 can upgrade straight to 0.3.3 (CI tested it from 0.2.0 as a pair). The 0.3.2 notes cover what to expect: setting the channel once on a node installed from 0.3.1's media, and rolling back the configuration before bootc rollback to 0.3.1 or older.
[!WARNING]
The install media for this release have been withdrawn (#196). The ISO and the raw disk image gave every install the same machine ID, and a node installed from them would lose its sealed secrets (the admin password, and anything set with sparewall secret) on its next upgrade.
Nodes upgraded to 0.3.2 from an earlier release are not affected.
Already installed from this release's media? Upgrade only to 0.3.3 or later. It gives the node a machine ID of its own and keeps its secrets.
Sparewall 0.3.2 makes upgrades and rollbacks safer. A node that can't read its configuration now stays reachable. A rollback runs the newest configuration the image can read. A pair upgrade downloads the new image before anything moves. Upgrades compare versions and won't go backwards by accident. It also fixes VRRP adverts being rewritten on a pair's static WAN block. And CI now upgrades from earlier releases before every release.
Fixes
A node that can't read its configuration stays reachable (#169, #173).
What happened: if the active document couldn't be read at boot, for instance after rolling back to an image that doesn't understand it, the node came up with no network at all.
The fix: it now boots into the bootstrap configuration, with its management port and SSH, so you can repair it remotely.
A rollback runs the newest configuration the image can read (#168, #182).
What happened: documents carried no notion of which release could read them. After an image rollback, an older release met settings it didn't know.
The fix:schema is now the oldest revision that can read a document (management.web needs revision 2). A node runs the newest generation it can read, and health says which generation it can't read and why.
In a pair: a node refuses a change its peer can't read, and tells you to upgrade the peer first.
VRRP adverts are no longer rewritten on a pair's static WAN block (#174, #183).
What happened: on a WAN with private node addresses, the egress SNAT could rewrite the master's own adverts, so the standby logged "Invalid VRRPv3 checksum" for every one.
The fix: adverts are now never tracked by conntrack, so the SNAT leaves them alone. If you added a raw rule with ip protocol vrrp notrack as a workaround, you can remove it.
A pair upgrade downloads the new image before anything moves (#175, #184).
What happened: a failed or slow download could leave a pair half upgraded.
The fix:sparewall upgrade downloads the image on the master first, with retries, and stops before touching either node if that fails. Then it upgrades the standby, hands over, and applies the image it already has. Running it again on a pair that's already current finishes at once, and operations explains how to finish a run that stopped halfway.
Upgrades compare versions and default to stable (#170, #185).
Versions: images now carry their version (org.sparewall.version), and sparewall upgrade --check shows it next to the node's own.
No accidental downgrades: an older image is refused unless you pass --allow-downgrade.
Channels: a node that tracks a build or release tag, as one installed from a release's ISO or disk image does, now follows stable.
Older images: images from 0.3.1 and earlier have no version label, so for them the comparison falls back to digests.
Testing
Before each release, CI now installs earlier releases from their published disk images and upgrades them to the candidate (#166, #186). This time that was 0.3.1 as a single node, and 0.3.1 and 0.2.0 as pairs. The tests check that the configuration, secrets, tokens and users carry over, that the gateway moves exactly once, that connections survive, and that bootc rollback works.
Upgrading from 0.3.1
Run sparewall upgrade on either node. The upgrade itself still runs with 0.3.1's code: the download-first order, the version checks and the stable default apply from your next upgrade on.
Installed from a release's ISO or disk image? A 0.3.1 node still tracks its own build, so set the channel once first with sparewall set updates.channel=stable. That doesn't upgrade anything, and in a pair it reaches both nodes. Then run sparewall upgrade as usual.
While a pair is half upgraded, if the configuration uses management.web, the 0.3.2 node refuses changes because its 0.3.1 peer can't read the new schema revision ("upgrade the peer first"). Make changes on the 0.3.1 node, or after both are upgraded.
Rolling back to 0.3.1 or older: only 0.3.2 and later fall back to a configuration they can read. Before bootc rollback to an older release, roll the configuration back to a generation from before the upgrade (sparewall history, then sparewall rollback <id>).
Upgrading from 0.2.0
Nodes on 0.2.0 can upgrade straight to 0.3.2, as CI now tests. The 0.3.0 notes cover what's new since 0.2.0, and the 0.3.1 notes cover what to expect: the degraded SELinux check after the /sysroot denial (sparewall health ack selinux), rolling back, and holding off on new settings until both nodes of a pair are upgraded.
Sparewall 0.3.1 fixes two bugs in 0.3.0 that showed up when the coordinator restarts. With the web UI turned on, it could get stuck restarting over and over. With rule logging on, health briefly reported failed after every restart.
Fixes
sparewalld no longer deadlocks restarting with the web UI on (#164, #165).
What happened: with management.web: true, any restart of sparewalld while sparewall-httpd was running stalled the coordinator's own start. That includes a crash or a watchdog abort, such as after the host of a VM node was suspended. systemd killed it after 45 seconds, and it restarted into the same stall indefinitely.
The effect: traffic kept flowing, but the CLI, the health endpoints and the web UI were down until someone ran systemctl stop sparewall-httpd.
The fix:sparewall-httpd is now ordered like the other services the coordinator starts, so a restart finishes in seconds. A unit test keeps any service the coordinator starts from being ordered after it, and the VM tests restart the coordinator with the web UI on.
Health no longer fails briefly after a coordinator restart when rules are logged (#165).
What happened: on a node with log: true on any rule, every restart of sparewalld left sparewall-ulogd failing for about five seconds, so health reported failed. The coordinator restarted ulogd before opening the socket ulogd sends logged packets to, so ulogd exited and systemd started it again 5 seconds later.
The effect: in a pair, those seconds lowered the node's VRRP priority, and logged packets were lost while ulogd was down.
The fix: the coordinator now opens the socket before it restarts ulogd.
Upgrading from 0.3.0
Run sparewall upgrade on either node. If a 0.3.0 node with the web UI on is already stuck restarting, run sudo systemctl stop sparewall-httpd first. The coordinator then finishes starting and starts the web UI again itself.
Installed from a release's ISO or disk image? Such a node tracks its own build, not the stable channel, so sparewall upgrade finds nothing new (#170). Set the channel once with sparewall set updates.channel=stable, which doesn't upgrade anything, then run sparewall upgrade as usual. In a pair, the setting reaches both nodes.
Upgrading from 0.2.0
Nodes on 0.2.0 can upgrade straight to 0.3.1. The 0.3.0 notes cover everything new since 0.2.0. Things to expect:
The SELinux check stays degraded if the node logged the /sysroot denial on 0.2.0 (#159). 0.3.x labels those files at boot, so no new denials follow. Clear the old one with sparewall health ack selinux.
Rolling back to 0.2.0 with bootc rollback fails once the configuration uses anything new in 0.3.x, such as management.web: 0.2.0 can't read the document, and the node comes up without its network (#168, #169). Roll the configuration back to a generation from before the upgrade first (sparewall history, then sparewall rollback <id>), then roll back the image.
Don't use new settings until both nodes of a pair are upgraded. A 0.2.0 peer can't take a document with them, so the pair stays out of sync until it is upgraded too.
Sparewall 0.3.0 brings a web UI and an HTTP API, both off until the document turns them on. It also adds named users with password logins, API tokens with roles, and checks against pasting the wrong secret. Rule logging now works on a node, and the image ships the QEMU guest agent.
New
The web UI (#134, #135, #137, #138, #150, #154, #156). Turn it on with sparewall set management.web=true, then open https://<node>/ and sign in as a named user.
Status: the node's status and health as they change, and the history, from which an operator can roll back.
Configuration: the configuration as a form built from the document's schema, one section at a time from a sidebar, with a search over every setting. An operator edits it, reviews the node's own dry run, and applies it with a window to confirm the change in.
Zone policy: a matrix of every pair of zones. Edits to several pairs are reviewed and applied together.
Users and tokens: for admins.
The UI offers only what the user's role allows, and the node checks every call regardless. It loads nothing from outside the node.
An HTTP API (#129, #131, #133). Every method open to tokens is POST /call/<interface>.<Method>, described by an OpenAPI 3.1 document at /openapi.json that is generated from the node's own interfaces.
The coordinator keeps the HTTPS port and its certificate. It passes API and UI paths to sparewall-httpd, a sandboxed service in its own SELinux domain that holds no authority of its own: each call runs with the caller's token or session, under that role.
A failed sparewall-httpd marks health degraded rather than failed, so it never moves the gateway addresses.
Roles and API tokens (#127). Tokens carry a role: monitor, viewer, operator or admin. They work on a restricted socket that the CLI uses when SPAREWALL_TOKEN is set. A revoked token stops working at once, even on open connections. A refused call exits 6.
Named users (#128). sparewall user add|passwd|role|list|remove manages users. Only a hash leaves your machine.
Users are cluster secrets, so the peer and the backup have them too.
A login opens a 12-hour session on that node. Changing a user's password or role, or removing the user, ends that user's sessions at once.
After five failed logins in 15 minutes, logins as that user are refused until the 15 minutes pass.
It warns about a carriage return or whitespace at either end of the value.
It reports the stored length. --fingerprint also gives the first 8 hex digits of the value's SHA-256.
sparewall backup --check-password reports whether a password opens the newest backup bundle. Run it after setting backup-password, before the first backup reaches the repository.
The QEMU guest agent (#158). A node running under libvirt, Proxmox or another QEMU host reports its addresses and file systems to the host, and the host can freeze the file systems for consistent snapshots.
The agent is limited to an allow-list of commands. Commands that run programs, read or write files, or change passwords and SSH keys are refused.
On hardware, and on hosts without the agent's channel, it doesn't start.
Fixes
Rule logging (#151). In 0.2.0, a document with log: true on any rule left the node failed. sparewall-ulogd crash-looped under SELinux, and logged packets never reached the journal. It now runs, and hits are in the journal under F_RULE (see logged traffic).
Unlabelled files under /sysroot (#159). Disks written by the installer and disk images left the ostree repository's metadata and /sysroot/boot without SELinux labels, and services touching them logged denials. A unit early in boot now labels what is left unlabelled, and does nothing once everything is labelled.
The Homebrew formula (#163). The formula now clears the macOS quarantine attribute with Homebrew's post_install_steps, since current Homebrew rejects formulas that use post_install.
Security advisory RUSTSEC-2026-0385 (#130). ctutils before 0.4.4 could build masks in time that depended on secret data. 0.3.0 takes ctutils 0.4.5.
0.2.0 was not exploitable. It used the affected code only to hash passwords on the client (sha-crypt) and to derive the local backup key (argon2), and neither offers a remote timing oracle.
Password checks on the node arrive in this release, after the fix.
Documentation
The web UI is documented (#162). The README and the getting started guide now show how to turn it on. Operations lists its pages.
Upgrading from 0.2.0
Run sparewall upgrade on either node. Things to expect:
The web UI and API stay off until management.web is set. Nothing new listens until then.
Labelling at boot: the first boot of 0.3.0 labels any unlabelled files under /sysroot before sparewalld starts. Later boots only check for unlabelled files, which takes a few seconds.
Rule logging starts working: a node with log: true rules that was failed on 0.2.0 comes up healthy. Its logged packets start reaching the journal.
Exit code 6 is new: the CLI uses it for a call refused for the token's role.
Sparewall 0.2.0 brings the sparewall CLI to macOS, arm64 Linux and Homebrew, an operator-driven failback for HA pairs, admin password logins over SSH as an opt-in, and node names as hostnames.
New
sparewall failover (#122, #126). A pair keeps nopreempt, so after both nodes restart, or a node is replaced, the smaller node can stay master indefinitely. sparewall failover moves the gateway addresses to the node with the higher VRRP priority, or to --to NODE, from either node.
Gates: the target must be the backup, healthy, running the same configuration, and the pair in sync and not held.
The handover: the master yields as it would on failing, so connection tracking carries over, and then stays the backup.
Automatic failback: sites that want it can set cluster.vrrp.preempt_delay_s. The delay is then the only protection against flapping, and validate warns about it.
The CLI on macOS, arm64 Linux and Homebrew (#87, #114, #120, #121).
The release now carries the CLI for Apple silicon and Intel Macs (signed ad hoc, not notarized) and for arm64 Linux (static).
brew install sparewall/tap/sparewall installs it on macOS or Linux, x86_64 or arm64, with shell completions, and clears the macOS quarantine attribute itself.
Each release updates the tap.
Admin password logins over SSH, as an opt-in (#89, #125). The admin console password from 0.1.x stays console-only unless the document sets management.ssh.password: true, applied and confirmed like any change. Keys keep working either way.
The node name is the hostname (#109, #123). Nodes no longer all call themselves fedora: prompts, the journal and anything else that reports the hostname now show the node's name.
Fixes
TLS certificate checks (#124): the ACME client's certificate verification takes the fixes for RUSTSEC-2026-0382 and RUSTSEC-2026-0383 (distrusted emSign intermediates).
Upgrading from 0.1.3
Run sparewall upgrade on either node. Things to expect:
Hostnames: each node renames itself from fedora to its node name when sparewalld first starts on 0.2.0. Shells opened before the upgrade keep the old name in their prompt.
Node names: a node name may no longer end with - (it could not be a hostname). Every other name valid before is still valid.
keepalived and sshd: a pair's keepalived configuration gains the track script sparewall failover uses, so keepalived reloads during the upgrade, as for any configuration change. sshd now appears in health's services check.
Sparewall 0.1.3 fixes sparewall upgrade for a pair that already tracks the channel it upgrades to, and lets an upgrade start from either node of a pair.
Fixes
A node tracking the target reference is upgraded (#116, #118). sparewall upgrade staged the new image with bootc switch, which does nothing when the node already tracks that reference ("Image specification is unchanged"). So a node following :stable could never take the next stable release: the upgrade stopped with "already running the newest image". The node now stages with bootc upgrade in that case.
New
Start an upgrade from either node of a pair (#117, #119). On the backup, sparewall upgrade hands the request to the master, which runs the same rolling, health-gated upgrade. The command on the backup shows the master's plan and progress until the backup reboots for its own upgrade; follow the rest with sparewall status or the master's journal.
Upgrading from 0.1.2
0.1.2's own upgrade code has both problems fixed here, and it is the code that runs this upgrade, so:
Run sparewall upgrade on the master. Started on the backup, 0.1.2 refuses it.
Name a reference the nodes don't already track. The booted: line of sparewall upgrade --check shows the reference a node tracks.
A node that tracks a version tag (such as ghcr.io/sparewall/sparewall:0.1.2): sudo sparewall upgrade --channel stable.
A node that already tracks :stable: sudo sparewall upgrade --image ghcr.io/sparewall/sparewall:0.1.3. Afterwards it tracks :0.1.3, and the next upgrade can use --channel stable (from either node, with 0.1.3).
From 0.1.3 on, a plain sparewall upgrade, on either node, is enough.
Sparewall 0.1.2 fixes upgrades and two SELinux denials, and adds two small operator features.
Fixes
Upgrades no longer fail with "A signature was required, but no signature exists" (#108). Images were signed only in cosign 3's new referrer format, which bootc and podman don't read. They are now signed in the legacy .sig format, and CI checks every published image against the node's own signature policy. A node checks only the image it upgrades to, so 0.1.0 and 0.1.1 nodes can upgrade to 0.1.2 directly. The 0.1.1 images have also been signed again in the legacy format.
bootc's SELinux denial (#110, #112). When the coordinator ran bootc, its permission probe logged a mac_admin denial on every run. The image's policy now runs bootc in install_t.
bootupd denied reading /boot (#111, #112). Fresh installs leave bootupd's files in /boot unlabelled. The new sparewall-label-boot.service relabels /boot on every boot, before bootupd runs.
An optional admin console password, synced to both nodes of a pair as a cluster secret (#105).
Upgrading from 0.1.1
No manual steps are needed. On the first boot of 0.1.2, /boot is relabelled automatically, so you don't need to run restorecon. If sparewall health still reports SELinux denials logged before the upgrade, acknowledge them with sudo sparewall health ack selinux.
The first release: milestones 0 to 5 of the design. A standalone node or an active/standby pair, configured from one document with confirm and rollback, serving DHCP, DNS and time, with remote-access WireGuard, ACME certificates and rolling, signed upgrades.
An unattended installer ISO, raw and qcow2 disk images, and the CLI for x86_64 Linux.
SHA256SUMS signed with the project key, and SPDX SBOMs for the image and the CLI.
The coordinator runs in its own enforcing SELinux domain.
Earlier prereleases
0.7.0-rc1 (November 19, 2026): a release candidate for 0.7.0.
0.6.1-rc1 (November 17, 2026): a release candidate for 0.6.1.
0.6.0-rc1 (November 10, 2026): a release candidate for 0.6.0.
0.5.0-rc1 (November 3, 2026): a release candidate for 0.5.0.
0.3.2-rc1 (November 1, 2026): a release candidate for 0.3.2.
0.3.0-rc1 (October 27, 2026): a release candidate for 0.3.0.
0.1.1-rc1 (October 18, 2026): a release candidate for 0.1.1.
0.1.0-rc1 (October 18, 2026): a release candidate for 0.1.0.
0.1.0-beta1 (October 18, 2026): a test of the release pipeline, not meant for use.