Forum Discussion
monica_74227
Nimbostratus
Oct 24, 2009how about this iRule ?
hey guys,
Could you help me to check this iRule, I don't know if it does work well ? Many thanks!
when CLIENT_ACCEPTED {
if { [ matchclass [IP::client_addr] equals $::mail_i...
hoolio
Cirrostratus
Oct 25, 2009That is a lot of possible evalutions if there aren't any matches or the match for a particular connection is late in the list. You might try combining a few of the checks together to reduce the number of IP checks you're doing.
For example, you could replace this:
if {[IP::addr [LB::server addr] equals 222.35.42.126] and [IP::addr [IP::client_addr] equals 172.16.1.11] } {
snatpool snat_crt_test2
} elseif {[IP::addr [LB::server addr] equals 221.218.248.155] and [IP::addr [IP::client_addr] equals 172.16.1.11] } {
snatpool snat_uni_test2
}
with this:
if {[IP::addr [IP::client_addr] equals 172.16.1.11] }{
if {[IP::addr [LB::server addr] equals 222.35.42.126] }{
snatpool snat_crt_test2
} elseif {[IP::addr [LB::server addr] equals 221.218.248.155]} {
snatpool snat_uni_test2
}
}
Aaron
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
