Forum Discussion
monica_74227
Nimbostratus
Jun 23, 2009intelligent SNAT generate errors
Dear all,
I write a iRule as the following:
when CLIENT_ACCEPTED {
if { [matchclass [IP::local_addr] equals $::Uni_class]} {
pool Uni_first_pool
...
monica_74227
Nimbostratus
Jun 24, 2009hey Aaron,
I have tried that iRule, It should now include the "\", the following is okay :
when CLIENT_ACCEPTED {
if { [matchclass [IP::local_addr] equals $::Uni_class]} {
pool Uni_first_pool
}
elseif { [matchclass [IP::local_addr] equals $::CRT_class]} {
pool CRT_first_pool
}
else {
pool Default_gateway_pool
}
}
when LB_SELECTED {
if {([IP::addr [IP::client_addr] equals 12.10.10.1] or [IP::addr [IP::client_addr] equals 12.10.10.2]) and [IP::addr [LB::server addr] equals 10.10.10.254] } {
snatpool snat_uni_pool
}
elseif {([IP::addr [IP::client_addr] equals 12.10.10.1] or [IP::addr [IP::client_addr] equals 12.10.10.2]) and [IP::addr [LB::server addr] equals 11.10.10.254] } {
snatpool snat_crt_pool
}
else {
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
