Mirza Khadnezar wrote:

makasih lagi di baca2 ref indo nya hehehe
ada yang punya contoh squid.conf yang ada delaypools nya ?
atau manual2 lain yang berbahasa indo ?

Ini config di warnet saya, ONE-Net, Manado

# ./configure --prefix=/usr/local/squid --exec-prefix=/usr/local/squid \
#            --enable-delay-pools --enable-cache-digests --enable-poll \
#            --disable-ident-lookups --enable-truncate \
#            --enable-removal-policies
# make all
# make install
#
#BOF
# Squid port
http_port 3128
icp_port 3130

# cgi-bins tidak akan di cache.
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

# Memory yg digunakan Squid.
cache_mem 16 MB

# 1024 megabytes disk space, directory tergantung instalasi awal
cache_dir ufs /home/squid/var/cache 1024 16 256

# Squid logs, directory sesuai hasil configure.
cache_log /usr/local/squid/var/logs/cache.log
cache_access_log /usr/local/squid/var/logs/access.log
cache_store_log /usr/local/squid/var/logs/store.log
cache_swap_log /usr/local/squid/var/logs/swap.log

# Jumlah log rotate.
logfile_rotate 10

redirect_rewrites_host_header off
cache_replacement_policy GDSF
acl localnet src 192.168.0.0/255.255.255.0
acl localhost src 127.0.0.1/255.255.255.255
acl Safe_ports port 80 443 210 119 70 20 21 1025-65535
acl CONNECT method CONNECT
acl all src 0.0.0.0/0.0.0.0
http_access allow localnet
http_access allow localhost
http_access deny !Safe_ports
http_access deny CONNECT
http_access deny all
maximum_object_size 3000 KB
store_avg_object_size 50 KB

# Transparent proxy settings.
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on


# Cache peer
#cache_peer w3cache.icm.edu.pl parent 8080 3130 no-digest default

# Kecuali
#cache_peer_domain w3cache.icm.edu.pl !.pl !7thguard.net !192.168.1.1

# Cache Manager.
# Copy cachemgr.cgi ke cgi-bin di web server.
# http://192.168.0.1/cgi-bin/cachemgr.cgi
cache_mgr [EMAIL PROTECTED]
cachemgr_passwd manado all

# Squid user dan group.
cache_effective_user nobody
cache_effective_group nogroup

log_icp_queries off
buffered_logs on


#####DELAY POOLS

# local network.
acl one_net url_regex -i 192.168

# Tipe files yg akan di limit, masukkan dalam 1 baris
acl file_ext url_regex -i ftp .exe .mp3 .vqf .tar.gz .gz .rpm .zip .rar .avi .mpeg .mpe .mpg .qt $ # .html, .gif, .jpg dan lain-lain tidak di blok, karena tidak makan bandwidth

# Limit bandwidth siang, and full bandwidth malam
acl day time 09:00-23:59

# Jumlah delay_pools.
delay_pools 2

# Delay pool pertama
# Local traffic tidak akan di delay pool
# Ada tiga pool classes; yg akan dipakai hanya yg kedua.
# Delay class pertama (1) dari tipe dua (2).
delay_class 1 2

# -1/-1 berarti tidak ada limit.
delay_parameters 1 -1/-1 -1/-1

# localnet: 192.168 tidak ada limit
delay_access 1 allow one_net

# Delay pool kedua.
# Delay download file-file yg ada di file_ext.
# Delay class kedua (2) dari tipe dua (2).
delay_class 2 2

# Angka-angka dalam bytes;
# Squid tidak mempunyai start/stop bits
# 5000/150000 adalah nilai untuk seluruh network
# 5000/120000 adalah nilai untuk single IP
# sesudah file yg download mencapai 150000 bytes,
# (atau 2 atau 3 kali itu)
# selanjutnya akan di download pada 5000 bytes/s
delay_parameters 2 5000/150000 5000/120000

# day = 09:00-23:59 before.
delay_access 2 allow day
delay_access 2 deny !day
delay_access 2 allow file_ext

#EOF


--
rumy

--
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke