Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 22nd, 2010 | Syntax: None | Size: 1.36 KB | Hits: 148 | Expires: Never
Copy text to clipboard
  1. http_port 8080
  2.  
  3. # user dan group yang menjalankan squid
  4. cache_effective_user squid
  5. cache_effective_group squid
  6. cache_mgr atm0@arc.itb.ac.id
  7.  
  8. # File Log dan PID squid
  9. cache_access_log none
  10. cache_log /tmp/squidlog
  11. cache_store_log none
  12. log_icp_queries off
  13.  
  14. # Authentication program
  15. auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
  16. auth_param basic realm proxy of the valkyries
  17. auth_param basic children 5
  18.  
  19. #1. Cache Peer
  20. cache_peer 127.0.0.1 parent 8000 0 weight=100 no-query no-digest round-robin
  21.  
  22. #2. Object yang tidak dimasukkan dalam cache
  23. acl QUERY urlpath_regex .
  24. no_cache deny QUERY
  25.  
  26. #3. Access list
  27. acl all src 0.0.0.0/0.0.0.0
  28. acl manager proto cache_object
  29. acl localhost src 127.0.0.0/8
  30. acl to_localhost dst 127.0.0.0/8
  31. acl Safe_ports port 1-65535      # all ports
  32.  
  33. acl CONNECT method CONNECT
  34. acl erase       method PURGE
  35. acl http_get    method GET
  36. acl password    proxy_auth REQUIRED
  37.  
  38. # Minimal actions
  39. http_access allow       localhost
  40. http_access allow       manager localhost
  41. http_access deny        manager
  42. http_access deny        !safe_ports
  43. http_access deny        CONNECT !safe_ports
  44.  
  45. # Authenticated clients
  46. http_access allow       password
  47.  
  48. # Default policy
  49. http_access deny        all
  50.  
  51. # ICP policy
  52. icp_access deny         all
  53.  
  54. never_direct    allow   all !CONNECT
  55. never_direct    deny    CONNECT