Guest User

squid.conf

a guest
Jun 17th, 2011
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. http_port 3128 transparent
  2. visible_hostname Slackware.mundodacomputacao.com.br
  3.  
  4. cache_mem 64 MB
  5. maximum_object_size 512 MB
  6. minimum_object_size 0 KB
  7. cache_swap_low 90
  8. cache_swap_high 95
  9. cache_dir ufs /var/spool/squid 2048 16 256
  10. cache_access_log /var/log/squid/access.log
  11. refresh_pattern ^ftp: 15 20% 2280
  12. refresh_pattern ^gopher: 15 0% 2280
  13. refresh_pattern . 15 20% 2280
  14.  
  15. acl manager proto cache_objet
  16. acl localhost src 127.0.0.1
  17. acl localnet src 192.168.1.103
  18. acl SSL_ports port 443 563
  19. acl Safe_ports port 80 #http
  20. acl Safe_ports port 21 #ftp
  21. acl Safe_ports port 443 563 #https,snews
  22. acl Safe_ports port 70 #gopher
  23. acl Safe_ports port 210 #wais
  24. acl Safe_ports port 280 #http-mgmt
  25. acl Safe_ports port 488 #gss-http
  26. acl Safe_ports port 591 #filemaker
  27. acl Safe_ports port 777 #multiling http
  28. acl Safe_ports port 901 #swat
  29. acl Safe_ports port 1025-65535 #portas altas
  30. acl purge method PURGE
  31. acl CONNECT method CONNECT
  32.  
  33. ##ACLS
  34. acl sitesbloqueados url_regex -i "/etc/squid/dominiosbloqueados"
  35. acl palavrasproibidas url_regex -i "/etc/squid/palavrasproibidas"
  36. acl sitespermitidos url_regex -i "/etc/squid/dominiospermitidos"
  37. acl redelocal src 192.168.1.0/24
  38.  
  39. http_access allow manager localhost localnet
  40. http_access deny manager
  41. http_access allow purge localhost
  42. http_access deny purge
  43. http_access deny !Safe_ports
  44. http_access deny CONNECT !SSL_ports
  45.  
  46. ##Libera ou Bloqueia
  47. http_access deny sitesbloqueados
  48. http_access deny palavrasproibidas
  49. http_access allow sitespermitidos
  50. http_access allow localhost
  51. http_access allow redelocal
  52. http_access deny all
  53. error_directory /usr/share/squid/errors/pt-br
Advertisement
Add Comment
Please, Sign In to add comment