de linuxmanr4, 3 años han pasado desde su publicación, escrito en Plain Text.
Este código es una respuesta a Squid_proxy de Luis Salinas
- ver diferencias
Enlace corto
http://gw.gd/b00n
Insertar vínculo
  1. # Esta es la configuracion del squid, borre los comentarios (como quiera hice un respaldo) :D
  2.  
  3.  
  4. acl all src all
  5. acl manager proto cache_object
  6. acl localhost src 127.0.0.1/32
  7. acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
  8.  
  9. acl localnet src 10.0.0.0/24    # RFC1918 possible internal network
  10. acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
  11. acl localnet src 192.168.0.0/24 # RFC1918 possible internal network
  12.  
  13. acl SSL_ports port 443          # https
  14. acl SSL_ports port 563          # snews
  15. acl SSL_ports port 873          # rsync
  16. acl Safe_ports port 80          # http
  17. acl Safe_ports port 21          # ftp
  18. acl Safe_ports port 443         # https
  19. acl Safe_ports port 70          # gopher
  20. acl Safe_ports port 210         # wais
  21. acl Safe_ports port 1025-65535  # unregistered ports
  22. acl Safe_ports port 280         # http-mgmt
  23. acl Safe_ports port 488         # gss-http
  24. acl Safe_ports port 591         # filemaker
  25. acl Safe_ports port 777         # multiling http
  26. acl Safe_ports port 631         # cups
  27. acl Safe_ports port 873         # rsync
  28. acl Safe_ports port 901         # SWAT
  29. acl purge method PURGE
  30. acl CONNECT method CONNECT
  31. acl bsn src 10.18.129.0/24
  32. acl xc src 192.168.0.0/24
  33.  
  34. http_access allow bsn
  35. http_access allow xc
  36. http_access allow manager localhost
  37. http_access deny manager
  38.  
  39. http_access allow purge localhost
  40. http_access deny purge
  41.  
  42. http_access deny !Safe_ports
  43.  
  44. http_access deny CONNECT !SSL_ports
  45.  
  46. http_access allow localhost
  47.  
  48. icp_access allow localnet
  49. icp_access deny all
  50.  
  51. http_port 3128
  52.  
  53. http_port 3128
  54.  
  55. hierarchy_stoplist cgi-bin ?
  56.  
  57. cache_mem 300 MB
  58.  
  59. maximum_object_size_in_memory 1024 KB
  60.  
  61. cache_dir ufs /var/spool/squid 1000 16 256
  62.  
  63. access_log /var/log/squid/access.log squid
  64.  
  65. refresh_pattern ^ftp:           1440    20%     10080
  66. refresh_pattern ^gopher:        1440    0%      1440
  67. refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
  68. refresh_pattern (Release|Package(.gz)*)$        0       20%     2880
  69. refresh_pattern .               0       20%     4320
  70.  
  71. acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
  72. upgrade_http0.9 deny shoutcast
  73.  
  74. acl apache rep_header Server ^Apache
  75. broken_vary_encoding allow apache
  76.  
  77. extension_methods REPORT MERGE MKACTIVITY CHECKOUT
  78.  
  79.  half_closed_clients off
  80.  
  81. dns_nameservers 8.8.8.8 8.8.4.4
  82.  
  83. hosts_file /etc/hosts
  84.  
  85.  memory_pools OFF
  86.  
  87. coredump_dir /var/spool/squid