Forum Discussion
RKnudson_131750
Nimbostratus
Aug 16, 2013DYNAMIC SNAT Question
New to F5 and iRules, seeking assistance in creating an iRule to perform a dynamic SNAT rule. I have the LTM set up with a network for my VIP’s and a network for source NAT. What we want to do is g...
Kevin_Stewart
Employee
Aug 16, 2013Not sure about automatically assigning a SNAT address based on pool assignment, but here's something that might work:
when LB_SELECTED {
if { [class match [LB::server addr] equals snat_assign_test_dg] } {
snat [class match -value [LB::server addr] equals snat_assign_test_dg]
}
}
Where "snat_assign_test_dg" is a sample address-based data group. Example:
Address (network): 10.70.0.0
Mask: 255.255.255.0
Value: 10.70.0.100
This will assign a SNAT address based on pool member selection, as defined in the data group.
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