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;
Selasa, 25 Januari 2011
move folder update accelator
http://www.carbm1.com/?cat=9
cd /home/httpd/html
mv updatecache/ /var/log/updatexlrator
ln -s /var/log/updatexlrator/updatecache updatecache
chown nobody:squid /var/log/updatexlrator/updatecache -R
chmod 775 /var/log/updatexlrator/updatecache -R
nano /etc/httpd/conf/httpd.conf
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
---------- ganti dg ---------------
Options ExecCGI FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Ctrl+O to write out file.
Ctrl+X to exit.
killall httpd
httpd -DSSL
cd /home/httpd/html
mv updatecache/ /var/log/updatexlrator
ln -s /var/log/updatexlrator/updatecache updatecache
chown nobody:squid /var/log/updatexlrator/updatecache -R
chmod 775 /var/log/updatexlrator/updatecache -R
nano /etc/httpd/conf/httpd.conf
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
---------- ganti dg ---------------
Options ExecCGI FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Ctrl+O to write out file.
Ctrl+X to exit.
killall httpd
httpd -DSSL
Langganan:
Postingan (Atom)