Forum Discussion

ashwing867_2398's avatar
ashwing867_2398
Icon for Nimbostratus rankNimbostratus
Dec 16, 2015

enable websocket in F5

Hi Team,

 

I need to enable websocket in F5 and at the same time maintain the current SSL connection and persist cookies configuration.

 

Below is the current iRule configuration.

 

when HTTP_REQUEST { set uri [HTTP::uri] if { $uri starts_with "/s1" } { set uri [string range $uri 3 end] if { $uri eq "" } { set uri "/" } HTTP::uri $uri pool beta.resorts_pool_80_S1 } elseif { $uri starts_with "/s2" } { set uri [string range $uri 3 end] if { $uri eq "" } { set uri "/" } HTTP::uri $uri pool beta.resorts_pool_80_S2 } else { persist cookie pool beta.resorts_pool_80 } }

 

Can I append the below text in irule?

 

when SERVER_CONNECTED { if { "websocket" eq [string tolower [HTTP::header value "Upgrade"]] } { HTTP::disable } }

 

Will this establish a websocket connection without disrupting the existing cookie and SSL offloading.

 

Some more info:

 

Our version : BIG-IP 11.3.0 Build 3164.27 Engineering Hotfix HF10. Pool members : Two.

 

  • Can you upgrade your version at least to 11.4.0? In this case you can use websocket without disabling the http profile.