Question : Randomly assign OUTGOING ip in SQUID PROXY

Hi,

I would like to randomly assign an outgoing IP in SQUID. I tried the following lines in the config file but it doesn't really work as it always uses the first IP on the list:

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
tcp_outgoing_address 100.200.300.400
tcp_outgoing_address 100.200.300.401
tcp_outgoing_address 100.200.300.402
tcp_outgoing_address 100.200.300.403
tcp_outgoing_address 100.200.300.404
tcp_outgoing_address 100.200.300.405
tcp_outgoing_address 100.200.300.405
balance_on_multiple_ip on

* IPs are made up for security reasons


I know you can assign ACL's to the lines in order to make logical selection based on the date/time, users incoming ip, port etc. but I would really like to select it randomly.

How can i make the selection of the outgoing ip random with a random ACL or something like that?

Thank you.

Answer : Randomly assign OUTGOING ip in SQUID PROXY

The only solution to this is to upgrade to SQUID 3.2 and use the new random function explained here http://wiki.squid-cache.org/Features/AclRandom .
Random Solutions  
 
programming4us programming4us