LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Squid time ACL problem (https://www.linuxquestions.org/questions/linux-software-2/squid-time-acl-problem-860686/)

Cenobite 02-04-2011 08:15 AM

Squid time ACL problem
 
I've got a squid setup with the relevant lines as follows:

Code:

acl blockus_sites url_regex "/etc/squid/block-us-sites.txt"

acl blockustime_prelunch time 07:30-12:00
acl blockustime_postlunch time 13:00-16:15

acl blockus proxy_auth "/etc/squid/block-us.txt"

http_access deny blockus !blockus_sites blockustime_prelunch
http_access deny blockus !blockus_sites blockustime_postlunch

http_access allow localhost
http_access deny all
http_reply_access allow all

Essentially I want the users in the blockus ACL to only have access to the websites listed in blockus_sites from 07:30-12:00 and 13:00-16:15. Unfortunately those users are unable to browse anything ever.

What am I doing wrong?

Any input would be hugely appreciated!

Cenobite 02-07-2011 12:29 AM

No ideas at all?

bathory 02-07-2011 12:51 AM

Quote:

Essentially I want the users in the blockus ACL to only have access to the websites listed in blockus_sites from 07:30-12:00 and 13:00-16:15.
Then it should be:
Code:

http_access allow blockus blockus_sites blockustime_prelunch
http_access allow blockus blockus_sites blockustime_postlunch
http_access deny blockus



All times are GMT -5. The time now is 06:53 PM.