Forum Discussion
srandhawa_75222
Oct 15, 2013Nimbostratus
Hi...I am new to iRules so my iRule construct is a bit basic, but here is the iRule
when CLIENT_ACCEPTED { if { [[IP::remote_addr] equals 203.45.160.26] || [[IP::remote_addr] equals 203.45.160.28] || [[IP::remote_addr] equals 203.45.160.31] } { pool bat1_test1 } else { pool bat1_test2 } }
Basically the idea is if the source IP address is from the 3 specific addresses it should sent the traffic to bat1_test1. All other traffic should go to bat1_test2. The question is the Virtual Server (VIP) has only one default pool bat1_test1, so I don't know how the irule will divert to bat1_test2 pool. When I applied the iRule, the normal traffic (i.e. access to bat1_test2) also stops working