Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Servers Support => Topic started by: vasu on February 06, 2004, 06:31:06 AM

Title: squid acl time
Post by: vasu on February 06, 2004, 06:31:06 AM
hi

   everybody i intslled rh9.0 i configured squid connected 50 users in they linux access internet but i want some users time restrication so how to add acl time scipt pleas help mee.. :(
Title: squid acl time
Post by: Ricky on February 06, 2004, 12:36:07 PM
Well.. if you want to acl for some specific users then..
make a acl for a users or user , say i wanna block 192.168.1.15 during 11:00 to 14:00 then
Code: [Select]
acl usertoblock src 192.168.1.15
acl midday time 11:00-14:00

http_access deny usertoblock midday

http_access allow usertoblock
Title: squid acl time script
Post by: vasu on February 07, 2004, 05:20:58 AM
hi

   hello  everybody i  configured rh9.0 i configured squid acl script in below i having some error.please explain wht is the correct. i want some users work time restrication.



 
acl 8_to_8:30time 20:00-20:30
acl time 20:00-21:00
acl test src 172.16.1.4/32
http_access allow test 8_to_8.30
Title: squid acl time
Post by: Ricky on February 07, 2004, 05:30:18 AM
Quote
acl 8_to_8:30time 20:00-20:30
acl time 20:00-21:00
acl test src 172.16.1.4/32
http_access allow test 8_to_8.30


It should be like this
Code: [Select]
acl eve time 20:00-20:30
acl test src 172.16.1.4/32
http_access deny test eve
http_access allow test

BTW i have used "eve" instead of your 8_to_8:30
Please read my previous example again. u will get it ..