Forum Discussion
Angelo
Nimbostratus
Oct 26, 2012I-rule persistence
Hi
with a i-rule i know you can add persistence, but how do you add session persistence on a i-rule but also have the source IP in the header of conent..
Angelo
Nimbostratus
Oct 26, 2012it's a https site, x-forwarders is disabled on the http profile. i have a streaming irule for the inserting but the persistence is the problem
when HTTP_REQUEST {
disable stream processing for request traffic
STREAM::disable
s store the client IP address
set client_ip [IP::client_addr]
}
when HTTP_RESPONSE {
if { [HTTP::header Content-Type] equals "text/html" } {
establish the stream expression - here we're just modifying the contents <br /> STREAM::expression "@@ - ($client_ip)@"
enable stream processing
STREAM::enable
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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