Advertisement
Guest User

Untitled

a guest
Jun 30th, 2011
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. #
  2. # Recommended minimum configuration:
  3. #
  4. acl manager proto cache_object
  5. acl localhost src 127.0.0.1/32 127.0.0.2/32 10.0.0.99
  6. acl to_localhost dst 127.0.0.0/8
  7.  
  8. # Example rule allowing access from your local networks.
  9. # Adapt to list your (internal) IP networks from where browsing
  10. # should be allowed
  11. acl all src 0.0.0.0/0 # Todo
  12. acl localnet src 10.0.0.58 # RFC1918 possible internal network
  13. #acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
  14. #acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
  15. #acl localnet src fc00::/7 # RFC 4193 local private network range
  16. #acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
  17.  
  18. acl SSL_ports port 443
  19. acl Safe_ports port 80 # http
  20. acl Safe_ports port 21 # ftp
  21. acl Safe_ports port 443 # https
  22. acl Safe_ports port 70 # gopher
  23. acl Safe_ports port 210 # wais
  24. acl Safe_ports port 1025-65535 # unregistered ports
  25. acl Safe_ports port 280 # http-mgmt
  26. acl Safe_ports port 488 # gss-http
  27. acl Safe_ports port 591 # filemaker
  28. acl Safe_ports port 777 # multiling http
  29. acl CONNECT method CONNECT
  30.  
  31. #
  32. # Recommended minimum Access Permission configuration:
  33. #
  34. # Only allow cachemgr access from localhost
  35. http_access allow manager localhost
  36. http_access deny manager
  37.  
  38. # Deny requests to certain unsafe ports
  39. http_access deny !Safe_ports
  40.  
  41. # Deny CONNECT to other than secure SSL ports
  42. http_access deny CONNECT !SSL_ports
  43.  
  44. # We strongly recommend the following be uncommented to protect innocent
  45. # web applications running on the proxy server who think the only
  46. # one who can access services on "localhost" is a local user
  47. #http_access deny to_localhost
  48.  
  49. #
  50. # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
  51. #
  52.  
  53. # Example rule allowing access from your local networks.
  54. # Adapt localnet in the ACL section to list your (internal) IP networks
  55. # from where browsing should be allowed
  56. http_access allow localnet
  57. http_reply_access allow all
  58. http_access allow all
  59.  
  60. # Allow localhost always proxy functionality
  61. http_access allow localhost
  62.  
  63. # And finally deny all other access to this proxy
  64. #http_access deny all
  65.  
  66. # Squid normally listens to port 3128
  67. #http_port 3128 intercept
  68. http_port 3128 tproxy
  69.  
  70. # We recommend you to use at least the following line.
  71. hierarchy_stoplist cgi-bin ?
  72.  
  73. # Uncomment and adjust the following to add a disk cache directory.
  74. #cache_dir aufs /squid-cache 30000 16 256
  75. cache_dir coss /squid-cache/coss-cache 34500 max-size=524288 max-stripe-waste=32768 block-size=4096 membufs=20
  76.  
  77. # Leave coredumps in the first cache dir
  78. coredump_dir /squid-cache
  79.  
  80. # Add any of your own refresh_pattern entries above these.
  81. refresh_pattern ^ftp: 1440 20% 10080
  82. refresh_pattern ^gopher: 1440 0% 1440
  83. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  84. refresh_pattern . 0 20% 4320
  85.  
  86. #Mis cambios
  87. max_filedescriptors 16394
  88. cache_mem 512 MB
  89. cache_effective_user squid
  90. cache_effective_group nobody
  91. visible_hostname cyber-master
  92. cache_log /var/log/squid/cache.log
  93. access_log /var/log/squid/access.log
  94. cache_swap_log /usr/local/squid/var/logs/cache_swap.log
  95. maximum_object_size 15360 KB
  96. logfile_rotate 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement