hey Aaron,
Thank you for your replay, you are right, I have tested it once again, the following was working well!
when CLIENT_ACCEPTED {
if { [ matchclass [IP::client_addr] equals $::mail_internal_class ] } {
pool mail_gateway_pool
} else {
pool default_gateway_pool
}
}
when LB_SELECTED {
switch [LB::server addr] {
222.35.42.126 {
switch [IP::client_addr] {
"192.168.3.11" { snatpool snatpool_crt_rd2 }
"192.168.3.13" { snatpool snatpool_crt_rd1 }
"192.168.3.20" { snatpool snatpool_crt_rd4 }
"192.168.3.16" { snatpool snatpool_crt_sms }
"192.168.3.25" { snatpool snatpool_crt_mail }
"192.168.3.251" { snatpool snatpool_crt_vpn }
"default" { snatpool snatpool_crt_default }
}
}
221.218.248.158 {
switch [IP::client_addr] {
"192.168.3.11" { snatpool snatpool_uni_rd2 }
"192.168.3.13" { snatpool snatpool_uni_rd1 }
"192.168.3.20" { snatpool snatpool_uni_rd4 }
"192.168.3.16" { snatpool snatpool_uni_sms }
"192.168.3.25" { snatpool snatpool_uni_mail }
"192.168.3.251" { snatpool snatpool_uni_vpn }
"default" { snatpool snatpool_uni_default }
}
}
default { snat automap }
}
}