Forum Discussion
monica_74227
Nimbostratus
Oct 24, 2009how about this iRule ?
hey guys,
Could you help me to check this iRule, I don't know if it does work well ? Many thanks!
when CLIENT_ACCEPTED {
if { [ matchclass [IP::client_addr] equals $::mail_i...
monica_74227
Nimbostratus
Oct 27, 2009Hey Aaron,
Thank you for your help! I could set up test environment next week.
I have optimized the iRule again, could you help me to correct it, i don't if there are something wrong with the iRule syntax ? Thanks!!!
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 {IP::addr [LB::server addr]}
{
222.35.42.126 {
switch {IP::addr [IP::client_addr]} {
192.168.3.11 { snatpool snat_crt_test2 }
192.168.3.13 { snatpool snat_crt_test1 }
192.168.3.20 { snatpool snat_crt_test4 }
192.168.3.16 { snatpool snat_crt_sms }
192.168.3.25 { snatpool snat_crt_mail }
default { snatpool snat_crt_pool }
}
}
221.218.248.155 {
switch {IP::addr [IP::client_addr]} {
192.168.3.11 { snatpool snat_uni_test2 }
192.168.3.13 { snatpool snat_uni_test1 }
192.168.3.20 { snatpool snat_uni_test4 }
192.168.3.16 { snatpool snat_uni_sms }
192.168.3.25 { snatpool snat_uni_mail }
default { snatpool snat_uni_pool }
}
}
default { snat automap }
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects