Advertisement
Guest User

squid

a guest
Feb 13th, 2015
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. # ACLS
  2. acl manager proto cache_object
  3. acl localhost src 127.0.0.1/32
  4. acl to_localhost dst 127.0.0.0/8
  5. acl vpn src 172.27.232.0/21
  6. #acl all src 0.0.0.0/0
  7. acl bad_url url_regex "/etc/squid3/bad-sites.acl"
  8.  
  9. # SAFE PORTS
  10. acl SSL_ports port 443 494 2598
  11. acl Safe_ports port 443
  12. acl Safe_ports port 80 # http
  13. acl Safe_ports port 21 # ftp
  14. acl Safe_ports port 443 # https
  15. acl Safe_ports port 70 # gopher
  16. acl Safe_ports port 210 # wais
  17. acl Safe_ports port 1025-65535 # unregistered ports
  18. acl Safe_ports port 280 # http-mgmt
  19. acl Safe_ports port 488 # gss-http
  20. acl Safe_ports port 591 # filemaker
  21. acl Safe_ports port 777 # multiling http
  22. acl CONNECT method CONNECT
  23. never_direct allow all
  24.  
  25. # HTTP ACCESS
  26. http_access allow manager localhost
  27. http_access deny manager
  28. http_access deny !Safe_ports
  29. http_access deny CONNECT !SSL_ports
  30. http_access deny bad_url
  31. http_access allow localhost
  32. http_access allow vpn
  33. http_access deny all
  34. icp_access deny all
  35. htcp_access deny all
  36.  
  37. # PUERTOS
  38. http_port 3128
  39. icp_port 3130
  40.  
  41. # CACHE CFG
  42. cache_replacement_policy lru
  43. cache_mem 256 MB
  44. maximum_object_size_in_memory 2560 KB
  45. cache_dir ufs /var/spool/squid3 5120 16 256
  46. maximum_object_size 1048576 KB
  47.  
  48. refresh_pattern ^ftp: 1440 20% 10080
  49. refresh_pattern ^gopher: 1440 0% 1440
  50. refresh_pattern (cgi-bin|\?) 0 0% 0
  51. refresh_pattern . 0 20% 4320
  52.  
  53. #TIMEOUTS
  54. connect_timeout 8 seconds
  55. peer_connect_timeout 3 seconds
  56.  
  57. #LOGS
  58. coredump_dir /var/spool/squid3
  59. access_log /var/log/squid3/access.log squid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement