possible to add request headers in LTM

kindly advise how can we add the below 2 request headers to load balancer

x-forwarded-port https

You can use the iRule method HTTP::header. Use it in HTTP_REQUEST event if you want to modify the data sent to server side, otherwise use in HTTP_RESPONSE to send to client side.

Example:

when HTTP_REQUEST
{
     HTTP::header insert X-Forwarded-Port [TCP::local_port]
}

Hi, im sorry, we are trying to achieve the following… x-forwarded-port https

Just create a custom http profile (or modify the existing one) and add “x-forwarded-port:https” to the Request Header Insert parameter.

You can replace [TCP::local_port] with any information, but I suppose that it expects a number. Aren’t you talking about the X-Forwarded-Proto instead?