Forum Discussion
swo0sh_gt_13163
Sep 05, 2013Altostratus
Please validate iRule to Load balance the traffic based on SNAT.
Hello Folks,
I need your help by verifying my iRule, responsible to SNAT the traffic generated from one Site (B) and going to another site (A), and should select specif pool to communicate further....
JRahm
Sep 05, 2013Admin
Assuming that 1.1.1.1 is routable back to the site, looks fine. Just one tweak that will save 8% compute cycles on the IP comparison
when CLIENT_ACCEPTED {
if [IP::addr [IP::remote_addr] equals 1.1.1.0/24] } {
snat 1.1.1.1
pool Test_pool
} else {
pool Normal
}
}
I wrote up an article a while back on IP Comparison performance if interested.
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