Forum Discussion
monica_74227
Oct 21, 2009Nimbostratus
okay, thank you for your quickl reply.however maybe I need to use irule to do something else, just like the following:
rule iRule_internal_out {
when CLIENT_ACCEPTED {
if { [matchclass [IP::local_addr] equals $::cnc_class]} {
pool cnc_ratio_pool
} elseif { [matchclass [IP::local_addr] equals $::ct_class]} {
pool ct_ratio_pool
} else {
pool cnc_ratio_pool
}
}
when LB_SELECTED {
if { [IP::addr [IP::client_addr] equals 172.16.3.X] } {
switch{IP::addr [LB::server addr]}
{
221.218.248.145 {snatpool snat_ct_mail}
222.35.42.97 {snatpool snat_cnc_mail}
}
} else {
snat snat_cnc_default
}
}
}