Forum Discussion
pjcampbell_7243
Cirrus
Feb 25, 2009Cookie encryption issues?
We have a BIG-IP 9.4.3 Build 1.4 Final and I am trying to encrypt cookies using the http-enc-cookie http profile.
Under my virtual server Resources, I have specified a custom Default Persistence Profile, which in term uses the parent "cookie", to simply set a custom cookie name, that we'll call BIPcookiemonster.
BIPcookiemonster is then listed under "Encrypt Cookies " on the http-enc-cookie http profile.
My virtual server also has http-enc-cookie selected.
When I go to view the website, it appears that the cookie is being encrypted:
127.0.0.1 cookie: BIPcookiemonster=DusutP4AZblYGVAePa8GVRhB2dY8WK4Ii/CVoq1wRGjEpB44sR7UHVbrWM5NJ9BDGPw2OOAzPWANXvQ= Allow? (Y/N/Always/neVer)
However, every single time I am being directed to the same server. I have the load balancing method setup as Round Robin.
Any advice for this situation?
It seems to me that the "fallback persistence method" is being utilized. It is set as source_addr. If I turn that off, I can see myself getting different pool members. Why is it not using the default method?
- hoolio
Cirrostratus
If you disable source address persistence and test, do you get persisted correctly back to the same pool member? If you manually delete the cookie or close all your browser instances, do you get load balanced again? You will need to either delete the source address persistence record or wait for it to time out. - If I disable the source_addr fallback persistence, I do seem to get the same pool member within the same session. And different pool members across different browsers originating from the same source address. Where as when I turn source_addr fallback on, I get the same pool member across all browsers.
- I made my test server mirror production in terms of cookie config, and was able to duplicate that persistence did NOT work when source_addr turned off, THEN, I changed the iRule to the example seen here: http://devcentral.f5.com/weblogs/Joe/archive/2005/11/09/1541.aspx and that seemed to fix it? Still testing...
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