# SSL off-loading and secure WebSocket

**URL:** <https://community.f5.com/t/ssl-off-loading-and-secure-websocket/19346>\
**Category:** Technical Forums\
**Tags:** big-ip, ssl, web-sockets, ssl-offloading, ssl-offload\
**Created:** [January 23, 2014, 10:40am UTC](https://community.f5.com/t/ssl-off-loading-and-secure-websocket/19346 "2014-01-23T10:40:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtortola\_141944](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@vtortola\_141944](https://community.f5.com/u/vtortola_141944)\
**Post date:** [January 23, 2014, 10:40am UTC](https://community.f5.com/t/ssl-off-loading-and-secure-websocket/19346/1 "2014-01-23T10:40:24Z")

</div>

Hi,

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?

Thanks.

---

<div class="post-metadata">

**Author:** ![nitass\_89166](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@nitass\_89166](https://community.f5.com/u/nitass_89166)\
**Post date:** [January 23, 2014, 2:08pm UTC](https://community.f5.com/t/ssl-off-loading-and-secure-websocket/19346/2 "2014-01-23T14:08:58Z")

</div>

it is supported in 11.4.0 or later.

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

> **[404 Page not found | BIG-IP Documentation](https://techdocs.f5.com/kb/en-us/solutions/public/14000/700/sol14754.html)**
>
> Usage information and technical documentation for BIG-IP and other related F5 products

---

<div class="post-metadata">

**Author:** ![nitass](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/nitass/32/2270_2.png) [@nitass](https://community.f5.com/u/nitass)\
**Post date:** [January 23, 2014, 2:08pm UTC](https://community.f5.com/t/ssl-off-loading-and-secure-websocket/19346/3 "2014-01-23T14:08:58Z")

</div>

it is supported in 11.4.0 or later.

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

> **[404 Page not found | BIG-IP Documentation](https://techdocs.f5.com/kb/en-us/solutions/public/14000/700/sol14754.html)**
>
> Usage information and technical documentation for BIG-IP and other related F5 products

---

<div class="post-metadata">

**Author:** ![vtortola\_141944](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@vtortola\_141944](https://community.f5.com/u/vtortola_141944)\
**Post date:** [January 23, 2014, 2:39pm UTC](https://community.f5.com/t/ssl-off-loading-and-secure-websocket/19346/4 "2014-01-23T14:39:51Z")

</div>

That link does not say anything about WSS and SSL off-loading.

---

<div class="post-metadata">

**Author:** ![vtortola\_141944](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@vtortola\_141944](https://community.f5.com/u/vtortola_141944)\
**Post date:** [January 23, 2014, 2:39pm UTC](https://community.f5.com/t/ssl-off-loading-and-secure-websocket/19346/5 "2014-01-23T14:39:51Z")

</div>

That link does not say anything about WSS and SSL off-loading.

---

<div class="post-metadata">

**Author:** ![sachin\_80710](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sachin\_80710](https://community.f5.com/u/sachin_80710)\
**Post date:** [September 6, 2014, 5:39pm UTC](https://community.f5.com/t/ssl-off-loading-and-secure-websocket/19346/6 "2014-09-06T17:39:13Z")

</div>

On askf5 we don’t find any document that explain how to configure websocket on 11.4.0 n later

---

<div class="post-metadata">

**Author:** ![nitass](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/nitass/32/2270_2.png) [@nitass](https://community.f5.com/u/nitass)\
**Post date:** [September 7, 2014, 12:41am UTC](https://community.f5.com/t/ssl-off-loading-and-secure-websocket/19346/7 "2014-09-07T00:41:52Z")

</div>

i understand what it does is to disable http profile when detecting upgrade header (ssl profile is still applied).

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [September 7, 2014, 3:46am UTC](https://community.f5.com/t/ssl-off-loading-and-secure-websocket/19346/8 "2014-09-07T03:46:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![D99](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@D99](https://community.f5.com/u/D99)\
**Post date:** [March 15, 2021, 8:25am UTC](https://community.f5.com/t/ssl-off-loading-and-secure-websocket/19346/9 "2021-03-15T08:25:25Z")

</div>

I also have a similar requirement. Were you able to get a solution
