Re: Randomizing forward proxies
"Andrew J. Caines" <[email protected]>
| Newsgroups | gmane.comp.web.privoxy.user |
|---|---|
| Organization | H.A.L. Plant |
| Message-ID | <[email protected]> |
Akash,
> I have a list of proxies that I want to forward the traffic to from my
> privoxy instance randomly, any idea how can I achieve this ?
I run haproxy on my "router" and distribute traffic between three
Privoxy servers. Here's the config I use which doesn't randomise, but
distributes requests for the same sties to the same proxies (balance uri):
----8<----
defaults
log global
mode http
option dontlognull
timeout connect 5s
timeout client 1m
timeout server 1m
frontend privoxy
bind 10.10.2.1:8118
option httplog
stats enable
stats show-legends
stats uri /status
default_backend halprivoxy
backend halprivoxy
balance uri
option httpchk HEAD http://p.p/
http-check expect status 200
server halnode1 10.10.2.91:8118 check inter 5s
server halnode2 10.10.2.92:8118 check inter 5s
server halnode3 10.10.2.93:8118 check inter 5s
----8<----
--
-Andrew J. Caines- Unix Systems Architect [email protected]
"Machines take me by surprise with great frequency" - Alan Turing