Kevin_Nail
Mar 04, 2010Nimbostratus
SNAT based on incoming IP
I have a need to snat based on the incoming IP. It should be relatively straight forward but I can't seem to make my mind wrap around this.. or what's the best way to do it.
I have a private subnet that is divided into 3 ranges (prod/dev/test) and I need to SNAT based on which IP is connecting... For example if server in the DEV range connects then it should get SNAT A, test should get SNAT B and production should get SNAT C.
So I need the iRule to evaluate something similiar
10.9.9.0/26 gets SNAT A
10.9.9.65/26 gets SNAT B and
10.9.9.128/26 gets SNAT C
Also, do you know what the load would be of implementing such a rule on the CPU? I would guess that there would be less than 50 connections per minute.
Any help would be greatly appreciated.