Catatan squid ubuntu 9 server

ini cuma sedikit catatan tambahan untuk setting squid (proxy )ubuntu versi 9 server karena ada sedikit perbedaan dengan versi sebelum nya.hanya untuk mengigat saja.



#Recommended minimum configuration:
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
#
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
#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/24 # RFC1918 possible internal network
acl localnet src 10.10.10.0/24 # RFC1918 possible internal network (buat ke ip client)

#
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
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 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

#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
# Only allow purge requests from localhost
http_access allow purge localhost
http_access deny purge
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all (agar bisa di akses local )
#Allow ICP queries from local networks only
icp_access allow localnet (agar bisa di akses local)
icp_access deny all
# Squid normally listens to port 3128
http_port 3128 transparent ( membuat trasparat proxy)

# cache_mem 8 MB
cache_mem 1024 MB

#Default:
# maximum_object_size_in_memory 8 KB

#Default:
cache_dir ufs /var/spool/squid 100 16 256
ganti aja seperti di bawah makin gede makin bagus
cache_dir ufs /var/spool/squid 500 16 256
( dibawah ini stelan untuk cache nya mentok nya berpa mau nya setelan default 95 % penuh)
#Default:
# cache_swap_low 90
# cache_swap_high 95

access_log /var/log/squid/access.log squid ( ini tempat penyimpanan web yg di akses)

( klo mau diganti bias kok buat tampilan pas eror proxy )
#Default:
cache_mgr webmaster

No comments: