Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2009
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. # Port and setup
  2. http_port 80 vhost allow-direct
  3. cache_peer MYIP parent 81 0 no-query originserver login=PASS name=httpd
  4. visible_hostname MYHOST
  5. cache_mgr MYMGR
  6.  
  7. # CGI
  8. hierarchy_stoplist cgi-bin ?
  9. acl QUERY urlpath_regex cgi-bin \?
  10. no_cache deny QUERY
  11.  
  12. # Cache
  13. cache_mem 32 MB
  14. cache_swap_low 90
  15. cache_swap_high 95
  16. maximum_object_size 1024 KB
  17. cache_dir ufs /var/cache/squid 64 16 256
  18. cache_effective_user squid
  19. cache_effective_group squid
  20.  
  21. # Logging
  22. cache_access_log none
  23. cache_log /var/log/squid/cache.log
  24. cache_store_log none
  25. logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
  26. access_log /var/log/squid/access_log combined
  27. logfile_rotate 0
  28.  
  29. # ACLs
  30. acl CONNECT method CONNECT
  31. acl toMyself dst MYIP 127.0.0.0/8 172.18.0.1 172.18.1.1 172.18.2.1
  32. acl httpPorts port 80
  33. acl cPorts port 10000-10020
  34. acl toRest dst 0.0.0.0/0.0.0.0
  35. acl all src 0.0.0.0/0.0.0.0
  36.  
  37. cache_peer_access httpd deny CONNECT toMyself cPorts
  38. always_direct allow CONNECT toMyself cPorts
  39. never_direct allow toMyself httpPorts
  40.  
  41. #Permissions
  42. http_access allow toMyself httpPorts
  43. http_access allow CONNECT toMyself cPorts
  44. http_access deny toRest
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement