Skip to content

Instantly share code, notes, and snippets.

@xkou
Created March 4, 2014 15:30
Show Gist options
  • Save xkou/9348589 to your computer and use it in GitHub Desktop.
Save xkou/9348589 to your computer and use it in GitHub Desktop.
squid.conf
acl all src -n all
http_port 8111 transparent
cache_dir ufs /var/cache/squid 512 16 256
access_log /tmp/1.log squid
pid_filename /tmp/8111.pid
acl breakwall dstdomain .fancyguo.com
acl breakwall dstdomain .external.out
never_direct allow all
cache_peer localhost parent 19051 0 name=r1 round-robin
cache_peer_access r1 allow breakwall
cache_peer_access r1 deny all
cache_peer localhost parent 19052 0 name=r2 round-robin
cache_peer_access r2 deny all
cache_peer localhost parent 3128 0 name=r100 round-robin
cache_peer_access r100 deny breakwall
cache_peer_access r100 allow all
cache_dns_program /usr/local/squid2.7/libexec/fakedns
http_access allow all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment