APM + LTM: Web socket issue

Dear Colleagues, I have been asked to configure load balancing on F5 between two web servers and provide secure access to it. I configured virtual server on F5 LTM and I configured access policy which allow user to login to application with using webtop. After implementation I get below error which affect.

Virtual server: WebSocket connection to ‘wss://URL’ failed: Error during WebSocket handshake: Unexpected response code: 504

Webtop + Virtual server: WebSocket connection to ‘wss://URL’ failed: Error during WebSocket handshake: Unexpected response code: 302

I use BIG-IP in version 12.1.2 Should I configure come Web Socket profile on virtual servers, please could you advise?

Hello Wogo,

On your VS did you selected the default “Websocket” profile and tried with that one ?

When I try to connect with VS without APM I get below error WebSocket connection to ‘wss://URL’ failed: Error during WebSocket handshake: Unexpected response code: 504

When I try to connect with VS through APM I get below errors: Webtop + Virtual server: WebSocket connection to ‘wss://URL’ failed: Error during WebSocket handshake: Unexpected response code: 302 Uncaught ReferenceError: F5_Inflateindex is not defined.

On VS I applied profiles: TCP, WebSocket, HTTP, SSL (Client and Server), wancompresion, oneconnect

1) First of all, without F5 when passing directly, does it work ?

2) Then pass the VS_1 to “Performance Layer 4” without any profile except TCP ? Once you validate this, we can go further

1) First of all, without F5 when passing directly, does it work ?

Yes, when I connect to servers directly application works fine.

2) Then pass the VS_1 to “Performance Layer 4” without any profile except TCP ? Once you validate this, we can go further

When I changed VS to Performance Layer 4 VS went down. It uses SSL profiles and they missed.

VS went down (red) ? how is it possible since you didn’t make any change to your pool…

On which port you VS is listenning ? and on which port your backend are listenning.

Based on you this

On VS I applied profiles: TCP, WebSocket, HTTP, SSL (Client and Server), wancompresion, oneconnect

I guess that both VS & backend listen on 443, can you confirm ?

Yes you are right

Normally it should work without ssl profiles because in Layar 4 ssl handshake will be handled by the pool member.

Could you confirm that the pool is green and the VS is green also ?