Time Restriction using "SQUID"

Taking care of your Linux box.
Learner
Lance Naik
Posts: 41
Joined: Wed Nov 08, 2006 2:40 am

Time Restriction using "SQUID"

Postby Learner » Wed Apr 08, 2009 1:15 pm

AOA

Dear All

I am using squid as a cache server. I want to use time base restriction on users.

Allow time period for different groups is as follow:

12Hrs 0800 - 2000 (08:00 AM - 08:00 PM)
14Hrs 0800 - 2200 (08:00 AM - 10:00 PM)
08Hrs 0830 - 1730 (08:30 AM - 05:30 PM)

Other than this time restriction can block net access.

Please guide.
Thanks & Regards


Muhammad Ali

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Wed Apr 08, 2009 8:13 pm

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

Learner
Lance Naik
Posts: 41
Joined: Wed Nov 08, 2006 2:40 am

Postby Learner » Sat Apr 11, 2009 11:24 am

Dear Lambda

I am still confused, I have put this in my squid.conf file. I have set the time period

acl off_hrs8 src 1.2.3.4
acl off_hrs14 src 1.2.3.5
acl off_hrs12 src 1.2.3.6

acl hrs8 time MTWHFA 08:30-17:30
acl hrs14 time MTWHFA 08:00-22:00
acl hrs12 time MTWHFA 08:00-20:00

http_access allow hrs8 off_hrs8
http_access allow hrs14 off_hrs14
http_access allow hrs12 off_hrs12
http_access allow off_hrs8
http_access allow off_hrs14
http_access allow off_hrs12
http_access deny all

it not working

Please guide, I just want that browsing should be only available with in this time period.
Thanks & Regards





Muhammad Ali

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Sat Apr 11, 2009 2:43 pm

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest