Jalan dapat ini, dari pada hilang mending simpan disini, dan biar sekalian klo ada yang butuh, bisa langsung sedot......
# ACCESS CONTROLS
# -----------------------------------------------------------------------------
acl all src all
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 192.168.3.0/24 # 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 purge method PURGE
acl connect method CONNECT
acl dynamic urlpath_regex cgi-bin \?
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow localnet
http_access deny all
icp_access allow localnet
icp_access deny all
# NETWORK OPTIONS
# -----------------------------------------------------------------------------
http_port 3128 transparent
zph_mode tos
zph_local 0x30
# MEMORY CACHE OPTIONS
# -----------------------------------------------------------------------------
cache_mem 8 MB
maximum_object_size_in_memory 8 KB
memory_replacement_policy heap GDSF
# DISK CACHE OPTIONS
# -----------------------------------------------------------------------------
cache_replacement_policy heap LFUDA
cache_dir aufs /cache1 8500 20 256
cache_dir aufs /cache2 8500 20 256
cache_dir aufs /cache3 8500 20 256
minimum_object_size 0 bytes
maximum_object_size 128 MB
cache_swap_low 98
cache_swap_high 99
# LOGFILE OPTIONS
# -----------------------------------------------------------------------------
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
logfile_rotate 1
pid_filename /var/run/squid.pid
log_fqdn off
strip_query_terms off
# OPTIONS FOR URL REWRITING
# -----------------------------------------------------------------------------
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 100
negative_ttl 30 seconds
positive_dns_ttl 6 hours
negative_dns_ttl 60 seconds
store_avg_object_size 13 KB
# HTTP OPTIONS
# -----------------------------------------------------------------------------
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
vary_ignore_expire on
#via off
header_access From deny all
header_access Server deny all
header_access Link deny all
header_access X-Forwarded-For deny all
server_http11 on
# TIMEOUTS
# -----------------------------------------------------------------------------
read_timeout 30 minutes
request_timeout 2 minutes
client_lifetime 6 hours
pconn_timeout 15 seconds
shutdown_lifetime 10 seconds
# ADMINISTRATIVE PARAMETERS
# -----------------------------------------------------------------------------
cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy
# ICP OPTIONS
# -----------------------------------------------------------------------------
icp_port 0
log_icp_queries off
# ADVANCED NETWORKING OPTIONS
# -----------------------------------------------------------------------------
max_filedescriptors 8192
# DNS OPTIONS
# -----------------------------------------------------------------------------
ipcache_size 4096
ipcache_low 98
ipcache_high 99
fqdncache_size 4096
# MISCELLANEOUS
# -----------------------------------------------------------------------------
memory_pools off
cachemgr_passwd none all
reload_into_ims on
retry_on_error on
offline_mode off
uri_whitespace strip
coredump_dir /var/spool/squid
pipeline_prefetch on
high_page_fault_warning 50
n_aiops_threads 24
load_check_stopen on
load_check_stcreate on
download_fastest_client_speed on
sumber dari sini
Friday, March 9, 2012
Squid Lusca
Tentang Author
Belajar nanya, belajar praktik, belajar nerapkan dan belajar menyebarkan
Labels:
ClearOS
Subscribe to:
Post Comments (Atom)
1 comments:
Bang mohon bantuan ni..kalau ingin menambahkan setingan reset cache otomatis lusca di clear os gimana ya, atau menambahkan tombol reset di web confignya..clear OS
Post a Comment