Forum Discussion
david_20653
Nimbostratus
Oct 14, 2009Redirect Source IP to Pool
Hi
we have Pool that contains five ssl servers
I need to write an IRule to Redirect one source IP client to this pool but only to four of the
ssl servers except one
...
hoolio
Cirrostratus
Oct 14, 2009It would probably be easiest to set up a second pool with the four members and then use the IP::addr command (Click here) an iRule to check the client IP address (retrieved using IP::client_addr Click here) and select the second pool. Or if possible, it would probably be easier to create a new virtual server which references the second pool and have that single client access the second virtual server.
Here is an example of the first option:
when CLIENT_ACCEPTED {
Check if client IP is 1.1.1.1
if {[IP::addr [IP::client_addr] equals 1.1.1.1]}{
Select the second pool
pool second_pool
}
Any other client will use the default pool on the VIP
}
Aaron
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