Difference between revisions of "SQUID Delay Pool Bandwidth"
From MS Computech
Line 19: | Line 19: | ||
Last-Modified: Tue, 10 May 2016 08:25:45 GMT | Last-Modified: Tue, 10 May 2016 08:25:45 GMT | ||
X-Cache: MISS from 1234 | X-Cache: MISS from 1234 | ||
− | X-Cache-Lookup: MISS from | + | X-Cache-Lookup: MISS from 1234:3128 |
Via: 1.0 1234 (squid/3.1.23) | Via: 1.0 1234 (squid/3.1.23) | ||
Connection: close | Connection: close |
Revision as of 15:36, 10 May 2016
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.com delay_access 1 allow YOUTUBE
ทดสอบ
[root@1234 ~]# 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 1234 X-Cache-Lookup: MISS from 1234:3128 Via: 1.0 1234 (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