Advertisement
Guest User

Proxy Squid

a guest
Oct 22nd, 2011
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. #Arquivo de Configuração do SQUID
  2. #Powered By Manu
  3. # 10/02/2010 V 1.0
  4. #Tecnologia & cia LTDA
  5.  
  6.  
  7. http_port 3128 transparent
  8. visible_hostname proxy.lnxserver.local
  9. cache_mem 400 MB
  10. maximum_object_size_in_memory 128 KB
  11. maximum_object_size 512 MB
  12. minimum_object_size 0 KB
  13. cache_swap_low 90
  14. cache_swap_high 95
  15. cache_dir ufs /var/spool/squid3 4096 32 512
  16. cache_access_log /var/log/squid3/access.log
  17. refresh_pattern ^ftp: 15 20% 2280
  18. refresh_pattern ^gopher: 15 0% 2280
  19. refresh_pattern . 15 20% 2280
  20.  
  21. #dns_nameservers 201.76.128.133
  22. #dns_nameservers 201.76.128.132
  23.  
  24. error_directory /usr/share/squid3/errors/Portuguese/
  25.  
  26. #acl all src all
  27. acl manager proto cache_object
  28. acl localhost src 127.0.0.1
  29. acl to_localhost dst 127.0.0.0
  30. acl SSL_ports port 443 563 3456
  31. acl Safe_ports port 22 21 80 3456 443 563 70 210 280 488 59 777 901 1025-65535
  32. acl purge method PURGE
  33. acl CONNECT method CONNECT
  34.  
  35. http_access allow manager localhost
  36. http_access deny manager
  37. http_access allow purge localhost
  38. http_access deny purge
  39. http_access deny !Safe_ports
  40. http_access deny CONNECT !SSL_ports
  41.  
  42. #acl ip_chefe src "/etc/squid3/ip_chefe"
  43. #acl ip_block src "/etc/squid3/ip_block"
  44.  
  45. #acl bloqueados url_regex -i "/etc/squid3/urlblock"
  46. #http_access deny bloqueados ip_block
  47.  
  48. #acl palavrasproibidas dstdom_regex "/etc/squid3/blacklist"
  49. #http_access deny palavrasproibidas ip_block
  50.  
  51. acl redelocal src 10.0.0.0
  52. http_access allow localhost
  53. http_access allow redelocal
  54. http_access deny all
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement