Forum Discussion
SSHSSH_97332
Jan 07, 2012Nimbostratus
IRule To Source Nat based on Load Balanced Pool
i want to source nat based on the Pool choosen for load balancing ie : 1-if choosen pool for load balancing is PoolX , source nat using snat-pool-X 2- if if choosen pool f...
hooleylist
Jan 07, 2012Cirrostratus
Hi sshssh,
How are you selecting the pools? In general, you could select a SNAT pool based on the selected pool using a switch statement or datagroup to map pool names to snat pool names:
when LB_SELECTED {
Check the selected pool name
switch [LB::server pool] {
pool1 {
LB pool was pool1, so select the corresponding snat pool
snatpool pool1_snatpool
}
pool2 {
snatpool pool2_snatpool
}
default_pool {
LB pool was not pool1 or pool2, so select a default snat pool
snatpool default_snatpool
}
}
}
Aaron
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