Forum Discussion
Ian_Smith
Aug 23, 2006Ret. Employee
curious results from md5
when I do this on 9.1.2 or 9.2.3:
when CLIENT_ACCEPTED {
set client [IP::client_addr]
set clienthash [md5 [IP::client_addr]]
log "the client is: $client the c...
spark_86682
Jun 27, 2008Historic F5 Account
Hrm. It's possible that the "Typical Hash iRule" article originally had "crc32" instead of "md5", which should work fine. crc32 has bad properties for using it in Election Hash iRules, though. I'll poke deb to correct that article if she doesn't see this instead...
The Election Hash iRule you point out does take the IP into account, but it's a bit non-obvious. The $N variable contains the IP:port of each active member, and the MD5 is taken of "$N[HTTP::uri]", so it does take it into account. It is easy to miss the $N, though.
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