texs mlaku

MENU

Custom Option pd pfsense

dengan Bandwidth 1M dari Spidol dapat dibagi untuk 20 Unit Client..
 Sebelumnya masuk dulu ke
-----> edit file : /var/squid/acl/throttle_exts

# Multimedia Audio
\.aif$
\.rmi$
\.snd$
\.wav$
\.aifc$
\.aiff$
\.au$
\.mid$
\.midi$
\.mp3$
\.wma$
\.vqf$
\.aaf$
\.ogg$

# Multimedia Video
\.asf$
\.x-flv$
\.mpe$
\.mpeg$
\.mpg$
\.mpv2$
\.avi$
\.m1v$
\.mp2$
\.mp2v$
\.mpa$
\.flv$
\.wmv$
\.dat$
\.mkv$
\.div$
\.divx$
\.ac3$
\.dts$
\.vob$
\.dvr-ms$
\.mp4$
\.m2v$
\.m4v$
\.m2ts$
\.bup$
\.3gpp$
\.3g2$
\.3gp2$
\.vro$
\.rm$
\.3gp$
\.ram$
\.raw$
\.qt$
\.mov$
\.svcd$
\.xdiv$
\.3mm$
\.aep$
\.ajp$
\.amv$
\.avs$
\.d2v$
\.d3v$
\.dmb$
\.dxr$
\.amx$
\.arf$
\.asf$
\.dvx$
\.f4v$
\.dv$
\.bsf$
\.rmvb$
\.rv$

# Gambar
\.srf$
\.hdf$
\.wbmp$
\.wmf$
\.x3f$
\.xbm$
\.xpm$
\.cr2$
\.crw$
\.dcr$
\.tga$
\.djvu$
\.emf$
\.fpx$
\.icl$
\.icn$
\.plp$
\.ppm$
\.raf$
\.ras$
\.raw$
\.mrw$
\.nef$
\.orf$
\.pbm$
\.pcd$
\.pef$
\.pgm$
\.rs$

# Program
\.rpm$
\.bin$
\.dmg$
\.exe$
\.msi$
\.cab$

# Kompresi
\.ace$
\.arj$
\.bzip2$
\.gz$
\.jar$
\.tgz$
\.uue$
\.iso$
\.7-zip$
\.rar$
\.alz$
\.nrg$
\.zip$
\.cab$
\.gzip$
\.lzh$
\.lzw$
\.tar$
\.tbz$


 Tambahkan option dibawah ini pada Custom Options pada Proxy server: General settings

zph_mode tos;
zph_local 0x04;
zph_parent 0;
zph_option 136;
acl admin src 192.168.10.0/255.255.255.255;
acl throttle_exts urlpath_regex -i "/var/squid/acl/throttle_exts.acl";
acl slow_sites url_regex -i "/var/squid/acl/slow_video.acl";
acl jam_limit time SMTWHFA 23:59-00:01;
delay_pools 3;
delay_class 1 1;
delay_parameters 1 -1/-1;
delay_access 1 allow admin;
delay_access 1 deny all;
#delay_class 2 3;
#delay_parameters 2 64000/64000 32000/32000 32000/200000;
delay_class 2 2;
delay_parameters 2 -1/-1 128000/512000;
delay_access 2 allow slow_sites jam_limit;
delay_access 2 deny all;
delay_class 3 2;
delay_parameters 3 -1/-1 8000/32000;
delay_initial_bucket_level 100;
delay_access 3 allow throttle_exts jam_limit;
delay_access 3 deny all;
acl HTML url_regex .ini$;
no_cache deny HTML;
acl XYZZY url_regex ^http://122.102.49.132/audition/Update.ini$;
acl XYZZY url_regex ^http://patch.crossfire.web.id/download/version.ini$;
acl XYZZY url_regex ^http://patch.sealindo.com/patch/normal/version.ini$;
acl XYZZY url_regex ^http://cyberblok12.blogspot.com/;
no_cache deny XYZZY;

#==========================================
zph_mode tos;
zph_local 0x04;
zph_parent 0;
zph_option 136;
acl admin src 192.168.10.0/255.255.255.255;
acl throttle_exts urlpath_regex -i "/var/squid/acl/throttle_exts.acl";
acl slow_sites url_regex -i "/var/squid/acl/slow_video.acl";
acl jam_limit time SMTWHFA 06:00-21:00;
delay_pools 3;
delay_class 1 1;
delay_parameters 1 -1/-1;
delay_access 1 allow admin;
delay_access 1 deny all;
delay_class 2 3;
delay_parameters 2 64000/64000 32000/32000 32000/200000;
delay_access 2 allow slow_sites jam_limit;
delay_access 2 deny all;
delay_class 3 1;
delay_parameters 3 4000/4000;
delay_initial_bucket_level 100;
delay_access 3 allow throttle_exts jam_limit;
delay_access 3 deny all;
acl HTML url_regex .ini$;
no_cache deny HTML;
acl XYZZY url_regex ^http://122.102.49.132/audition/Update.ini$;
acl XYZZY url_regex ^http://patch.crossfire.web.id/download/version.ini$;
acl XYZZY url_regex ^http://patch.sealindo.com/patch/normal/version.ini$;
acl XYZZY url_regex ^http://cyberblok12.blogspot.com/;
no_cache deny XYZZY;