Glenn_32974
Sep 17, 2010Nimbostratus
Direct traffic to proper pool after being snat'd!
Hello
I have written the following Irule (basic one) with the intention to direct traffic to a proper pool after it has been snat'd on the way out
I need to have host 10.44.17.30 get snat'ed to snatpool E_File (2 members: 190.216.X.Y & 190.145.X.Y) and after it has been snat'd choose a proper pool
According to SnatPool , iRule and tcpdumps statistics I see traffic is actually been snat'd
but I dont see either Pool Global or Pool Telmex being hit! And traffic is going out via pool Default_Gateway_Pool_SMTP instead!
when CLIENT_ACCEPTED {
if { [IP::client_addr] equals "10.44.17.30" } {
snatpool E_File
rateclass Fac_Dig
if {[IP::client_addr] equals "190.216.X.Y" }{
pool Pool_Global
pool of 1 member :201.234.X.Y:25
} elseif {
[IP::client_addr] equals "190.145.X.Y" }{
pool Pool_Telmex
pool of 1 member :190.145.X.Y:25
}
log local0. "Valid client IP: [IP::client_addr] - HostName"
else {
pool Default_Gateway_Pool_SMTP
log local0. "Valid client IP: [IP::client_addr] - HostName"
}
}
Is there something wrong with this irule?
Thansk in advanced!
Glenn