Hi
This is an example that works.
Facts: I have 2Mbps BW Totally. I want limit compressed and binary
extensions totally utilize only 25Kbps, and multimedia files upto
35Kbps and other contents should not have any limitation here.
Hope this helps
Regards
=============== squid.conf
....
....
# Source ACLs
acl all src 0.0.0.0/0.0.0.0
acl mylan src 192.168.7.0/24
....
....
# Multimedia file extension, -i : case insensitive
acl mm_ext urlpath_regex -i \.mp3$ \.avi$ \.mov$ \.mpeg$ \.mpg$
\.divx$ \.mp4$ \.xvid$ \.axf$ \.3gp$ \.img2$ \.wma$ \.wmv$
acl compressed urlpath_regex -i \.rar$ \.zip$
acl executablebinary urlpath_regex \.exe$ \.msi$ \.bin$ \.iso$
....
....
#My LAN BWLimitation
delay_pools 3
delay_class 1 2
delay_class 2 2
delay_class 3 2
delay_parameters 3 25000/25000 25000/25000
delay_parameters 2 260000/260000 260000/260000
delay_parameters 1 35000/35000 35000/35000
delay_initial_bucket_level 50
delay_access 3 allow mylan executablebinary
delay_access 3 allow mylan compressed
delay_access 3 deny all
delay_access 2 allow mylan !mm_ext !executablebinary !compressed
delay_access 2 deny all
delay_access 1 allow myclan mm_ext
delay_access 1 deny all
....
....
===============
On 4/5/07, Eduardo Luís <eluis.linux@gmail.com> wrote:
> Hi,
>
> Is there any way I can limit bandwidth from users that are limiting
> our internet access with many porno movie downloads?
> I don't want to block them, but give litle bandwidth to those
> downloads like AVI, ASF, WMV, etc...
>
> Thanks.
>
-- Mehdi SarmadiReceived on Wed Apr 04 2007 - 23:50:21 MDT
This archive was generated by hypermail pre-2.1.9 : Tue May 01 2007 - 12:00:01 MDT