Advertisement
alirezaimi

squid

May 1st, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. acl all src all
  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 0.0.0.0/32
  5. acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
  6. acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
  7. acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
  8. acl SSL_ports port 443 # https
  9. acl SSL_ports port 563 # snews
  10. acl SSL_ports port 873 # rsync
  11. acl Safe_ports port 80 # http
  12. acl Safe_ports port 21 # ftp
  13. acl Safe_ports port 443 # https
  14. acl Safe_ports port 70 # gopher
  15. acl Safe_ports port 210 # wais
  16. acl Safe_ports port 1025-65535 # unregistered ports
  17. acl Safe_ports port 280 # http-mgmt
  18. acl Safe_ports port 488 # gss-http
  19. acl Safe_ports port 591 # filemaker
  20. acl Safe_ports port 777 # multiling http
  21. acl Safe_ports port 631 # cups
  22. acl Safe_ports port 873 # rsync
  23. acl Safe_ports port 901 # SWAT
  24. acl purge method PURGE
  25. acl CONNECT method CONNECT
  26.  
  27. http_access allow manager localhost
  28. http_access deny manager
  29. http_access allow purge localhost
  30. http_access deny purge
  31. http_access deny !Safe_ports
  32. http_access deny CONNECT !SSL_ports
  33. http_access allow localhost
  34.  
  35. http_access deny all
  36. #icp_access allow all
  37. #miss_access allow all
  38.  
  39. acl lan src 192.168.69.81 192.168.0.0/24
  40. http_access allow lan
  41.  
  42. icp_access allow localnet
  43.  
  44. #http_port 3128 transparent
  45. http_port 192.168.0.111:8008
  46.  
  47. hierarchy_stoplist cgi-bin ?
  48.  
  49. cache_mem 512 MB
  50. cache_dir ufs /var/spool/squid 2000 16 256
  51.  
  52. access_log /var/log/squid/access.log squid
  53. refresh_pattern ^ftp: 1440 20% 10080
  54. refresh_pattern ^gopher: 1440 0% 1440
  55. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  56. refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
  57. refresh_pattern . 0 20% 4320
  58. acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
  59. upgrade_http0.9 deny shoutcast
  60. acl apache rep_header Server ^Apache
  61. broken_vary_encoding allow apache
  62. extension_methods REPORT MERGE MKACTIVITY CHECKOUT
  63.  
  64. cache_mgr webmaster
  65.  
  66. acl FTP proto FTP
  67. always_direct allow FTP
  68.  
  69. dns_nameservers 4.2.2.4
  70. hosts_file /etc/hosts
  71.  
  72. coredump_dir /var/spool/squid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement