Forum Discussion
Michael_Hull_61
Nimbostratus
Dec 21, 2005Connection verification to another pool
Pools are named Pool_1 and Pool_2 and exist on the same BigIP pair.
I want to know if an iRule can only allow a connection to Pool_2 if you already have a current connection to Pool_1? ...
unRuleY_95363
Dec 27, 2005Historic F5 Account
Try this rule:
virtual server 1 iRule (pool 1)
when CLIENT_ACCEPTED {
populate session table with client IP address for 1 hour
session add source_addr [IP::client_addr] 1 3600
use pool 1
}
virtual server 2 iRule (pool 2)
when CLIENT_ACCEPTED {
if { [session lookup source_addr [IP::client_addr]] } {
use pool 2
} else {
redirect "http://"
}
}Note each session lookup refreshes the TTL on a session table entry, so as long as subsequent requests occur within an hour, the entry will remain active.
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