Require Squid ACL's

Taking care of your Linux box.
Post Reply
telenor
Havaldaar
Posts: 104
Joined: Tue Mar 29, 2005 11:08 am

Require Squid ACL's

Post by telenor »

AOA,


I need following ACL's for Squid


Block Browsing from 9AM-5PM on specfic IP
192.168.1.10 192.168.1.11 192.168.1.12 192.168.1.13

Block Downloading from 9AM-5PM on whole network except 192.168.1.2 192.168.1.5
TheOne4U
Lance Naik
Posts: 19
Joined: Sat Sep 20, 2003 1:49 am
Location: Karachi

Re: Require Squid ACL's

Post by TheOne4U »

[quote="telenor"]AOA,


I need following ACL's for Squid


Block Browsing from 9AM-5PM on specfic IP
192.168.1.10 192.168.1.11 192.168.1.12 192.168.1.13

Block Downloading from 9AM-5PM on whole network except 192.168.1.2 192.168.1.5[/quote]

Try This and post the result here

### start ###
acl src nobrowsing 192.168.1.10/32 192.168.1.11/32 192.168.1.12/32 192.168.1.13/32

acl nodownload url_regex -i .exe .avi .mp3 .mp4 .rar .zip .cab .flv .wmv .wma .dll .bin

acl full src 192.168.1.2/32 192.168.1.5/32

acl DAY time 09:00-17:00

http_access deny nobrowsing nodownload DAY !full
http_access allow full DAY

### end ###

Hope This will work

TheOne4u
Post Reply