Documentation

High Availability

One toggle, one dedicated port, two nodes with byte-identical config, and failover by layer-2 MAC/IP takeover.

HA is a single system-wide toggle. Enable it, pick the dedicated HA port, and two mirrored nodes run identical configuration and behave as one system. Tested and shipping on Business+.

HA cluster

Why not CARP

CARP works but adds concepts operators trip over — virtual routers, VHIDs, advskew, and a shared virtual IP on top of each node's address. SecureGuard follows the Astaro/Sophos UTM model: exactly one IP and one MAC per data segment, on whichever node is active.

How failover works

  • One cluster MAC and IP per data port; the MAC is derived from the port name, so both nodes compute it without coordinating.
  • Every node starts passive with data ports down — the cluster MAC is on the network from one node or none.
  • Nodes heartbeat over the HA link and mirror connection state with pfsync.
  • On promotion, the controller programs the cluster MAC/IP, brings ports up and sends gratuitous ARP (and IPv6 neighbor advertisements). Neighbor ARP caches don't churn.
  • Because pf state is synced, established sessions survive the cutover.

Config is mirrored, byte for byte

The whole configuration is content-addressed and synced. The only difference is which box is node 1 vs node 2 — a local fact kept out of the synced document. Both nodes must have the same interface layout; a pre-commit consistency gate rejects a commit whose topology differs from the peer.

Avoiding split-brain

  • A node promotes only when the peer has been absent for the failover hold time and it holds the HA link.
  • If the HA link drops but peer traffic is still observed, the node stays passive.
  • Make the HA link redundant — directly cabled or an aggregate.

Virtual deployments

Failover reprograms MAC addresses. On VMware/ESXi, set MAC address changes: Accept and Forged transmits: Accept on the port group; on Hyper-V, enable MAC address spoofing. Without these, failover presents as a total loss of connectivity.


Something unclear? Tell us and we'll improve this page.