Squid.conf minimalis buat ubuntu

#================================================================$
# Proxy Server Versi 2.6.Stable18
# Faisal Reza @ Mutiara Access
#================================================================$
http_port 3124 transparent
hierarchy_stoplist cgi-bin ? .js .jsp
acl QUERY urlpath_regex cgi-bin \? .js .jsp
no_cache deny QUERY
cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99
maximum_object_size 30 MB
minimum_object_size 0 KB
#maximum_object_size_in_memory KB
ipcache_size 8192
ipcache_low 98
ipcache_high 99
fqdncache_size 8192
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir aufs /webproxy 2800 32 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
pid_filename /var/run/squid.pid
dns_nameservers 192.168.20.222 203.190.55.210 203.142.83.200
cache_swap_log /var/log/squid/swap.state
emulate_httpd_log on
hosts_file /etc/hosts
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
negative_ttl 1 minutes
half_closed_clients off
acl snmpcommunity snmp_community public
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 to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
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
#==========================================================$
# Blok Situs Porno
#acl situs-porno url_regex -i “/etc/squid/situsporno.list”
#http_access deny situs-porno
#==========================================================$
acl the-net src 192.168.100.0/27
acl mutiara-access src 192.168.121.64/27
acl noc src 192.168.11.8/29
acl hbf src 192.168.20.0/24
http_access allow the-net
http_access allow mutiara-access
http_access allow noc
http_access allow hbf
http_access deny all
http_reply_access allow all
icp_access allow all
cache_mgr faisareza@gmail.com
visible_hostname Mutiara-Access
cache_effective_user proxy
cache_effective_group proxy
#acl telkom dstdomain telkom.net
#acl adsl-modem dst 192.168.10.1/32
#acl web-aisnet dstdomain aisnet.indoserver.org
#always_direct allow adsl-modem
#always_direct allow web-aisnet
always_direct deny all
coredump_dir /var/spool/squid
shutdown_lifetime 10 seconds
logfile_rotate 5

Dari: http://faisalreza.multiply.com/journal/item/27

Silahkan Komentar ... !

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s