We have a Big-IP load balancer, and we are planning to publish a web application that uses secure WebSockets (WSS).
We are a little bit concerned about how the load balancer is going to handle this situation, because the SSL offloading. Is there anything special we have to configure or taken care off?
Clients will send an HTTPS request with a WebSocket handshake, that includes the HTTP headers “Upgrade:websocket” and “Connection:Upgrade”. Will the load balancer populate those headers to the web server? Will the load balancer understand that those connections are persistent and non-HTTP?
prior 11.4.0, you can use tcp virtual server with clientssl/serverssl profile or http virtual server with clientssl/serverssl profile and irule to disable http profile for websocket traffic.
sol14754: BIG-IP support for the WebSocket protocol
prior 11.4.0, you can use tcp virtual server with clientssl/serverssl profile or http virtual server with clientssl/serverssl profile and irule to disable http profile for websocket traffic.
sol14754: BIG-IP support for the WebSocket protocol
If I may add, the point is that the F5 doesn’t really understand the WSS protocol messages, so the HTTP profile would likely break it. If you don’t use an HTTP profile and simply treat the traffic as TCP data, you can offload the SSL and optionally re-encrypt without touching the layer 7 data. It’d be like passing any other non-standard TCP-based protocol through the F5.