LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-04-2011, 09:15 AM   #1
Cenobite
LQ Newbie
 
Registered: Dec 2003
Location: South Africa
Distribution: CentOS, Arch
Posts: 25

Rep: Reputation: 0
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!
 
Old 02-07-2011, 01:29 AM   #2
Cenobite
LQ Newbie
 
Registered: Dec 2003
Location: South Africa
Distribution: CentOS, Arch
Posts: 25

Original Poster
Rep: Reputation: 0
No ideas at all?
 
Old 02-07-2011, 01:51 AM   #3
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,971

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Time ACL in squid for Local time thetzawko Linux - Server 1 10-20-2009 07:58 PM
how can i configure time acl in squid redhat 5.o sukhwaljai Linux - Newbie 1 05-27-2009 08:57 AM
Squid problem with http_access and time acl mago Linux - Networking 1 11-25-2005 02:11 PM
Squid : Time ACL problem ikillu Linux - Networking 4 07-18-2005 03:44 PM
squid acl - time statement xscousr Linux - Networking 4 08-08-2003 01:12 AM


All times are GMT -5. The time now is 11:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration