iRule : snatpool first or pool member selection first
i have a iRule like below
iRule_mail_snat
when CLIENT_ACCEPTED {
if {[IP::remote_addr] equals "202.1.1.1"} {
snatpool snatpool_A
pool Pool_A
} elseif { [IP::remote_addr] equals "202.1.1.2"} {
snatpool snatpool_B
pool Pool_B
} else {
snatpool snatpool_normal }
}
------------------------------------
Snatpool_normal
snatpool_normal {
member 1.1.1.1 2.2.2.2
}
-----------------------------------
if there is a virtual attach the above iRule and then the pool assigned called "pool_normal".
pool_normal {
member 1.1.1.254:0
memeber 2.2.2.254:0
memeber 3.3.3.254:0
}
what is the decision for F5 when the traffic going through this iRule ? ( for snatpool_normal , pool_normal )
1) F5 will select the snatpool according to the iRule , then select the corresponding pool member in pool.
2) F5 will select the pool member and select the correspond snatpool_normal.
if case 2 , that will be an issue, the situtaion like F5 select 3.3.3.254. however, the snatpool_normal do not have the corresponding Ip address subnet.
what can F5 do ? drop the packet ? just choose one of them from the snatpool ?