1

squid can use a proxy list like:

cache_peer %(host)s parent %(port)s 0 no-query weighted-round-robin weight=%(weight)s connect-fail-limit=2 allow-miss max-conn=5

then just access squid port, it would auto choose a proxy to access internet for me.

How do I achieve this in haproxy?

Mithril
  • 937
  • 3
  • 12
  • 25
  • HAProxy is a reverse-proxy only. You don't use it to access the Internet. Please explain what you are trying to accomplish. – Michael - sqlbot Oct 19 '15 at 14:01
  • @Michael - sqlbot I want to deploy a proxy service which use a proxy pool, `squid` can do this by turning each proxy in a proxy list to the format I mentioned in question, then add the formated proxy list to squid.conf would work. – Mithril Oct 20 '15 at 01:22

0 Answers0