Re: route by destination IP address

2015-03-29 Thread Abdelouahed Haitoute
Hello Baptiste, We have access to some non-public networks. These networks are only accessible via its own proxy server. So based on the IP-address the http-traffic must be proxied to the correct proxy server. I have realized the routing using squid: cache_peer 172.16.0.1 parent 3128 0

Re: route by destination IP address

2015-03-29 Thread Abdelouahed Haitoute
I think I’ve found the issue. During test, I’m visiting a hostname http://example/. But the acl condition req.hdr_ip(host) will only work if I visit http://192.168.0.1/. Is it possible to let haproxy resolve the domain name and then check the IP address? Op 29 mrt. 2015, om 14:04 heeft

route by destination IP address

2015-03-29 Thread Abdelouahed Haitoute
Hello, I’m trying to route http-requests based on destination IP address. I’ve got the following configuration, but unfortunately its not working: frontend proxy :3128 acl host_destip req.hdr_ip(host) 192.168.0.1 use_backend a if host_destip default_backend b I’m expecting

Re: route by destination IP address

2015-03-29 Thread Baptiste
Hi, No HAProxy won't do this. Instead, if you could explain us clearly what is your problem, we may be able to help you. For now you just explain what you tried to achieve. Baptiste On Sun, Mar 29, 2015 at 3:33 PM, Abdelouahed Haitoute ahaito...@rinis.nl wrote: I think I've found the issue.