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
Nov 09, 2009hey Aaron,
I have tested this irule, however it does't work now. all of the client's item math the last sentence " snat automap", could you help correct it ? 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 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 }
default { snatpool snatpool_crt_default }
}
}
221.218.248.155 {
switch {IP::addr [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 }
default { snatpool snatpool_uni_default }
}
}
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
