Rancher LB based on source IP

Hi,

I wanted to redirect traffic to specific Target Service based on source IP. Let see below example.

people access test.domain.com from 172.16.X.X redirect to Pool1
people access test.domain.com from 192.168.x.x redirect to Pool2

Note: domain is same here.

Can we get this done from Rancher?

Thanks
Gokul

Can someone suggest best option for my requirement?

There is not a way to do this with the options exposed in the load balancer today.

It is possible to make your own nginx/haproxy/other container that has the right config to direct requests to services like that.

Thanks for your clarification.