iManu

squid.conf

Oct 24th, 2011
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. ##squid.conf
  2. http_port 3128 transparent
  3. visible_hostname proxy.hw.local
  4. cache_mem 1024 MB
  5. cache_swap_low 90
  6. cache_swap_high 95
  7. cache_dir ufs /var/spool/squid3 4096 32 512
  8. maximum_object_size 30000 KB
  9. maximum_object_size_in_memory 40 KB
  10. cache_access_log /var/log/squid3/access.log
  11. error_directory /usr/share/squid3/errors/Portuguese/
  12. #cache_log /var/log/squid3/cache.log
  13. #cache_store_log /var/log/squid3/store.log
  14. #pid_filename /var/log/squid3/squid3.pid # pid - mudamos para esta pasta para facilitar na identificação de problemas
  15. #mime_table /usr/share/squid3/mime.conf
  16.  
  17. memory_pools off
  18.  
  19. #diskd_program /usr/lib/squid3/diskd
  20. #unlinkd_program /usr/lib/squid3/unlinkd
  21.  
  22. refresh_pattern ^ftp: 1440 20% 10080
  23. refresh_pattern ^gopher: 1440 0% 1440
  24. refresh_pattern (cgi-bin|\?) 0 0% 0
  25. refresh_pattern . 0 20% 4320
  26. quick_abort_max 16 KB
  27. quick_abort_pct 95
  28. quick_abort_min 16 KB
  29. request_header_max_size 20 KB
  30. reply_header_max_size 20 KB
  31. request_body_max_size 0 KB
  32.  
  33. acl manager proto cache_object
  34. acl localhost src 127.0.0.1/32
  35. acl to_localhost dst 127.0.0.0/8
  36. acl rede src 192.168.5.0/24 # Representa a sua rede e respectiva máscara de sub-rede
  37.  
  38.  
  39. acl SSL_ports port 443 563
  40. acl Safe_ports port 80 # http
  41. acl Safe_ports port 21 # ftp
  42. acl Safe_ports port 443 563 1863 # https
  43. acl Safe_ports port 70 # gopher
  44. acl Safe_ports port 210 # wais
  45. acl Safe_ports port 1025-65535 # unregistered ports
  46. acl Safe_ports port 280 # http-mgmt
  47. acl Safe_ports port 488 # gss-http
  48. acl Safe_ports port 591 # filemaker
  49. acl Safe_ports port 777 # multiling http
  50. acl CONNECT method CONNECT
  51.  
  52. http_access allow manager localhost
  53. http_access deny manager
  54. http_access deny !Safe_ports
  55. http_access deny CONNECT !SSL_ports
  56.  
  57. acl bloqueados url_regex -i "/etc/squid3/urlblock"
  58. http_access deny bloqueados
  59.  
  60. acl palavrasproibidas dstdom_regex "/etc/squid3/wordblock"
  61. http_access deny palavrasproibidas
  62.  
  63. http_access allow rede
  64. http_access deny all
  65.  
  66.  
Advertisement
Add Comment
Please, Sign In to add comment