Powered by Blogger.

Sunday, January 8, 2012

Konfigurasi Proxy Server Debian 5

1) apt-get install squid
2) rm /etc/squid/squid.conf
3) pico /etc/squid/squid.conf
         acl all src all
         acl localnet src 172.16.1.0/26
         acl situs url_regex -i "/etc/squid/blokir.txt"
         http_access deny situs
         http_access allow localnet
         http_access allow all
         http_port 3128 transparent
         cache_mem 8 mb
         memory_replacement_policy heap GDSF
         cache_replacement_policy heap LFUDA
         store_dir_select_algorithm round-robin
         cache_dir aufs /cache 10000 24 256
         cache_store_log none
         cache_access_log /var/log/squid/access.log
         cache_effective_user proxy
         cache_effective_group proxy
         visible_hostname proxy.situstkj.co.cc