Advertisement
Guest User

Untitled

a guest
Dec 19th, 2012
751
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. #
  2. # Recommended minimum configuration:
  3. #
  4.  
  5. # Example rule allowing access from your local networks.
  6. # Adapt to list your (internal) IP networks from where browsing
  7. # should be allowed
  8. acl trusted src 193.227.187.156/32
  9. acl trusted2 dst all
  10. acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
  11. acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
  12. acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
  13. acl localnet src fc00::/7 # RFC 4193 local private network range
  14. acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
  15.  
  16. acl SSL_ports port 443
  17. acl Safe_ports port 80 # http
  18. acl Safe_ports port 21 # ftp
  19. acl Safe_ports port 443 # https
  20. acl Safe_ports port 70 # gopher
  21. acl Safe_ports port 210 # wais
  22. acl Safe_ports port 1025-65535 # unregistered ports
  23. acl Safe_ports port 280 # http-mgmt
  24. acl Safe_ports port 488 # gss-http
  25. acl Safe_ports port 591 # filemaker
  26. acl Safe_ports port 777 # multiling http
  27. acl CONNECT method CONNECT
  28.  
  29. #
  30. # Recommended minimum Access Permission configuration:
  31. #
  32. # Only allow cachemgr access from localhost
  33.  
  34.  
  35. acl SSL method CONNECT
  36.  
  37. always_direct allow all
  38. ssl_bump allow all
  39. sslproxy_cert_error allow all
  40.  
  41. acl netflix dstdomain .netflix.com
  42. no_cache deny netflix
  43.  
  44. http_access allow localhost manager
  45. http_access allow trusted
  46. http_access allow trusted2
  47. #http_access deny manager
  48.  
  49. # Deny requests to certain unsafe ports
  50. #http_access deny !Safe_ports
  51.  
  52.  
  53.  
  54.  
  55. # Deny requests to certain unsafe ports
  56. #http_access deny !Safe_ports
  57.  
  58. # Deny CONNECT to other than secure SSL ports
  59. #http_access deny CONNECT !SSL_ports
  60.  
  61.  
  62.  
  63. http_port 0.0.0.0:3128 transparent
  64. http_port 0.0.0.0:80 transparent
  65. #https_port 0.0.0.0:443 transparent intercept cert=/etc/squid/proxy.example.com.cert key=/etc/squid/proxy.example.com.key
  66. https_port 0.0.0.0:443 transparent ssl-bump cert=/etc/squid/proxy.example.com.cert key=/etc/squid/proxy.example.com.key
  67.  
  68.  
  69.  
  70. # We strongly recommend the following be uncommented to protect innocent
  71. # web applications running on the proxy server who think the only
  72. # one who can access services on "localhost" is a local user
  73. #http_access deny to_localhost
  74.  
  75. #
  76. # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
  77. #
  78.  
  79. # Example rule allowing access from your local networks.
  80. # Adapt localnet in the ACL section to list your (internal) IP networks
  81. # from where browsing should be allowed
  82. http_access allow localnet
  83. http_access allow localhost
  84.  
  85. # And finally deny all other access to this proxy
  86. http_access allow all
  87.  
  88. # Squid normally listens to port 3128
  89.  
  90. # Uncomment and adjust the following to add a disk cache directory.
  91. #cache_dir ufs /usr/local/squid/var/cache/squid 100 16 256
  92.  
  93. # Leave coredumps in the first cache dir
  94. coredump_dir /usr/local/squid/var/cache/squid
  95.  
  96. # Add any of your own refresh_pattern entries above these.
  97. refresh_pattern ^ftp: 1440 20% 10080
  98. refresh_pattern ^gopher: 1440 0% 1440
  99. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  100. refresh_pattern . 0 20% 4320
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement