Technical Forum
Ask questions. Discover Answers.
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

Add X-Forwarded-For to websocket traffic


Good day everyone

We have websocket traffic which is load balanced by F5 and we would like to add X-Forwarded-For to it so we can have clients real IP in server.

As I read about it the websocket traffic starts by http connection and the continues with websocket.

I added HTTP profile (with XFF enabled) and all of our connections were dropping.

Can anybody help me on this?



F5 Employee
F5 Employee

Have you configured a websocket profile?

No I haven't 

Should I add http profile (with XFF enabled) and websocket profile to Virtual Server?

F5 Employee
F5 Employee

That's correct but also, if the traffic is encrypted , you also need to have Client SSL profile and Server SSL profile for the proper SSL decrypt/re-encrypt. Otherwise, BIG-IP will see only encrypted traffic. 

Thanks Ismael

I will try it and get back to you.

Also should I apply the http profile in the client side or server side?

The HTTP profile does not have client/server sides context. Also, check here for TLS options you might want to configure: