Nandhi
Jan 10, 2024Cirrus
Add a custom "X-forwarded-for" header name
Hello Everyone,
Need an assistant to add custom http header name and value to insert XFF headers. The default name "X-forwarded-for" cannot understand by the client side. Example need to add name "HTTP_XFF" instead of default one which known by end node.
Not sure whether this achived either irule or http profile. The irule used below wont help and client cannot see the custom header name.
when HTTP_Request
{
HTTP::header remove X-forwarded-for
HTTP::header insert HTTP_XFF [IP::client_addr]
log local0."[IP::local_addr] XFF to: [IP::client_addr]"
}
---------
Any suggestions would be appreciated. Thanks.