Forum Discussion
Insert LTM IP and pool member IP in header in the response to client
No. IP::server_addr will give you node IP address (without port). TCP::server_port will give node port.
But if you just use LB::server it will give you node IP, port (member) and pool name.
When you say local IP address, I'm assuming you are mentioning F5 selfIp address?
Below iRule will insert f5_server header with value of <f5_floating_selfIP>__<node_ip>.
when HTTP_RESPONSE {
HTTP::header insert f5_server "[IP::local_addr]_[IP::server_addr]"
}I think I overlooked your original request and iRule.my bad. So your original iRule was ok, I would just add name of the header. Hope this helps.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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