LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-17-2005, 08:08 AM   #1
ikillu
Member
 
Registered: Jul 2004
Posts: 34

Rep: Reputation: 15
Squid : Time ACL problem


I create an time ACL that one user can browse 09 PM to 09 AM, here is ACL,

acl zub src 192.168.0.10
acl zub_time time 21:00-09:00
http_access allow zub zub_time


Now where I restart squid I error message
Quote:
Stopping squid: 2005/07/17 18:59:26| squid.conf line 1740 acl zub_time time 21:00-09:00
2005/07/17 18:59:26| aclParseTimeSpecl IGNORING Reverse time range
2005/07/17 18:59:26| aclParseAclLine: IGNORING invalid ACL: acl zub_time time 21:00-09:00
2005/07/17 18:59:26| squid.conf line 1742: http_access allow zub zub_time
2005/07/17 18:59:26| aclParseAccessLine: ACL name 'zub_time' not found..
........
what's wrong there?? pls help
 
Old 07-18-2005, 02:40 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
Re: Squid : Time ACL problem

Quote:
Originally posted by ikillu

acl zub_time time 21:00-09:00

try:
Code:
acl zub_time time 09:00-21:00
 
Old 07-18-2005, 07:22 AM   #3
ikillu
Member
 
Registered: Jul 2004
Posts: 34

Original Poster
Rep: Reputation: 15
Re: Re: Squid : Time ACL problem

Quote:
Originally posted by maxut
try:
Code:
acl zub_time time 09:00-21:00
if I make acl 09:00-21:00 this will be 9 AM to 9 PM but I want 9 PM to 9 AM,
 
Old 07-18-2005, 11:50 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
sorry.
the toruble is squid doesnt allow "reverse time range". so u cannot define 9 PM to 9 AM. but the following may help u.
Code:
acl zub src 192.168.0.10
acl zub_time1 time 21:00-24:00
acl zub_time2 time 00:00-09:00
http_access allow zub zub_time1
http_access allow zub zub_time2
good luck.
 
1 members found this post helpful.
Old 07-18-2005, 02:44 PM   #5
ikillu
Member
 
Registered: Jul 2004
Posts: 34

Original Poster
Rep: Reputation: 15
thank you, i will try this.
 
  


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
Squid problem with http_access and time acl mago Linux - Networking 1 11-25-2005 01:11 PM
set time acl and custom message squid cgelectek Linux - Software 1 06-25-2005 11:17 AM
Squid ACL - what happens when a user go goes past their allowed access time? Grizzlednewbie Linux - Software 0 07-07-2004 12:37 AM
squid acl problem aigartua Linux - Software 1 12-08-2003 09:03 AM
squid acl - time statement xscousr Linux - Networking 4 08-08-2003 12:12 AM


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

Main Menu
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