root@router:/home/pai/Documents/root@ubuntu# cat /etc/squid/squid.conf
http_port 3128 transparent
http_port 8080 transparent
cache_mem 16 MB
#cache_dir ufs /var/cache/squid 512 16 256
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
##bahaya gak bisa browsing clients
##redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
#redirect_program /etc/squid/script/wrapzap
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
refresh_pattern ^http: 1440 20% 10080
refresh_pattern -i \.(jpe|jpeg|bmp)$ 1440 20% 10080
refresh_pattern -i \.(gif|png|swf|fla)$ 1440 20% 10080
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 lan1 src 192.168.0.0/24
acl fromserver dst 192.168.0.1
acl server src 192.168.0.1
acl admin src 192.168.0.1
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 81 # 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 CONNECT method CONNECT
acl blockXXX url_regex -i "/etc/squid/block.XXX.conf"
http_access deny blockXXX
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow lan1
http_access deny all
icp_access allow all
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
#cache_effective_user squid
#cache_effective_group squid
cache_mgr parlin@router.it.lan
visible_hostname router.it.lan
deny_info ERR_DNS_FAIL blockXXX
coredump_dir /var/spool/squid














