[squid-users] squid cache peer based on source ip address rule
--Ahmad--
ahmed.zaeem at netstream.ps
Mon Aug 14 18:34:07 UTC 2017
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
##################
acl custNet dstdomain .mail.com .mail.ru .trustly.com .ing.nl .live.adyen.com www.mail.com .uicdn.com . .9gag.com .tumblr.com .boredpanda.com .deref-mail.com .tutanota.com
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 :
##################
acl custNet dstdomain .mail.com .mail.ru .trustly.com .ing.nl .live.adyen.com www.mail.com .uicdn.com . .9gag.com .tumblr.com .boredpanda.com .deref-mail.com .tutanota.com
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170814/fbb36b3a/attachment.html>
More information about the squid-users
mailing list