Re: [squid-users] Bandwidth by file extension

From: Mehdi Sarmadi <msarmadi@dont-contact.us>
Date: Thu, 5 Apr 2007 15:19:47 +0330

as a reference check:
http://www.visolve.com/squid/squid30/delaypools.php#delay_parameters

So just change delaypool parameter and Pool #2 to 1Mbps

On 4/5/07, Eduardo Luís <eluis.linux@gmail.com> wrote:
> Thanks very much for your example.
> But,
> I would like to understand those numbers:
>
> >delay_parameters 3 25000/25000 25000/25000
this line says 25KByte/Sec Individual and 25KByte/Sec Aggregate limit

> > delay_parameters 2 260000/260000 260000/260000
this line says 260KByte/Sec Individual and 260KByte/Sec Aggregate
limit (mean no limit on a 260KByte/Sec link ;) = 8*260Kbps = 2080Kbps
= 2Mbps)

for 1Mbps(128Kbps*8) change the line above to:
  delay_parameters 2 128000/128000 128000/128000

> > delay_parameters 1 35000/35000 35000/35000
this line says 35KByte/Sec Individual and 35KByte/Sec Aggregate limit

>
> My link is 1Mbps. I want to set a rule like yours but concerning my
> link ando not yours 2Mbps link.
>
> Thanks
>
> Eduardo Luís
>
>
> 2007/4/5, Mehdi Sarmadi <msarmadi@gmail.com>:
> > 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 Sarmadi
> >
>

-- 
Mehdi Sarmadi
Received on Thu Apr 05 2007 - 05:49:50 MDT

This archive was generated by hypermail pre-2.1.9 : Tue May 01 2007 - 12:00:01 MDT