LinuxQuestions.org
Visit Jeremy's Blog.
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-25-2003, 10:44 AM   #1
xscousr
Member
 
Registered: Jul 2003
Location: Toronto
Distribution: Redhat
Posts: 89

Rep: Reputation: 15
squid acl - time statement


Hi All,

Trying to setup an acl for a user group authenticating through winbind
All authentication works. Internet for the masses is working fine.

What i have created is an NT user group called Internet-lunch to allow surfing during lunch and afterhours for those without regular access.

I have created a file called internet-lunch with the user group name in it..

[root@proxy etc]# cat internet-lunch
Internet-Lunch
[root@proxy etc]

This is the acl statement allowing access - ok
acl internet_lunch external wb_group proxy_auth_regex -i "/usr/local/squid/etc/internet_lunch"

Now to restrict the time allowed for this group - this is where i am unsure of the syntax...
acl internet_luch time [M-F] [13:00-14:00] .... <not sure what goes here>
acl internet_luch time [M-F] [18:30-8:00] .... <not sure what goes here>

Thanks in advance for any pointers....

Cheers,

S
 
Old 07-25-2003, 01:36 PM   #2
xscousr
Member
 
Registered: Jul 2003
Location: Toronto
Distribution: Redhat
Posts: 89

Original Poster
Rep: Reputation: 15
update...

i have modified my squid.conf to include the following - i'm still missing something though

acl internet_lunch external wb_group proxy_auth_regex -i "/usr/local/squid/etc/groups/internet_lunch"
acl internet_lunch time [M-F] [13:00-14:00]
acl internet_lunch_eve time [M-F] [18:30-24:00]
http_access allow internet_lunch
http_access allow internet_lunch_eve
 
Old 08-06-2003, 11:00 PM   #3
gadekar
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
i would like to know how i could give access on hourly basis
 
Old 08-07-2003, 07:34 AM   #4
xscousr
Member
 
Registered: Jul 2003
Location: Toronto
Distribution: Redhat
Posts: 89

Original Poster
Rep: Reputation: 15
The following sets of acl's give examples of how to setup for hourly basis - this is tested and working

acl internet_lunch external wb_group proxy_auth_regex -i "/usr/local/squid/etc/groups/internet_lunch"

acl internet_lunch time MTWHF 13:00-14:00
acl afterhours time MTWH 17:30-23:59
acl afterhoursf time F 16:30-23:59
acl morning time MTWHF 00:01-08:29

http_access allow internet_lunch internet_lunch
http_access allow internet_lunch afterhours
http_access allow internet_lunch afterhoursf
 
Old 08-08-2003, 12:12 AM   #5
gadekar
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
but what about if i had give users hours alloting for example 10 hrs to user1 50hrs to user2 or 100 hrs to user3 how would i do that
 
  


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
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 dfctve_end_user Linux - Networking 2 01-13-2003 09:30 AM


All times are GMT -5. The time now is 11:21 AM.

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