[squid-users] Block a set of sites for a set of users

From: Dayo Adewunmi <contactdayo_at_gmail.com>
Date: Thu, 03 Dec 2009 20:42:18 +0100

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
Received on Thu Dec 03 2009 - 19:42:47 MST

This archive was generated by hypermail 2.2.0 : Fri Dec 04 2009 - 12:00:01 MST