Re: [squid-users] bypass parent proxy for some urls - dstdomains

From: Chris Robertson <crobertson@dont-contact.us>
Date: Thu, 20 Mar 2008 13:51:18 -0800

Paul Anderson wrote:
> Hello,
>
> I appologize if this has been answered before, but I have been unable to find anything.
>
> I am trying to set up the following:
>
> Lan - Squid - Parent Proxy (ISP)
>
>
> I have basically added the following lines to squid.conf file
>
> cache_peer parentcache.foo.com parent 3128 0 no-query default
> acl all src 0.0.0.0/0.0.0.0
>
acl bypass_parent dstdomain .this.goes.direct.com
always_direct allow bypass_parent
> never_direct allow all
>
> and all traffic is going through the parent proxy, however I would like to be able to set up acl in order to allow some websites to go through directly, without going through the parent proxy. So basically what I need is the following:
>
> check destination to see if it is allowed to bypass parent proxy (or access denied, or blocked) if no acl exists, then forword request to parent proxy
>
> any and all help would be greatly appreciated, please let me know ifyou need more info.
>
> thanks,
>
> paul

Put the always direct line above the never direct one (or use multiple
ACLs and always direct lines). They work just like http_access lines in
that it's a first match.

Chris
Received on Thu Mar 20 2008 - 15:51:35 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:05 MDT