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 |
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 |
i would like to know how i could give access on hourly basis
|
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 |
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
|
All times are GMT -5. The time now is 09:44 PM. |