# pfSense: control-plane VIP and HAProxy (one-time setup) Do this once, before deploying `02-k8s-bootstrap`. It creates the address that `controlPlaneVipAddress` points at. The `@pulumi/pfsense` provider used by `01-proxmox-infra` doesn't expose Virtual IP or HAProxy resources (only DHCP static mappings, DNS overrides, and firewall aliases), so this is manual, not Pulumi-managed. For why the VIP lives on pfSense at all, see [the decision record](../decisions/0001-control-plane-vip-via-pfsense-haproxy.md). 1. Confirm `controlPlaneVipAddress` falls outside the DHCP pool (Services → DHCP Server → Range). 2. Firewall → Virtual IPs → Add: Type = `IP Alias`, Interface = `LAN`, Address = `/32`. 3. System → Package Manager → install `haproxy` if not already installed. 4. Services → HAProxy → Backend: add a pool (e.g. `k3s-apiservers`), mode `TCP`, health check `TCP check` (or `ssl-hello-chk`), servers = `:6443`, `:6443`, `:6443`. 5. Services → HAProxy → Frontend: add a frontend listening on `:6443`, type `TCP` (not HTTP — this must stay an opaque passthrough so clients validate k3s's own TLS cert, not one terminated at pfSense), default backend = the pool from step 4. 6. Services → HAProxy → Settings: enable HAProxy, apply.