ide ini berdasarkan:
http://lqman.wordpress.com/2008/06/25/bandwidth-management-menggunakan-squid/
http://tekkomerz.friendhood.net/t15-management-bandwidth-dengan-squid-sederhana
Setting ini ditujukan agar download dibatas pada 250 bps jika sudah mencapai 1 MB
nano /home/httpd/cgi-bin/advproxy.cgi
ctrl+w isi dg delay_parameters
ganti angka 250 dg 4000
if ($netsettings{'BLUE_DEV'}) { print FILE "delay_class 2 3\n"; }
print FILE "delay_parameters 1 ";
if ($proxysettings{'THROTTLING_GREEN_TOTAL'} eq 'unlimited')
{
print FILE "-1/-1";
} else {
print FILE $proxysettings{'THROTTLING_GREEN_TOTAL'} * 125;
print FILE "/";
print FILE $proxysettings{'THROTTLING_GREEN_TOTAL'} *
4000;
}
print FILE " -1/-1 ";
if ($proxysettings{'THROTTLING_GREEN_HOST'} eq 'unlimited')
{
print FILE "-1/-1";
} else {
print FILE $proxysettings{'THROTTLING_GREEN_HOST'} * 125;
Tidak ada komentar:
Posting Komentar