intadm_38648
Jul 28, 2011Nimbostratus
New to iRules...need some guidance
Hey all! This iRule that I'm trying so hard to create is racking my brain...was wondering if you experts can help me. Below is the rule and basically, I would like to send inbound traffic (inbound to this virtual address on the LTM where this rule is attached, that is) to one of the two pools(based on whether the destination address is part of the SPOE_IPS list but it appears that nothing is being sent to the second pool. I've created a class called "SPOE_IPS" and the 2 pool names are correct. It appears that traffic is hitting the first part of the rule correctly but not the second part. That is, all traffic seems to terminate before the "else" statement. Am I using the correct syntax (IP::local_addr) if I'm trying to filter by destination?
Thank you in advance,
Nelson.
when CLIENT_ACCEPTED {
if { [matchclass [IP::local_addr] equals $::SPOE_IPS] } {
pool pool_spoe_proxies }
else {
pool pool_BC_proxies
}
}