Re: [squid-users] Need ACL to restrict specific hosts to specific websites

From: Chris Robertson <[email protected]>
Date: Mon, 01 Oct 2007 15:03:54 -0800

George wrote:
> Hi All;
>
> Relatively new to Squid, and am having a problem with an ACL.
> Currently, my setup allows all hosts access to all sites on the
> Internet with the exception of "bad" sites that I've already
> restricted via another ACL.
>
> I want to add another ACL to allow 5 specific hosts on our network to
> access 6 specific Internet websites, but nothing else. What would be
> the simplest and most effective way to do this? All suggestions
> appreciated. Thanks!
>
> George
>

acl restrictedHosts src 10.0.0.25 10.0.0.28 10.0.0.35 10.0.0.42 10.0.0.199
acl allowedSites dstdomain .whitelist.com list.example.com
http_access allow restrictedHosts allowedSites
http_access deny restrictedHosts
# Other http_access rules go here.

The FAQ has a pretty comprehensive section on ACLs
(http://wiki.squid-cache.org/SquidFaq/SquidAcl).

Chris
Received on Mon Oct 01 2007 - 17:04:06 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:00 MDT