Forum Discussion
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.
- Koni_51721Cirrus
Can you upgrade your version at least to 11.4.0? In this case you can use websocket without disabling the http profile.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com