Forum Discussion
som_86408
Nimbostratus
Feb 18, 2012source IP based persistence
Hi,
I have a requirement where clients must stick to the same server for HTTP to HTTPS and decided to use source address persistence but in a document (http://devcentral.f5.co...
som_86408
Nimbostratus
Feb 20, 2012yes you are correct. I have checked the i rule but unable to understand clearly. Can I copy and paste the the below rule , will this ok? or so i need to edit anything?
It'll really help me a lot!
01 rule cookie_persist_http_plus_s {
02 Check if there is a cookie and lookup persistence table
03 if the entry does not exist, loadbalance and save record
04 when HTTP_REQUEST {
05 if { [HTTP::cookie exists "bIPs"] } { ------------>What is "bIPs" ?
06 persist uie [HTTP::cookie value "bIPs"]
07 }
08 }
09 For initial requests, we have to calculate MD5
10 checksum of the server's IP, convert it to hex,
11 then finally store it as a cookie and create persistence record
12 when HTTP_RESPONSE {
13 if { ![HTTP::cookie exists "bIPs"] } {
14 binary scan [md5 [IP::server_addr]] H* md5var junk -------------> what this line will do?
15 HTTP::cookie insert name "bIPs" value $md5var -------------> what this line will do?
16 persist add uie [HTTP::cookie value "bIPs"]
17 }
18 }
19 }
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