Squid extra delay pools - Limiting Youtube bandwidth
-
Oops!
It doesn't works. It seems that default delay pool with unlimited bandwidth causes my delay pool for YOUTUBE not to work.
Reverting to first solution…
-
hi bellera, is this working on https://www.youtube.com?
-
-
what you mean by first solution sir?
is it default settings in delay pools ("1") without hacking in squid.inc to "2"? thanks -
-
bom dia
good dayI need your help
I have a link of 10MB and want to separate the network 192.168.1.0/24 4Mb link to the extensions specified here and the youtube site:
(./..(avi|mpg|mpeg|mpe|m1v|m2v|mpv2|mp2v|pva|evo|m2p|ts|tp|trp|m2t|m2ts|mts|rec|vob|ifo|mkv|webm|mp4|m4v|mp4v|mpv4|hdmov|mov|3gp|3gpp|swf|3ga|3g2|3gp2|flv|f4v|ogm|ogv|rm|ram|rt|rp|rmm|wmv|wmp|wm|asf|smk|bik|fli|flc|flic|dsm|dsv|dsa|dss|ivf|d2v|divx|rmvb|amv|ac3|dts|aif|aifc|aiff|alac|amr|ape|apl|au|snd|cda|flac|m4a|m4b|m4r|aac|mid|midi|rmi|mka|mp3|mpa|mp2|m1a|m2a|mpc|ofr|ofs|ogg|oga|opus|ra|tak|tta|wav|wma|wv|aob|mlp|asx|m3u|m3u8|pls|wvx|wax|wmx|mpcpl|mpls|bdmv|vbr|wmv8|psp|mpg1|mpg2|mpeg-4|mpeg4|flv|f4v|swf))
how to do it?
-
Tested with squid3-dev 3.3.10 pkg 2.2.1 not transparent (intercept) mode
I need to limit the use of Youtube at my main installation.
I added, at Custom Options, the following lines (Youtube serves now the videos from googlevideo.com domain):
# Limiting YOUTUBE at 8 * 512.000 Byte/s = 4.096.000 bit/s = 4 Mbit/s delay_pools 2 delay_class 2 1 delay_parameters 2 512000/512000 acl YOUTUBE dstdomain .googlevideo.com delay_access 2 allow YOUTUBE
Mr, Can i set the same configuration for different sites or do i have to do it all in the same line?
Thank you!
What would be the best way to check this? -
Thanks for de big tip ! For my transparent mode config works fine.
Geovane
-
Tested with squid3-dev 3.3.10 pkg 2.2.1 not transparent (intercept) mode
I need to limit the use of Youtube at my main installation.
Nothing configured at Proxy server: Traffic management, so the defaults at squid.conf
request_body_max_size 0 KB delay_pools 1 delay_class 1 2 delay_parameters 1 -1/-1 -1/-1 delay_initial_bucket_level 100 delay_access 1 allow allsrc
I added, at Custom Options, the following lines (Youtube serves now the videos from googlevideo.com domain):
# Limiting YOUTUBE at 8 * 512.000 Byte/s = 4.096.000 bit/s = 4 Mbit/s delay_pools 2 delay_class 2 1 delay_parameters 2 512000/512000 acl YOUTUBE dstdomain .googlevideo.com delay_access 2 allow YOUTUBE
I went to www.youtube.com and searched for long videos
I opened many (4-5) long videos at the same time. It worked!
I did changes to 256000/256000 (2 Mbit/s) and it worked!
I reconfigured a new time with 512000/512000 (4 Mbit/s) and it worked!
Please see the attached image. I think bandwidth 4 Mbit/s and 2 Mbit/s is bigger because in fact I'm monitoring my VPN connection.
I made the testing from road warrior at home using the proxy at job. Nobody at job. :) :) :)
Problem
- squid.conf has two lines delay_pools (one from default configuration, other from my Custom Options).
- But it seems not to be important.
- Old discussion about extra delay pools, https://forum.pfsense.org/index.php?topic=41516.0
Hello
Thank you for this post!
I am having trouble assigning this setting for a specific range. what do you think my problem is?Here is my setting
acl user_group_1 192.168.1.20-192.168.1.90
delay_pools 2
delay_class 2 1
delay_parameters 2 512000/512000
acl YOUTUBE dstdomain .googlevideo.com
delay_access 2 allow YOUTUBE
delay_access 2 allow user_group_1 -
Excelente, sirvio para 2.4.2
Excellent, it works on 2.4.2