Header Insert

Need helping finding info relating to header inserts. This was working fine in v4 with the following syntax:

ClientIP:${client_addr}

Since we migrated over to v9.2 it is not workin properly. Any suggestions would be appreciated.

Thanks,

Luke

You can checkout the HTTP::header documentation in the wiki for manipulating headers.

Click here

Specifically if you want to add the client address to a header going to the destination server, you can do so like this:

when HTTP_REQUEST {
  HTTP::header insert "ClientIP" [IP::client_addr]
}

-Joe

Or you can create a custom HTTP profile, and add the following line as the header insert value. Which ever VIP you have the custom HTTP profile applied to, will have the client IP inserted into a header; unless it is encrypted traffic.

x-client-ip:[IP::remote_addr]