Konfigurasi Delay Pool pada Squid Versi 3 dengan 5 Class
Diatas ini adalah konfigurasi delay pool pada squid versi 3. Bukan cuma 3 class tapi hingga 5 class. Saya belum mencari tau tentang 2 class tambahan yang ada di squid versi 3 ini.
Dalam bentuk script, konfigurasi diatas akan berbentuk:
Code:
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl download url_regex -i ftp \.exe$ \.mp3$ \.mp4$ \.tar.gz$ \.gz$ \.tar.bz2$ \.rpm$ \.zip$ \.rar$
acl download url_regex -i \.avi$ \.mpg$ \.mpeg$ \.rm$ \.iso$ \.wav$ \.mov$ \.dat$ \.mpe$ \.mid$
acl download url_regex -i \.midi$ \.rmi$ \.wma$ \.wmv$ \.ogg$ \.ogm$ \.m1v$ \.mp2$ \.mpa$ \.wax$ \.3gp$
acl download url_regex -i \.m3u$ \.asx$ \.wpl$ \.wmx$ \.dvr-ms$ \.snd$ \.au$ \.aif$ \.asf$ \.m2v$
acl download url_regex -i \.m2p$ \.ts$ \.tp$ \.trp$ \.div$ \.divx$ \.mod$ \.vob$ \.aob$ \.dts$
acl download url_regex -i \.ac3$ \.cda$ \.vro$ \.deb$
acl warnet_ON time 10:00-23:00
delay_pools 1
delay_class 1 3
delay_parameters 1 -1/-1 24000/32000 16000/32000
delay_access 1 allow localnet
delay_access 1 allow download
delay_access 1 allow warnet_ON
delay_access 1 deny manager localhost to_localhost localnet SSL_ports Safe_ports CONNECT download
Sumber yang paling baik ada di :
Code:
http://id.wikipedia.org/wiki/Squid
http://www.visolve.com/squid/squid30/delaypools.php
Semoga bermanfaat,
source: http://devilzc0de.org/forum/thread-1318.html
source: http://cak-win.blogspot.com/2010/08/configurasi-delaypools-di-squid-3.html
Dalam bentuk script, konfigurasi diatas akan berbentuk:
Code:
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl download url_regex -i ftp \.exe$ \.mp3$ \.mp4$ \.tar.gz$ \.gz$ \.tar.bz2$ \.rpm$ \.zip$ \.rar$
acl download url_regex -i \.avi$ \.mpg$ \.mpeg$ \.rm$ \.iso$ \.wav$ \.mov$ \.dat$ \.mpe$ \.mid$
acl download url_regex -i \.midi$ \.rmi$ \.wma$ \.wmv$ \.ogg$ \.ogm$ \.m1v$ \.mp2$ \.mpa$ \.wax$ \.3gp$
acl download url_regex -i \.m3u$ \.asx$ \.wpl$ \.wmx$ \.dvr-ms$ \.snd$ \.au$ \.aif$ \.asf$ \.m2v$
acl download url_regex -i \.m2p$ \.ts$ \.tp$ \.trp$ \.div$ \.divx$ \.mod$ \.vob$ \.aob$ \.dts$
acl download url_regex -i \.ac3$ \.cda$ \.vro$ \.deb$
acl warnet_ON time 10:00-23:00
delay_pools 1
delay_class 1 3
delay_parameters 1 -1/-1 24000/32000 16000/32000
delay_access 1 allow localnet
delay_access 1 allow download
delay_access 1 allow warnet_ON
delay_access 1 deny manager localhost to_localhost localnet SSL_ports Safe_ports CONNECT download
Sumber yang paling baik ada di :
Code:
http://id.wikipedia.org/wiki/Squid
http://www.visolve.com/squid/squid30/delaypools.php
Semoga bermanfaat,
source: http://devilzc0de.org/forum/thread-1318.html
source: http://cak-win.blogspot.com/2010/08/configurasi-delaypools-di-squid-3.html
Comments
Post a Comment