Forum Discussion
pedinopa_170325
Nimbostratus
Feb 23, 2015SNAT
I am looking for a irule that will map the source address of specific machines. The situation is that I am load balancing using a pool / VS on my LTM . I need to ensure that ALL machines even if th...
nathe
Cirrocumulus
Feb 23, 2015So, on the VS don't have an option for Source Address Translation and then an irule like this might do the trick:
when CLIENT_ACCEPTED {
Check if client is in same subnet as pool members
if {[IP::addr [IP::client_addr] equals x.x.x.x/x]}{
Use snat automap
snat automap
}
}
Change x.x.x.x/x to the relevant subnet and any source IP on this range will use SNAT automap. If not then no SNATing will be done.
Hope this helps,
N
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