Forum Discussion
Dan_Deming_1935
Nimbostratus
Aug 18, 2006How do I insert LB's IP with an irule?
We have 2 F5 Big IP units set up in front of 3 web servers running Apache 1.3. We're using the Type: Standard, Protocol: TCP and HTTP Profile: HTTP settings.
In our Apache logs, we want to include...
hoolio
Cirrostratus
Aug 18, 2006To clarify...
HTTP_REQUEST_SEND is in the server side context as it's when the BIG-IP is sending the request to the server. So if you use [IP::local_addr] in HTTP_REQUEST_SEND it should give you the source IP the BIG-IP will use.
In the last example you posted, you're using [IP::local_addr], but specifying the clientside context. So that should equate to the VIP address (the address local to the VIP on the clientside connection).
So you should be able to use this:
...
when HTTP_REQUEST_SEND {
set bigip_source_to_node [IP::local_addr]
...
clientside {
HTTP::header insert "Source_to_node" $bigip_source_to_node
...
}
}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
