Forum Discussion
The_Bhattman
Mar 30, 2009Nimbostratus
Based 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