Pages

Sabtu, 01 Oktober 2011

Custom Option ku pd pfsense

Karena bandwidth aku prihatin aku coba-coba rubah PpSense kesayanganku Custom Option di Lusca ku
dan hasilnya cukup memuaskan dmana dengan Bandwidth 1M dari Spidol dapat dibagi untuk 20 Unit Client..

zph_mode tos;
zph_local 0x04;
zph_parent 0;
zph_option 136;
acl admin src 192.168.1.253/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://imroninfo.blogspot.com/;
no_cache deny XYZZY;

#==========================================
zph_mode tos;
zph_local 0x04;
zph_parent 0;
zph_option 136;
acl admin src 192.168.1.2/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://imroninfo.blogspot.com/;
no_cache deny XYZZY;