Contoh Donf Squid Sederhana
Contoh Donf Squid Sederhana
# ACCESS CONTROLS
# -----------------------------------------------------------------------------
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl Safe_ports port 21 70 80 210 280 443 488 563 591 631 777 901 81 3128 1025-65535
acl SSL_ports port 443 563 81
acl purge method PURGE
acl CONNECT method CONNECT
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 deny all
# NETWORK OPTIONS
# -----------------------------------------------------------------------------
http_port 3128 transparent
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136
cache_effective_user proxy
cache_effective_group proxy
# LOGFILE OPTIONS
# -----------------------------------------------------------------------------
error_directory /usr/share/lusca/errors/English
icon_directory /usr/share/lusca/icons
pid_filename /var/run/squid.pid
mime_table /etc/squid/mime.conf
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
logfile_rotate 1
# HTTP OPTIONS
# -----------------------------------------------------------------------------
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 98
range_offset_limit 128 KB
store_avg_object_size 13 KB
negative_ttl 0 second
positive_dns_ttl 12 hour
negative_dns_ttl 1 minute
vary_ignore_expire on
server_http11 on
half_closed_clients off
shutdown_lifetime 5 seconds
# ADMINISTRATIVE PARAMETERS
# -----------------------------------------------------------------------------
cache_mgr webmaster
visible_hostname yohanexz.com
# ICP OPTIONS
# -----------------------------------------------------------------------------
icp_port 0
log_icp_queries off
client_db on
buffered_logs on
log_fqdn off
icp_hit_stale on
query_icmp on
retry_on_error off
# DNS OPTIONS
# ---------------------------------------------------------------------------
dns_nameservers 8.8.8.8
dns_nameservers 8.8.4.4
ipcache_size 16384
ipcache_low 90
ipcache_high 95
fqdncache_size 16384
# MISCELLANEOUS
# ----------------------------------------------------------------------------
memory_pools off
forwarded_for on
reload_into_ims on
offline_mode off
coredump_dir /var/spool/squid
pipeline_prefetch on