I have several clients and servers and a LB in the middle with several Virtual Servers.
Requests from clients are load balanced to servers well, but when servers starts a request such as sending an e-mail i have a problem.
LB is the gateway of the servers.
One of my VS IP is 18.104.22.168, and another 22.214.171.124. My mail server's IP address is 126.96.36.199. When a node of a pool of the server 188.8.131.52 sends an e-mail, it goes out from 184.108.40.206, rather than 220.127.116.11 even if the node belongs to the pool which is bind to 18.104.22.168 VS.
I can solve this with SNAT pool and other parameters in the user interface, though this is not enough for me, because I have several servers with several VS and several applications that are trying to go out trough LB.
So I belive I need LB to route the outbound traffic according to source.
if the source is this node/pool
go out from this IP
if the source is that node/pool
go out from that IP
can i do such a thing with iRule?
Thanks in advance.