Forum Discussion
Christopher_Hyl
May 05, 2011Nimbostratus
True-IP persistence or source-IP if it doesn't exsist.
This is a basic derivative of the irule in the last post .
It's a long story of why we're doing this, but we're using a CDN that passes us the "true-client-ip" HTTP header. We want source persis...
hooleylist
May 06, 2011Cirrostratus
Can you try this?
when HTTP_REQUEST {
set True_Client_IP [HTTP::header value "True-Client-IP"]
if {$True_Client_IP eq ""}{
set True_Client_IP [IP::client_addr]
}
persist uie True_Client_IP 3600
log local0. "[IP::client_addr]:[TCP::client_port]: True-Client-IP: [HTTP::header value True-Client-IP], persist record: [persist lookup uie $True_Client_IP]"
}
when SERVER_CONNECTED {
log local0. "[IP::client_addr]:[TCP::client_port]: connected to: [IP::server_addr]:[TCP::server_port]"
}
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