Forum Discussion
K-Dubb
Nimbostratus
Nov 29, 2010Add http header of Server IP address?
Hello,
We are on version 9.4.8 of BigIP. We use a device called Truesight to monitor the user experience of our traffic. We recently moved the Truesight device to in front of the F5 so we ...
Hi K-Dubb,
You can use an iRule like this:
From http://devcentral.f5.com/wiki/default.aspx/iRules/http_request_send
when HTTP_REQUEST_SEND {
Need to force the host header replacement and HTTP:: commands into the clientside context
as the HTTP_REQUEST_SEND event is in the serverside context
clientside {
Replace (or insert if it doesn't exist) a custom HTTP header with the selected server IP and port
HTTP::header replace my_custom_header "[IP::server_addr]:[TCP::server_port]"
}
}
You could also insert the currently selected pool name using [LB::server pool].
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects