Is there a way to forward request according to the target IPs?

for example , if the target IPs is (11.0.0.0, 12.0.0.0, 13.0.0.0,…), then Haproxy arranges server1 to copy with,
if the target IPs is (211.0.0.0, 212.0.0.0, 213.0.0.0,…), then Haproxy arranges server2 to copy with,