[squid-users] squid with random outgoing ip from pool of 1000 ips

--Ahmad-- ahmed.zaeem at netstream.ps
Sat Aug 27 22:34:04 UTC 2016


hi folks 
i have like 1000 ips on a sever and ips inserted on the ip of the server .

i want to do like random outgoing address per request .

say i opened website http://whatismyipaddress.com/ <http://whatismyipaddress.com/> it should  have randomized ip address form the 1000 pools on my server .
so i guess i need to create probability 1/1000 for each ip.

the question is being asked here is :

how can i create the randomized acls ???

is my settings below is correct ??


==========
acl half10000 random 1/1000
acl half10001 random 1/1000
acl half10002 random 1/1000
acl half10003 random 1/1000
acl half10004 random 1/1000
acl half10005 random 1/1000
acl half10006 random 1/1000
acl half10007 random 1/1000
acl half10008 random 1/1000
.
.
.
.
until reach 10000 random 1/1000
==============================

tcp_outgoing_address 2002:4300:a:14e:f9fc:748b:1b9a:b147 half10000
tcp_outgoing_address 2002:4300:a:14e:a68a:2d3b:889:767d half10001
tcp_outgoing_address 2002:4300:a:14e:6304:4fc2:37a4:2c2d half10002
tcp_outgoing_address 2002:4300:a:14e:2aa6:743b:2d0d:d3d2 half10003
tcp_outgoing_address 2002:4300:a:14e:f6f9:86da:1ff:3159 half10004
tcp_outgoing_address 2002:4300:a:14e:7ba1:5cf5:b477:422c half10005
tcp_outgoing_address 2202:4300:a:14e:14c4:ab57:6521:5f39 half10006
tcp_outgoing_address 2002:4300:a:14e:32ea:e262:6efb:ebda half1007
tcp_outgoing_address 2002:4300:a:14e:29b2:2ff2:573a:5c9c half11008
.
.
.
.

tcp_outgoing_address 2002:4300:a:14e:b221:a1a0:60ee:323f half10000




is the settings above will random the request  per 1000 ips as outgoing ips ???????????



cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160828/a6d7a4e0/attachment.html>


More information about the squid-users mailing list