Forum Discussion
Apr 29, 2010
Persist only specific IPs destined for a VS
I'm looking to limit persistence to specifc IPs destined for a VS and load balance everyone else with the default LB metric assigned to the Pool. I see I can only apply a mask in the standard Source ...
Michael_Yates
Nimbostratus
Apr 29, 2010I believe that this is the general iRule structure that you will probably need, but I'm not sure exactly what you are looking for with the description that you have given, so I have included other options that are commented out.
You can find specific information on the perisit option used here:
http://devcentral.f5.com/wiki/default.aspx/iRules/persist.html
when CLIENT_ACCEPTED {
if { ([matchclass [IP::remote_addr] equals $::TestDataGroup ]) } {
persist cookie insert
Specific Pool
pool Your.Pool.Name
Specific Pool and Specific Pool Member
pool Your.Pool.Name member 10.10.10.10 80
}
}
If you are going to use a matchclass you might want to read SMP and Hoolio's thread about the differences between v9 matchclass and v10 class match:
Thread Name: v9 matchclass and v10 class match iRule commands
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/afv/topic/aft/1172225/aff/5/showtab/groupforums/Default.aspx
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