Network Troublshooting > Linux Servers Support
squid acl time
(1/1)
vasu:
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.. :(
Ricky:
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: ---acl usertoblock src 192.168.1.15
acl midday time 11:00-14:00
http_access deny usertoblock midday
http_access allow usertoblock
--- End code ---
vasu:
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
Ricky:
--- 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
--- End quote ---
It should be like this
--- Code: ---acl eve time 20:00-20:30
acl test src 172.16.1.4/32
http_access deny test eve
http_access allow test
--- End code ---
BTW i have used "eve" instead of your 8_to_8:30
Please read my previous example again. u will get it ..
Navigation
[0] Message Index
Go to full version