LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-08-2013, 06:24 AM   #1
mohammad alsharqi
LQ Newbie
 
Registered: Feb 2013
Posts: 13

Rep: Reputation: Disabled
multiple delay pools??


hi

1- i'd configured delay_pools with squid
and i want to limit bandwidth to certain extension such as
Code:
delay_pools 4

delay_class 1 1
delay_class 2 1
delay_class 3 1
delay_class 4 1


delay_parameters 1  32000/50000
acl magicwords url_regex -i .rar .mpg .ogg .asx .mpeg .deb .7z .cab .daa .nrg .vcd .bin .mkv .mov .asf .rpm .zip .exe .iso .avi .tar.gz .tar
delay_access 1 allow magicwords

delay_parameters 2  256000/50000
acl magicword url_regex -i .swf .avi .dat .ram .rm
delay_access 2 allow magicword
delay_access 2 deny all

delay_parameters 3  64000/64000
acl magicwor url_regex -i .flv .mp4 .mp3  .ppt .doc .pdf
delay_access 3 allow magicwor
delay_access 3 deny all

delay_parameters 4  256000/256000                            
acl magicwo url_regex -i .jpg .gif .png .jpeg .ico .bmp .css .js .htm .html
delay_access 4 allow magicwo      
delay_access 4 deny all
but this is seems not correct
2- how to delay_pool videostream of youtube
 
Old 08-08-2013, 09:14 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by mohammad alsharqi View Post
hi
1- i'd configured delay_pools with squid and i want to limit bandwidth to certain extension such as
but this is seems not correct
And without knowing what you mean by "seems not correct", version/distro of Linux, version of Squid, or ANY details at all, there's little we can tell you.
Quote:
2- how to delay_pool videostream of youtube
From the Squid forums, after a VERY brief search:
http://www.squid-cache.org/mail-arch...1301/0036.html

Be aware that, as noted in that thread, that YouTube, streams videos from SEVERAL different URL's. So, putting "youtube.com" will delay that ONE site...while another video will NOT be.
 
Old 08-08-2013, 12:09 PM   #3
mohammad alsharqi
LQ Newbie
 
Registered: Feb 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
And without knowing what you mean by "seems not correct", version/distro of Linux, version of Squid, or ANY details at all, there's little we can tell you.

From the Squid forums, after a VERY brief search:
http://www.squid-cache.org/mail-arch...1301/0036.html

Be aware that, as noted in that thread, that YouTube, streams videos from SEVERAL different URL's. So, putting "youtube.com" will delay that ONE site...while another video will NOT be.

thanks for replay
version squid3 and is this multiple delay_pools is correct for different extensions ??

and i want to delay videostream and not website of youtube.com
 
Old 08-08-2013, 12:34 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by mohammad alsharqi View Post
thanks for replay
version squid3 and is this multiple delay_pools is correct for different extensions ??
No idea if it's 'correct' or not, since I don't know what your goals are.
Quote:
and i want to delay videostream and not website of youtube.com
Right...and I gave you a link to read, and an explanation of why that will be difficult.
 
Old 08-08-2013, 01:05 PM   #5
mohammad alsharqi
LQ Newbie
 
Registered: Feb 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
No idea if it's 'correct' or not, since I don't know what your goals are.

Right...and I gave you a link to read, and an explanation of why that will be difficult.

i would to limit exe extension with specific bandwidth speed and flv with other specific bandwidth speed
and etc for other extension

can i do it with delay_pools?
 
Old 08-08-2013, 01:32 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by mohammad alsharqi View Post
i would to limit exe extension with specific bandwidth speed and flv with other specific bandwidth speed
and etc for other extension

can i do it with delay_pools?
Yes, and again if you looked on the Squid forums (or even Google), you could find examples on how to do this:
http://www.squid-cache.org/mail-arch...0801/0484.html
 
Old 08-10-2013, 07:19 AM   #7
mohammad alsharqi
LQ Newbie
 
Registered: Feb 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
TB0ne, i found it but i have ubuntu with squid and connected to mikrotik
i would to part all bandwidth to one ip address
for example 64kb for exe
32 kb for flv

i didn't found it and couldn't obtain this from the previous code
 
Old 08-10-2013, 11:08 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by mohammad alsharqi View Post
TB0ne, i found it but i have ubuntu with squid and connected to mikrotik
i would to part all bandwidth to one ip address for example 64kb for exe 32 kb for flv

i didn't found it and couldn't obtain this from the previous code
What version of Linux you have has NO impact on squid...the rules/acl's are the same. Read the links and documentation.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some help with delay pools b3rkl3y Linux - Networking 0 04-18-2011 06:52 PM
Squid with Delay Pools. nishith Linux - Server 2 01-02-2010 03:11 PM
Delay Pools z_haseeb Linux - Newbie 1 06-26-2008 01:42 AM
Delay Pools zmunawar1 Linux - Server 2 06-19-2008 02:07 PM
delay pools csdhiman Linux - Server 1 03-22-2007 03:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration