Forum Discussion
Skuba_85554
Nimbostratus
Feb 05, 2010choosing persistence method
hi
i'm hoping someone can help me with this irule...
i have a virtual server which requires 2 different types of persistence depending on where the user is coming from. for example, if the user is on the 192.168.0.0/24 network they need to use cookie persistence, but everyone else should use source address affinity
it sounds pretty simple, but any advice would be appreciated
thanks
- hoolio
Cirrostratus
Hi Skuba,when CLIENT_ACCEPTED { Check the client IP if {[IP::addr [IP::client_addr] equals 192.168.0.0/16]}{ Use session cookie persistence persist cookie insert "my_persist_cookie" 0 } else { Use source address persistence with a /24 mask and 1 hour timeout persist source_addr mask 255.255.255.0 3600 } }
- Skuba_85554
Nimbostratus
thanks hoolio - jiangyidigitalc
Nimbostratus
COOL
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