how to rotate one squid user among multiple IPs based on number of requests processed by each IP
Posted
by
Arvind
on Server Fault
See other posts from Server Fault
or by Arvind
Published on 2012-02-29T07:20:42Z
Indexed on
2012/10/27
17:03 UTC
Read the original article
Hit count: 386
I want to set up a Squid ACL in the following manner--
For example, my Squid Proxy Server has 10 IP addresses- now I have a user 'demouser'. I want that for the very first request sent to 'demouser' this user uses IP address #1, for the second request it uses IP address #2, for the 3rd request of the day it uses IP address #3 and so on till it uses up all IPs. One more level of control I would like is that once the user has used up all available IP addresses once per address, then it does not allow the proxy request to go through.
How do I set up such a configuration on Squid Proxy server ACL?
Even a document or how to would be very helpful. The official wiki talks about one 'weird' case- choosing an IP address based on time of day the request was made to the proxy server. The other cases are all regular use cases which are not even remotely near my requirement as specified above.
© Server Fault or respective owner