DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Dave has posted 1 posts at DZone. View Full User Profile

Squid Conf File

07.01.2008
| 4249 views |
  • submit to reddit
        Personal squid conf file. Allowing AIM ports and all web browsing.

cache_dir ufs /Users/dave/Library/Caches/squid 100 16 256
acl dontcacheanything src 0/0
no_cache deny dontcacheanything
maximum_object_size 32768 KB
http_port 28080
visible_hostname localhost
cache_access_log /Users/dave/Library/Logs/squid-access.log
cache_log /Users/dave/Library/Logs/squid-cache.log
cache_store_log /Users/dave/Library/Logs/squid-store
pid_filename /tmp/squid.pid
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin 
no_cache deny QUERY
acl all src 0.0.0.0/0.0.0.0
acl AIM_ports port 5190 9898 6667
acl AIM_domains dstdomain .oscar.aol.com .blue.aol.com .freenode.net
acl AIM_domains dstdomain .messaging.aol.com .aim.com
acl AIM_hosts dstdomain login.oscar.aol.com login.glogin.messaging.aol.com toc.oscar.aol.com irc.freenode.net
acl AIM_nets dst 64.12.0.0/255.255.0.0
acl AIM_methods method CONNECT
http_access allow AIM_methods AIM_ports AIM_nets
http_access allow AIM_methods AIM_ports AIM_hosts
http_access allow AIM_methods AIM_ports AIM_domains
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563 1863 5190 5222 5050 6667 8443
acl Safe_ports port 80 81 21 443 563 70 210 1025-65535 280 488 591 777
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow all
http_access deny all
always_direct deny all