Forum Discussion
ascension2020_6
Nimbostratus
Jun 08, 2012Using VIP IP as variable for SNAT
Hi folks, I've been working with F5s for about 10 months but I didn't have to play with iRules until a couple of days ago. I apologize if this is a newb question, but I've been looking throu...
hoolio
Cirrostratus
Jun 12, 2012You can enclose the IP::local_addr command in square braces to execute it and return the value:
when CLIENT_ACCEPTED {
snat [IP::local_addr]
}
You could also create a SNAT pool containing the virtual server IP address and add that SNAT pool to the virtual server to avoid using an iRule for this. An iRule would be particularly useful if you need to do this SNATing on more than one virtual server.
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
