Re: [squid-users] ACL dstdomain not working

From: Henrik K <hege@dont-contact.us>
Date: Tue, 11 Mar 2008 11:41:09 +0200

On Tue, Mar 11, 2008 at 10:32:49AM +0100, Luca Gervasi wrote:
> Hello,
> i'm pretty new to squid. I installed it for the first time in a lab
> which needs to access to some specific domains through a parent proxy,
> using direct connection for all the requests.
>
> I setup Squid Cache: Version 2.6.STABLE16, on Fedora 8, adding those commands:
>
> cache_peer MY_PARENT_PROXY parent 3128 0 no-query proxy-only default
>
> acl ieee dstdomain .ieee.org
> acl acmorg dstdomain .acm.org
>
> cache_peer_access MY_PARENT_PROXY allow ieee acmorg
> cache_peer_access MY_PARENT_PROXY deny all

http://wiki.squid-cache.org/SquidFaq/SquidAcl#head-af2c190759b099a7986221cd12a4066eb146a1c4

Thus:

cache_peer_access MY_PARENT_PROXY allow ieee
cache_peer_access MY_PARENT_PROXY allow acmorg
cache_peer_access MY_PARENT_PROXY deny all

Or more simply:

acl to_parent dstdomain .ieee.org .acm.org
cache_peer_access MY_PARENT_PROXY allow to_parent
cache_peer_access MY_PARENT_PROXY deny all
Received on Tue Mar 11 2008 - 03:41:15 MDT

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