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...
The_Bhattman
Nimbostratus
Mar 30, 2009Based on what I am reading you want a each server assigned 2 possibles from a snat block of 1.1.1.x or 2.2.2.x (depending on which path it takes) and from the details you explained you want to match it up by the last octet of the IP. From what I can tell this can be done on a smaller scale, but 200 internal servers will make for a
The following example can take the address of the client (the client is 3.3.3.0/24) and you can parse it
scan [IP::client_addr] %u.%u.%u.%u first second third last
Now each octet is in variable first, second, third, last
You can use that to assign a specific snat based on where the request is coming from and where it's going I.E. "snat 1.1.1.$last"
CB
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