Forum Discussion
Jason_Hook_4092
Nimbostratus
Apr 12, 2010Expose pool member in response
I would like to expose which pool member responded to the request for tracking within TrueSight in front of the VIP.
This is what I feel will work, but I'd like some feedback whether this is clean and if I can add this on to VIPs that already have iRules on them. I don't have much experience with multiple iRules on a VIP and would like to know if this would interfere with others.
LTM v10.0.1
when HTTP_RESPONSE {
Remove header if already existing to keep from getting dups
HTTP::header remove "serverIP"
Insert header with responding server IP
HTTP::header insert "serverIP" [IP::server_addr]
}
19 Replies
Sort By
- hoolio
Cirrostratus
Hi Jason,when HTTP_RESPONSE { Insert header with responding server IP HTTP::header replace "serverIP" [IP::server_addr] }
- Jason_Hook_4092
Nimbostratus
Does it matter if this iRule is at the top or bottom of the iRule list (if there is more than one). Not sure if there is an order-of-events on iRules that will be affected by writing to the response header - hoolio
Cirrostratus
With a header insert in HTTP_RESPONSE, I can't see the order of any other iRule interfering with this. - fujisen
Nimbostratus
hi guys, this irule applies only for http VIP. - Chris_Miller
Altostratus
Posted By fujisen on 01/12/2011 07:38 AM - fujisen
Nimbostratus
thanks, - Chris_Miller
Altostratus
Posted By fujisen on 01/12/2011 07:57 AMThink of it like this:
1. Client Request hits LTM over HTTPS.
2. LTM uses the ClientSSL profile to decrypt the traffic so it can view the request.
3. If sending to the pool member over HTTPS, LTM uses the ServerSSL profile to re-encrypt the traffic (and decrypt it on the way back)
- fujisen
Nimbostratus
thanks for very clear explanation, - Chris_Miller
Altostratus
Posted By fujisen on 01/12/2011 08:15 AM - Jason_Hook_4092
Nimbostratus
If you have the server defined to the pool on 443 but do not have a ServerSSL profile configured, the request gets dropped on the floor and you don't get a response. Without a ServerSSL profile the back-side of the VIP can't handle the SSL handshake to the server.
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