Search squid archive

Re: Need ACL to restrict specific hosts to specific websites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On mån, 2007-10-01 at 14:31 -0400, 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!

Before where you otherwise allow access:

acl restricted_hosts src ip.of.host1 ...
acl restricted_sites dstdomain www.example.com www.squid-cache.org www.henriknordstrom.net

# Allos restricted_hosts only access to restricted_sites
http_access allow restricted_hosts restricted_sites
http_access deny restricted_hosts

or alternatively

# Deny restricted_hosts access to anything not in restricted_sites
http_access deny restricted_hosts !restricted_sites

assuming the restricted_sites is also allowed by your normal access rules..

Regards
Henrik

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux