Advertisement
Guest User

Untitled

a guest
Mar 21st, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1.  
  2.  
  3.  
  4. ###################################################################################
  5. http_port 0.0.0.0:3130
  6.  
  7.  
  8. visible_hostname (external)zentyal.bahadircafe.com
  9.  
  10. coredump_dir /var/spool/squid3
  11. cache_effective_user proxy
  12. cache_effective_group proxy
  13. #cache_mem 128 MB
  14. cache_mem 1024 MB
  15. cache_dir ufs /var/spool/squid3 1024 16 256
  16. #maximum_object_size 300 MB
  17. maximum_object_size 50 MB
  18. access_log /var/log/squid3/external-access.log squid
  19. cache_log /var/log/squid3/external-cache.log
  20. cache_store_log /var/log/squid3/external-store.log
  21. pid_filename /var/run/squid3-external.pid
  22.  
  23. dns_nameservers 127.0.0.1
  24. append_domain .bahadircafe.com
  25.  
  26. # refresh patterns
  27.  
  28. # windows updates
  29. refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
  30. refresh_pattern http://.*\.update\.microsoft\.com/ 0 80% 20160 reload-into-ims
  31. refresh_pattern http://download\.microsoft\.com/ 0 80% 20160 reload-into-ims
  32. refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160 reload-into-ims
  33. refresh_pattern http://.*\.download\.windowsupdate\.com/ 0 80% 20160 reload-into-ims
  34. refresh_pattern http://office\.microsoft\.com/ 0 80% 20160 reload-into-ims
  35. refresh_pattern http://w?xpsp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
  36. refresh_pattern http://w2ksp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
  37.  
  38. # linux updates
  39. refresh_pattern http://.*\.archive\.ubuntu\.com/ 0 80% 20160 reload-into-ims
  40. refresh_pattern http://(ftp|http)[0-9]*\.[a-z]+\.debian\.org/ 0 80% 20160 reload-into-ims
  41.  
  42. refresh_pattern ^ftp: 1440 20% 10080
  43. refresh_pattern ^gopher: 1440 0% 1440
  44. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  45. refresh_pattern . 0 20% 4320
  46.  
  47. # end refresh patterns
  48.  
  49.  
  50. url_rewrite_program /usr/bin/adzapper.wrapper
  51.  
  52.  
  53.  
  54. acl_uses_indirect_client on
  55.  
  56. # no cache domains acl
  57.  
  58.  
  59. acl from_localhost src 127.0.0.0/8 ::1
  60. acl to_localhost dst 127.0.0.0/8 ::1
  61. acl manager url_regex -i ^cache_object:// +i ^https?://[^/]+/squid-internal-mgr/
  62. acl SSL_ports port 443 # https, snews
  63. acl SSL_ports port 873 # rsync
  64. acl SSL_ports port 21 #ftp
  65. acl SSL_ports port 631 #cups over https
  66. acl Safe_ports port 80 # http
  67. acl Safe_ports port 21 # ftp
  68. acl Safe_ports port 443 563 # https, snews
  69. acl Safe_ports port 70 # gopher
  70. acl Safe_ports port 210 # wais
  71. acl Safe_ports port 1025-65535 # unregistered ports
  72. acl Safe_ports port 280 # http-mgmt
  73. acl Safe_ports port 488 # gss-http
  74. acl Safe_ports port 591 # filemaker
  75. acl Safe_ports port 631 # cups
  76. acl Safe_ports port 777 # multiling http
  77. acl Safe_ports port 873 # rsync
  78. acl Safe_ports port 901 # SWAT
  79.  
  80. acl CONNECT method CONNECT
  81. acl purge method PURGE
  82.  
  83.  
  84. follow_x_forwarded_for allow from_localhost
  85. log_uses_indirect_client on
  86.  
  87. http_access allow manager to_localhost
  88.  
  89. http_access deny manager
  90. http_access deny purge
  91. http_access deny !Safe_ports
  92.  
  93. http_access deny CONNECT !SSL_ports
  94. http_access allow from_localhost
  95.  
  96. # we use firewall to deny clients from the outside
  97. http_access allow all
  98.  
  99.  
  100.  
  101.  
  102.  
  103. always_direct allow to_localhost
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement