Forum Discussion
Persistence profile - How will I use source address affinity based load balancing?
- Jun 11, 2016
Don't worry, it's a common scenario for me.
Just pay attention that the upstream proxy insert the "X-Forwarded-For" header, or maybe another one "True-Client-IP" or even "X-Client-IP".
If you are just nating using a firewall, I think that the header is not inserted.
I add this peace of code in the example :
set clientip [IP::client_addr]
because you may have situation where there is no "X-Forwarded-For" in the request, so that we can persist also in this scenario.
"Persistence" is about sticking to a common back-end pool. In your case, it is different pool member as the IP of the pool member is different. You can try to use Universal Persistence (UIE) with a specific hash value assigned to groups of pool members but it can get confusing. If you use the same back-end pool members, you can select "Match Across VS" within source IP based persistence.
Recent Discussions
Related Content
* 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