25 April 2011

pembatasan bandwith via delay pools

cobain ini
http://clearos-indonesia.com/index.php?topic=381.0
acl lokal src 192.168.0.0/24
acl ekstensiblok url_regex -i \.wmv \.msi \.mpg \.mpeg \.wma \.wav \.3gp \.3gpp \.avi \.dat \.flv \.mkv \.mp4 \.mp3 \.mov \.rar \.zip \.7z \.iso \.pdf \.ace \.exe \.torrent \.aac \.ogg \.rm \.asf
acl streamregex url_regex -i watch\? get_video\?video_id videodownload\? videoplayback\? videoplay\? dailymotion video\.[a-z]\.fbcdn\.net

delay_pools 2

delay_class 1 1
delay _parameters 1 16000/1000000
delay_access 1 allow ekstensiblok lokal
delay_access 1 deny all

delay_class 2 1
delay_parameters 2 16000/1000000
delay_access 2 allow streamregex lokal
delay_access 2 deny all

No comments: