SHARE
TWEET

squid.conf

a guest May 7th, 2014 179 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. http_port 3128
  4.  
  5. # Nome do servidor
  6. visible_hostname Squid
  7.  
  8.  
  9. # Cache
  10. cache_mem 700 MB
  11. maximum_object_size_in_memory 32 KB
  12. maximum_object_size 1024 MB
  13. minimum_object_size 0 KB
  14. cache_swap_low 90
  15. cache_swap_high 95
  16. cache_dir ufs /etc/squid3/cache 30000 16 256
  17. cache_log /etc/squid3/cache.log
  18.  
  19. # Logs de acesso
  20. access_log /etc/squid3/access.log squid
  21.  
  22. # Regras acl padrão
  23. #acl all src 0.0.0.0/all
  24. acl manager1 proto cache_object
  25. #acl localhost src 127.0.0.1/32
  26. acl SSL_ports port 443 563 873
  27. acl Safe_ports port 80 # http
  28. acl Safe_ports port 21 # ftp
  29. acl Safe_ports port 443 563 873 # https, snews
  30. acl Safe_ports port 70 # gopher
  31. acl Safe_ports port 210 # wais
  32. acl Safe_ports port 280 # http-mgmt
  33. acl Safe_ports port 488 # gss-http
  34. acl Safe_ports port 591 # filemaker
  35. acl Safe_ports port 777 # multiling http
  36. acl Safe_ports port 901 # swat
  37. acl Safe_ports port 10000 # webmin
  38. acl Safe_ports port 1025-65535 # portas altas
  39. acl purge method PURGE
  40. acl CONNECT method CONNECT
  41.  
  42.  
  43. auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
  44. auth_param ntlm children 30
  45. auth_param ntlm keep_alive on
  46. #auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
  47. #auth_param basic children 5
  48. #auth_param basic realm Squid proxy-caching web server
  49. #auth_param basic credentialsttl 2 hours
  50. acl AuthorizedUsers proxy_auth REQUIRED
  51.  
  52. http_access allow all AuthorizedUsers
  53.  
  54. #acl liberados url_regex -i "/etc/squid3/acl/liberados"
  55. #http_access allow liberados
  56.  
  57. # Permissões e bloqueios padrão
  58. http_access allow manager1
  59. #localhost
  60. http_access deny manager1
  61. http_access allow purge
  62.  
  63. http_access deny purge
  64. http_access deny !Safe_ports
  65. http_access deny CONNECT !SSL_ports
  66.  
  67.  
  68. cache_effective_user proxy
  69. cache_effective_group proxy
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top