Forum Discussion
Christopher_167
Nimbostratus
Jan 21, 2012iRule to use a pool based in incoming port ?
Hi, Anyone have an iRule that uses a pool based on the incoming port ? (Note: I'm an iRule n00b. In fact this is my very first attempt at even thinking about iRules. So if you will please hu...
hoolio
Cirrostratus
Jan 23, 2012Hi Christopher,
You can try something like this:
when CLIENT_ACCPEPTED {
Try assigning the pool based on the client destination port
If the pool assignment fails, use the VS default pool
if {[catch {pool pool_[TCP::local_port]} result]}{
Pool did not exist, so log the value for testing
The VS default pool will be used
log local0. "pool_[TCP::local_port] doe not exist"
} else {
Pool assignment succeeded
}
}
Aaron
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