Forum Discussion
Ellison_Zhang_2
Nimbostratus
May 26, 2017How to enable WebSocket in BigIP LTM V12.1
Hi experts, Is there any step by step on how to enable websocket in BigIP LTM V12.1? we have HTTP/HTTPs on VIP. Now we want WS/WSS enabled for the same VIP. How can I archive it.
current conf:
ltm virtual vs1_http {
description "vs1 HTTP vip"
destination 10.10.1.1:http
ip-protocol tcp
mask 255.255.255.255
partition common
persist {
vs1_cookie {
default yes
}
}
pool vs1_pool
profiles {
/Common/tcp { }
vs1_http { }
}
rules {
/Common/_sys_https_redirect
}
source 0.0.0.0/0
source-address-translation {
type automap
}
translate-address enabled
translate-port enabled
vs-index 1565
}
ltm virtual vs1_https {
description "vs1 HTTPS vip"
destination 10.10.1.1:https
ip-protocol tcp
mask 255.255.255.255
partition common
persist {
vs1_cookie {
default yes
}
}
pool vs1_pool
profiles {
/Common/tcp { }
vs1_https { }
vs1_https_clientssl {
context clientside
}
}
rules {
vs1_sslsessionid-inject
}
source 0.0.0.0/0
source-address-translation {
type automap
}
translate-address enabled
translate-port enabled
vs-index 1564
}
- Anesh
Cirrostratus
Try the below iRule in vs1_http
when HTTP_REQUEST { if { [string tolower [HTTP::header Upgrade]] contains "websocket" }{ HTTP::disable } }
- rithi_237567
Nimbostratus
@Ellison, did you got backend node response 101 instead of 302. If so could you please provide the solution you used.
- brogan_115804Historic F5 Account
The /Common/_sys_https_redirect iRule is causing the BIG-IP itself to respond with 302 redirect (to the same URL on HTTPS).
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects