HTML5 Getaway Self Hosted - Load Balancing Recommendations
Objective
For Idira PAM Self‑Hosted HTML5 Gateway, correct load balancer configuration is critical. HTML5 GW sessions are stateful and rely on long‑lived HTTPS and WebSocket connections. If requests are routed to different gateway instances during a session, users will see disconnects, black screens, or inconsistent behavior.
Below are the recommended and tested load balancer requirements.
Environment
Privileged Access Manager (PAM, self-hosted);Remote Access (formerly Alero)
Procedure
General requirements for all load balancers:
- Use an L7 / Application Load Balancer
Layer 4 load balancers are not supported because they cannot properly handle HTTP and WebSocket traffic. - Enable sticky sessions (session affinity)
All requests for a given browser session must be routed to the same HTML5 Gateway instance for the full session duration. - Session persistence timeout must be long
Persistence must outlive the full user session. Few minutes are not sufficient. - WebSocket support over HTTPS (TCP 443)
The HTML5 Gateway uses secure WebSockets for tunneling sessions. - SSL passthrough or re‑encryption
SSL inspection or WAF features may interfere with WebSockets and should be disabled or carefully validated. - Use VIP / farm address when registering the gateway in PVWA
When multiple gateways are deployed, the PVWA must reference the load balancer VIP, not individual nodes.
Recommended persistence method per load balancer type:
ADC / NetScaler / F5 / HAProxy / NGINX:
- Primary persistence: Cookie‑based persistence (LB‑generated cookie)
- Persistence timeout: 60 to 120 minutes
- Backup persistence: SOURCEIP can be used as a fallback only
- Netmask: /32 if SOURCEIP is used
- Do not use SSL session ID persistence with short timeouts
Notes: SSLSESSION persistence with short expirations (for example 2 or 5 minutes) is a common cause of intermittent HTML5 session failures and is not recommended.
Google Cloud HTTPS Load Balancer:
- Load balancer type: HTTPS Application Load Balancer
- Session affinity: Generated cookie
- Affinity cookie TTL: at least 3600 seconds, preferably 7200 seconds
- Backend timeout: Increase to support long‑lived sessions and WebSockets
- Do not rely on default short affinity TTLs
Health check recommendation:
For HTTPS health checks use the endpoint:
https://htmlgw_fqdn/guac/rest/healthcheck
* This is HTML5 Gateway application health endpoint is commonly used for load balancer health checks in tested deployments.
Common misconfigurations that cause failures:
- Sticky session timeout in minutes instead of hours
- SOURCEIP persistence with NAT’d users or proxy traffic
- SSL inspection or WAF interfering with WebSockets
- LB routing switching nodes mid‑session
- Short backend or idle timeouts on HTTPS listeners
Relevant documentation:
Deploy HTML5 Gateway for PSM
https://docs.cyberark.com/remote-access-standard/latest/en/content/landingpages/lphtml5gw.htm
Install PSM HTML5 Gateway
https://docs.cyberark.com/pam-self-hosted/latest/en/content/pas%20inst/install_psm_html5.htm
Idira guidance explicitly noting sticky sessions behind a load balancer
https://docs.cyberark.com/pam-self-hosted/latest/en/content/pasimp/psso-configurereconnect.htm