Tunnel: Realm Host V2 Ha
[Install] WantedBy=multi-user.target
Introduction: The Need for Uninterrupted Connectivity In the modern era of edge computing, microservices, and remote work, a single point of failure in your network gateway is no longer acceptable. Whether you are running a home lab, a corporate VPN, or a geo-distributed proxy mesh, downtime translates directly to lost productivity or revenue.
Enter combined with a High Availability (HA) Tunnel setup. While standard Realm Host provides a robust, cross-platform (Windows, macOS, Linux) reverse proxy and tunnel solution, the "V2 HA Tunnel" architecture elevates it into carrier-grade territory. realm host v2 ha tunnel
, use state BACKUP and priority 100 . This ensures the VIP floats only to the node where the Realm daemon is healthy. Step 4: Systemd Service for Automatic Restarts Create /etc/systemd/system/realm-ha.service :
Note: In a true HA setup, 0.0.0.0:8443 is bound on all nodes, but only the VIP owner routes traffic. Install Keepalived on both nodes: [Install] WantedBy=multi-user
Start small: set up the active-passive HA described in this article over a weekend. Once you experience a transparent failover—where your curl command continues streaming data despite one server being yanked offline—you will never go back to standalone tunnels.
Enable and start:
vrrp_script chk_realm script "/usr/local/bin/realm health check --port 8443" interval 2 fall 2 rise 2
