[squid-users] Access List

From: Awie <awie@dont-contact.us>
Date: Wed, 4 Sep 2002 20:43:47 +0800

Dear all,

I want to limit users at canteen, that allowing them browsing Internet when
they have meal time only. Otherwise they should not able to browse Internet.

Below I tried to create the some access list that I need your advise which
is the most effective (and will work)

acl CANTEEN src 10.1.2.3 10.1.2.4
acl OPEN time SMTWHFA 08:00-10:00 11:00-13:00 18:00-20-00 1:00-3:00
http_access allow CANTEEN OPEN
http_access deny CANTEEN

Or

acl CANTEEN src 10.1.2.3 10.1.2.4
acl OPEN1 time SMTWHFA 08:00-10:00
acl OPEN2 time SMTWHFA 11:00-13:00
acl OPEN3 time SMTWHFA 18:00-20-00
acl OPEN4 time SMTWHFA 1:00-3:00
http_access allow CANTEEN OPEN1 OPEN2 OPEN3 OPEN4
http_access deny CANTEEN

Or

acl CANTEEN src 10.1.2.3 10.1.2.4
acl OPEN1 time SMTWHFA 08:00-10:00
acl OPEN2 time SMTWHFA 11:00-13:00
acl OPEN3 time SMTWHFA 18:00-20-00
acl OPEN4 time SMTWHFA 1:00-3:00
http_access allow CANTEEN OPEN1
http_access allow CANTEEN OPEN2
http_access allow CANTEEN OPEN3
http_access allow CANTEEN OPEN4
http_access deny CANTEEN

Your advise is very appreciated and waited for. Many thanks for your help

Thx & rgds,

Awie
Received on Wed Sep 04 2002 - 06:39:01 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:10:03 MST