LinuxQuestions.org
Help answer threads with 0 replies.
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 06-09-2005, 07:22 PM   #1
cgelectek
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Rep: Reputation: 0
Question set time acl and custom message squid


Hello,

I have setup squid on Fedora core 3 its works great! What I would like to do now is have the users of this proxy server only allowed to access the internet during lunch hours, 12:00p.m. to 1:00 p.m. Monday through Friday. If they try to access the internet any other time I would like a message to show on the browser. I understand the basics of linux and squid. I think this should work but it doesn't any ideas? Please give the right military time as well.

acl office_net src 192.168.1.0\255.255.255.0
acl lunch_net time MTWTF 12:00-1:00
http_access allow office_net lunch_net
http_access deny office_net

Thanks in advance for the help.........

Last edited by cgelectek; 06-09-2005 at 07:25 PM.
 
Old 06-25-2005, 11:17 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Re: set time acl and custom message squid

Quote:
Originally posted by cgelectek
acl office_net src 192.168.1.0\255.255.255.0
acl lunch_net time MTWTF 12:00-1:00
http_access allow office_net lunch_net
http_access deny office_net
the letter for thursday is supposed to be H (not T), AFAIK... and since this post was made on a thursday (june 6) that could be why it didn't work...

as for the time, try with 12:00-13:00... like this:
Code:
acl office_net src 192.168.1.0\255.255.255.0
acl lunch_net time MTWHF 12:00-13:00 
http_access allow office_net lunch_net
http_access deny office_net
 
  


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
Squid : Time ACL problem ikillu Linux - Networking 4 07-18-2005 02:44 PM
Squid - Set time to allow full download -- please help me b:z Linux - Networking 0 04-24-2005 12:16 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 - time statement xscousr Linux - Networking 4 08-08-2003 12:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:42 AM.

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
Open Source Consulting | Domain Registration