Forum Discussion
SalishSeaSecurity
Altostratus
Jan 12, 2010Specifying node kills cookie persistence
I have a virtural server with a pool of four web servers. Load balancing is by least connection; oneconnect with a mask of 0.0.0.0 is enabled; persistence is by cookie insert (custom profile with non-...
hoolio
Cirrostratus
Jan 12, 2010Actually, I found an old post from UnRuley and Joe where they provided a sample iRule to encode an IP:port in the persistence cookie format:
From: http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&tpage=1&view=topic&postid=9756
Generate a persistence cookie for a sample IP:port
when HTTP_RESPONSE {
set addr_port "10.10.10.10:80"
scan $addr_port "%u.%u.%u.%u:%u" a b c d e
set cookie "[format %u [expr ($d<<24)|($c<<16)|($b<<8)|$a]].[expr 256*$e].0000"
HTTP::cookie insert name "BIGipServerFP_pool" value $cookie path "/"
}
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
