March 28, 2024, 03:40:30 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: squid acl time  (Read 9238 times)

Offline vasu

  • Linux Noob !
  • *
  • Posts: 19
squid acl time
« 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.. :(

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
squid acl time
« Reply #1 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

Offline vasu

  • Linux Noob !
  • *
  • Posts: 19
squid acl time script
« Reply #2 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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
squid acl time
« Reply #3 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 ..