squid cache peer based on source ip address rule

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

squid cache peer based on source ip address rule

--Ahmad--
Dear squid users folks ,

i have many different cache peers I’m gonna send traffic to.

but the issue is i want to have different cache peer setup based on the source ip address  .


say the ip address of the user was 1.1.1.1

i want it go to the cache peer  with system below 
##################
cache_peer 12.13.250.251 parent 5555 0 no-query no-digest
never_direct allow custNet
cache_peer_access 12.13.250.251 allow custNet
cache_peer_access 12.13.250.251 deny all
http_access allow custNet
#############################################################



say the source ip address was 2.2.2.2  i want it has the custom config of cache peer below :


##################
cache_peer 12.13.250.252 parent 5555 0 no-query no-digest
never_direct allow custNet
cache_peer_access 12.13.250.252 allow custNet
cache_peer_access 12.13.250.252 deny all
http_access allow custNet
#############################################################


so I’m wondering @ the moment how can i modify squid config so that it forward to specific peer  based on the source ip address of the user who using the proxy 



kind regards 



_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users