Forum Discussion
Jace_45978
Nimbostratus
Jun 18, 2011source_address persistance question
having a VIP with source_addr persistence
what we are wanting to do:
if address 10.0.0.0/8 hits the VIP then we want source_addr persistence, but any other source address falls to default or round robin on the pool members.
do we need iRule for this or is there some way to configure it with profiles?
3 Replies
- nitass
Employee
can u try this?
[root@tulip:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.17.66:http
ip protocol tcp
rules myrule
}
[root@tulip:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
if {[IP::addr [IP::remote_addr] equals 10.0.0.0/8]} {
persist source_addr
}
}
}
persist wiki
http://devcentral.f5.com/wiki/default.aspx/iRules/persist.html - Jace_45978
Nimbostratus
thanks for your response will give it a try, and thanks for the wiki link. - Colin_Walker_12Historic F5 AccountWhat nitass is saying is correct. Basically if you set up your virtual to have no persistence enabled, then put an iRule in place to selectively enable persistence for whatever inbound client IPs you want, you can achieve selective persistence. It's pretty straight forward, but if you run into any problems or have any questions, ask here and I'm sure someone will jump on them for you.
Colin
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