Forum Discussion
Brad_Kloch_1032
Nimbostratus
Oct 26, 2006iRule for fallback persistence
I'm trying to create an iRule that will modify the source_addr so that our fallback persistence will work using Akamai. Akamai does pass over the user's IP address in the request in a header named "True-Client-IP". I'd like to use this header to replace the source_addr so that fallback persistence will work.
I've started the following iRule but I'm not sure if it's even possible to change the source_addr.
Any help would be greatly appreciated.
when HTTP_REQUEST {
if { [HTTP::header exists "True-Client-IP"] } {
log "Client-IP: [IP::remote_addr]"
set client_ip [HTTP::header "True-Client-IP"]
log "True-Client-IP: [IP::client_addr]"
}
}
1 Reply
- Deb_Allen_18Historic F5 AccountYou can change the sourceIP with a SNAT, but it would be changed on egress. Simple persistence inside of LTM looks at the source address upon ingress, before any iRule processing, so that wouldn't solve your problem.
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