Forum Discussion
Leslie_South_55
Nov 07, 2006Nimbostratus
Based off of one of the iRule 2005 contest 1st place winner, I am now trying to insert yet another cookie from the LTM and base my persistence off of the new cookie that where I also have created a Cookie Hash Persistence Profile
profile persist pr_cookie_hash_irule {
defaults from cookie
mode cookie
mirror enable
cookie mode hash
cookie name ltmcookie
cookie hash offset 6
cookie hash length 3
across services enable
across virtuals enable
when HTTP_REQUEST {
if { [HTTP::cookie exists "ltmcookie"] }{
HTTP::cookie decrypt "ltmcookie" "ltmcookiepassword"
set vipid [lindex [HTTP::cookie ltmcookie] 0]
set poolid [lindex [HTTP::cookie ltmcookie] 1]
set serverid [lindex [HTTP::cookie ltmcookie] 2]
set portid [lindex [HTTP::cookie ltmcookie] 3]
persist cookie
}
else {
use pool pool_myhttp-pool
}
}
when HTTP_RESPONSE {
HTTP::cookie insert name ltmcookie value [concat [virtual name][LB::server]]
HTTP::cookie encrypt "ltmcookie" "ltmcookiepassword"
}
So far I am only seeing persistence based on my fallback of src_addr
This is killing me, anyone want to jump in and help?