We using a Smoothwall Squid proxy. Which is working fine! We have some access rules configured where requests for specific intranet domains are sent to another upstream squid proxy for resolution etc. This worked well for the last three years. However, we now have a request that some specific intranet websites now need to be sent to another proxy for resolution, and this is where I am having issues! The problem is that regardless of what I do, all requests go to the primary server.
Listed below is information on the upstream proxies:
Upstream Proxy 1 is 10.10.10.10
Upstream Proxy 2 is 126.96.36.199
I have the appropriate acls setup on the local
SQUID proxy. They are listed in the code window below.
As you can see the "specific sites" are subsets of the .net.local
domain and hence Squid is therefore sending the requests the primary server. If I remove .net.local from the allsites.acl file, then it gets routed to the second proxy. But then, all other .net.local sites requests cause the local SQUID proxy to connect directly to intranet site in question instead of sending it to the upstream proxy.
So I still need all other .net.local sites to go via proxy 1.
Does anybody have an idea on how I can achieve that so that only the specific sites go to proxy 2?
I have tried the urldom_regex option but I get the same results.
#allsites upstream proxy
cache_peer 10.10.10.10 parent 8080 0 default no-query login=PASS connect-timeout=30 originserver connection-auth=auto http11
acl allsites dstdom_regex "/var/smoothwall/proxy/advanced/acls/allsites.acl"
never_direct allow allsites.acl
cache_peer_access 10.10.10.10 allow allsites
#specific sites upstream proxy
cache_peer 188.8.131.52 parent 8080 0 no-query login=PASS connect-timeout=30 originserver connection-auth=auto http11
acl allsites dstdom_regex "/var/smoothwall/proxy/advanced/acls/specificsites.acl"
never_direct allow specificsites.acl
cache_peer_access 184.108.40.206 allow specificsites
listing of the allsites.acl file
listing of the specificsites.acl file