Search squid archive

Re: Block a set of sites for a set of users

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

 



Dayo Adewunmi wrote:
Hi all

I'm using squid 2.6.18-1ubuntu3 on Ubuntu 8.04. So far I've configured it
to deny access to a set of sites for all users, during the period of 8am-8pm.
Now, I want to grant certain users 24/7 access to the restricted sites.
I've tried it with these ACLs:

acl academic01 time MTWHFAS 08:00-20:00
acl exempt src 192.168.2.127
acl media-sites url_regex -i (..........)
http_access deny media-sites academic

acl noaccess dstdomain "/etc/squid/noaccess.dat"
http_access allow noaccess exempt
http_access allow noaccess !academic01
http_access deny noaccess

They do grant the exempted user access, but the problem is, after 8pm the others
are still blocked from accessing the restricted sites.
Please help.

Best regards

Dayo

Couple of points...

I think the blockage is happening because of "media-sites". Your bypass is on "noaccess", and only happens after media-sites is allowed.

Also, the media-sites checks can be sped up a LOT by simply making it:

 http_access deny academic media-sites

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE7 or 3.0.STABLE20
  Current Beta Squid 3.1.0.15

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

  Powered by Linux