SQUID Delay Pool Bandwidth
From MS Computech
SQUID Bandwidth control tested on squid 3.1 --Snifer 15:27, 10 May 2016 (ICT)
# Limiting YOUTUBE at 8 * 512.000 Byte/s = 4.096.000 bit/s = 4 Mbit/s delay_pools 2 delay_class 1 1 #delay_parameters 2 512000/512000 delay_parameters 1 32000/32000 acl YOUTUBE dstdomain .googlevideo.com .dl-one2up.com .4shared.com .mediafire.c$ delay_access 1 allow YOUTUBE
ทดสอบ
[root@sppfw ~]# squidclient -h localhost mgr:delay HTTP/1.0 200 OK Server: squid/3.1.23 Mime-Version: 1.0 Date: Tue, 10 May 2016 08:25:45 GMT Content-Type: text/plain Expires: Tue, 10 May 2016 08:25:45 GMT Last-Modified: Tue, 10 May 2016 08:25:45 GMT X-Cache: MISS from spp X-Cache-Lookup: MISS from spp:3128 Via: 1.0 spp (squid/3.1.23) Connection: close Delay pools configured: 2 Pool: 1 Class: 1 Aggregate: Max: 32000 Restore: 32000 Current: -33796915 Misconfigured pool. Memory Used: 280 bytes