Learn

High availability

Two WAF Gateways can run as an active-passive pair: the primary handles all traffic and configuration changes; the standby receives every change within seconds and is ready to take over.

High availability

Pairing two gateways

  1. On the primary gateway, open High availability → Show a pairing code. The code is valid for 10 minutes.
  2. On the standby gateway, open High availability → Join as standby. Enter the primary's address and the pairing code.
  3. The standby's configuration is replaced by the primary's. From then on, make all changes on the primary.

The standby shows a banner "This is the standby of …" and refuses configuration changes.

What is replicated

  • Every configuration version (applied on the standby as a new version within seconds)
  • Certificates and their private keys
  • User accounts, teams, roles, two-factor keys and recovery codes
  • Remote access settings, e-mail, AI and location settings
  • Signature pack (after the same signature check)
  • IP reputation lists (the downloaded files)
  • Bans (lifted and new bans are passed on at once; sessions at the next check interval)
  • Sign-in sessions of protected routes (visitors stay signed in after a failover)
  • Audit log

What stays per gateway

  • Request log
  • Traffic counts and history
  • Rate-limit counters
  • Location cache
  • Login history

Failover

When the primary fails, the network must move traffic to the standby. On Linux, keepalived with a shared virtual IP address is included in the package. On Windows, use a load balancer or DNS with a short TTL.

To promote the standby to primary: open High availability → Promote to primary, or run wafctl ha promote on the standby machine.

When the old primary comes back: both gateways act as primary — the one with the older configuration refuses changes until you open Become the standby of … on it.

Dashboard and alerts

The dashboard shows the pair's state: role, in sync or how many versions behind, last contact. When the pair has been out of sync or out of contact for more than 5 minutes, a red alert appears on the dashboard and an alert webhook fires (if configured).

Example: updating one gateway at a time

  1. Update the standby first (download the new package, run the installer). It restarts; the primary continues serving traffic.
  2. When the standby is back and in sync, promote the standby to primary (wafctl ha promote).
  3. The old primary becomes the standby. Update it now.
  4. When it is back and in sync, optionally promote it back to primary.

This way there is no downtime during the update.