Different SNAP IP based on destination
- I have a Virtual Server defined that mainly handles incoming traffic
- However from time to time the servers themselves initiate the connection (part of standard we are using)
- Also as part of the standard (security wise) the only allowed IPs are the VIP of the virtual server
This worked fine when there was one SNAT IP we needed it to look like but now there is some internal testing and we need it to look like a different outgoing ip when servers initate connections
So what I need is an iRule that basically says the sourceip (snat) of server initiated traffic is xxx.xxx.xxx.xxx if the outgoing ip it is connection to is in the subnet 10.79.10.0/24, and if it is not in that subnet and the server is connection to any other ip I want the source ip to appear as yyy.yyy.yyy.yyy
thanks so much for any help or pointers to see me on my way. I would post what I tried but think it would just embarrass myself.