Forum Discussion
Mike_Lowell_456
Nov 03, 2004Historic F5 Account
how do I get "one of" functionality in version 9?
The manual suggests this rule:
START
iRule my_iRule
when CLIENT_ACCEPTED {
if { [IP::remote_addr] eq matchclass aol } {
pool aol_pool
} else {
pool all_pool
} ...
Nov 03, 2004
Give this a try:
when HTTP_REQUEST {
if { [ matchclass [IP::remote_addr] equals $::blacklisted_clients ]} {
pool pool_dummy
log local0. "Blacklisted client found - [IP::remote_addr]"
}
else {
log local0. "Non-Blacklisted client found - [IP::remote_addr]"
}
}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