Forum Discussion
asif_6800
Nimbostratus
Jan 05, 2008source based pool selection (irule not working)
Hello all , i am trying to creat an irule for source address based pool selection but irule is not working.
please check the syntex
---------------------------------------------
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.113.0.0/16] } {
pool Outbound-Voice-Video
} elseif { [IP::addr [IP::client_addr] equals 203.128.0.0/24] } {
pool Outbound-Public-Servers
} elseif { [IP::addr [IP::client_addr] equals 203.128.1.0/24] } {
pool Outbound-Public-Servers
} elseif { [IP::addr [IP::client_addr] equals 203.128.4.226/24] } {
pool Outbound-Public-DMZ
}
}
------------------------------------------------
- hoolio
Cirrostratus
The syntax looks fine. You don't have a default case specified if the client IP doesn't match any of the rule conditions. Do you have a default pool configured on the VIP?when CLIENT_ACCEPTED { log local0. "Client: [IP::client_addr]" if {[IP::addr [client_addr] equals 192.168.99.0/24]}{ log local0. "Matched: 192.168.99.0/24" } else { log local0. "Didn't match: 192.168.99.0/24" } }
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