Re: Randomizing forward proxies

Nick <[email protected]>
Newsgroups gmane.comp.web.privoxy.user
Message-ID <[email protected]>
On Tue, 25 Feb 2020 23:09:57 +0530
Akash Gupta <[email protected]> wrote:

> Hello Community,
> 
> 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 ?
> 
> Forwarding would pick up last match if I put a list in config file
> but I don't want that.
> 
> Any pointers will be appreciated
> 

Tried it, used DNS round-robin, gave up: IIRC the browser will resolve
the proxy and then use the same IP all session. Or at least, that is
what I thought I saw. I did set DNS records to be short, too.

If a hostname has more than one IP in DNS, then the IPs will be served
in different orders to each client, spreading user across many
possible hosts.

In theory this method should work, but I didn't seem to have any luck.
Unless there is another approach, like using sed on the config file
from a cron'd script, using DNS might be worth further investigation.
If privoxy was serving many users on a LAN then this DNSRR trick may
work fine, and it was only because I was using it all on my laptop with
one browser I had no luck.

HTH
Nick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.