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? ...
JRahm
Admin
Dec 22, 2005You should be able to populate a global array with client IP address when connected to Pool_1, then check the array when clients attempt connection on other vs with Pool_2, and discard if client IP is not in the array. This should get you started. You'll probably want to add some error checking and a method to clean up the array.
virtual server 1 iRule (pool 1)
when CLIENT_ACCEPTED {
populate array with client IP address
set ::pool1_clients([IP::client_addr])
use pool 1
}
virtual server 2 iRule (pool 2)
when CLIENT_ACCEPTED {
if { [info exists $::pool1_clients([IP::client_addr])] } {
use pool 2
} else { redirect "http://" }
} 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