Forum Discussion

Rakesh_Paliwal_'s avatar
Rakesh_Paliwal_
Icon for Nimbostratus rankNimbostratus
Mar 24, 2017

Websocket config in F5 11.4.1

Hi I did setup f5 for web-socket with SSL termination, ssl profile , HTTP profile and cookie persistence. Issue is Client able to send the message but its not happening vice versa. When Client send the message its come via f5 vip and hit server but server unable to send back message to client. Please advise solution for this.

 

6 Replies

  • Let me provide some more details - "" The client application is able to establish secure websocket connection to the server application through the LTM, but after the websocket connection has been established, the client application is not able to send messages to the server application through the LTM using the same websocket connection ""

     

  • From what I understand is you need to disable the HTTP profile from processing when the "websocket" has established it's connection, as the profile doesn't understand websockets.

     

    You can code an iRule, with somthing similar to this:

     

    when HTTP_REQUEST {
      if { [string tolower [HTTP::header Upgrade]] contains "websocket" }{
          HTTP::disable
      }
    }
  • I use a version of this iRule with version 11.5.x. I'm not sure if this will work with 10.x code.