Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 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 ::1
  6. acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
  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 localnet src 10.0.0.0/8 # RFC1918 possible internal network
  12. acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
  13. acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
  14. acl localnet src fc00::/7 # RFC 4193 local private network range
  15. acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
  16.  
  17. acl SSL_ports port 443
  18. acl Safe_ports port 80 # http
  19. acl Safe_ports port 21 # ftp
  20. acl Safe_ports port 443 # https
  21. acl Safe_ports port 70 # gopher
  22. acl Safe_ports port 210 # wais
  23. acl Safe_ports port 1025-65535 # unregistered ports
  24. acl Safe_ports port 280 # http-mgmt
  25. acl Safe_ports port 488 # gss-http
  26. acl Safe_ports port 591 # filemaker
  27. acl Safe_ports port 777 # multiling http
  28. acl CONNECT method CONNECT
  29.  
  30. acl suporte src "/home/scripts/squid/suporte"
  31. acl redeloc src "/home/scripts/squid/redelocal"
  32. acl liberadas src "/home/scripts/squid/liberadas"
  33. acl proibidas src "/home/scripts/squid/proibidas"
  34. acl liberas url_regex "/home/scripts/squid/libera_site"
  35. acl proibep url_regex "/home/scripts/squid/proibe_palavra"
  36. acl liberap url_regex "/home/scripts/squid/libera_palavra"
  37. #######acl proibes dstdomain "/home/scripts/squid/proibe_site"
  38. acl msn url_regex "/home/scripts/squid/libera_msn"
  39. acl proibe_msn src "/home/scripts/squid/ips_proibe_msn"
  40. # Windows Live Messenger
  41. acl wlm_mimetype req_mime_type -i ^ aplicativo / x-msn-messenger $
  42. acl wlm_urlregex url_regex -i gateway.dll
  43.  
  44. #
  45. # Recommended minimum Access Permission configuration:
  46. #
  47. # Only allow cachemgr access from localhost
  48. http_access allow manager localhost
  49. http_access deny manager
  50.  
  51. # Deny requests to certain unsafe ports
  52. http_access deny !Safe_ports
  53.  
  54. # Deny CONNECT to other than secure SSL ports
  55. http_access deny CONNECT !SSL_ports
  56.  
  57. # We strongly recommend the following be uncommented to protect innocent
  58. # web applications running on the proxy server who think the only
  59. # one who can access services on "localhost" is a local user
  60. #http_access deny to_localhost
  61.  
  62. #
  63. # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
  64. #
  65.  
  66. # Example rule allowing access from your local networks.
  67. # Adapt localnet in the ACL section to list your (internal) IP networks
  68. # from where browsing should be allowed
  69. http_access allow localnet
  70. http_access allow localhost
  71.  
  72. http_access deny msn proibe_msn
  73. http_access deny msn
  74. #####http_access allow sites_errados
  75. http_access allow liberadas
  76. http_access allow liberas
  77. http_access allow liberap
  78. http_access deny proibep
  79. #####http_access deny proibes
  80. http_access deny proibidas
  81. http_access allow redeloc
  82. http_access allow suporte
  83. http_access deny wlm_mimetype
  84. http_access deny wlm_urlregex
  85.  
  86.  
  87. # And finally deny all other access to this proxy
  88. http_access deny all
  89.  
  90. # Squid normally listens to port 3128
  91. http_port 3128
  92.  
  93. # We recommend you to use at least the following line.
  94. hierarchy_stoplist cgi-bin ?
  95.  
  96. # Uncomment and adjust the following to add a disk cache directory.
  97. #cache_dir ufs /var/spool/squid 100 16 256
  98.  
  99. # Leave coredumps in the first cache dir
  100. coredump_dir /var/spool/squid
  101.  
  102. # Add any of your own refresh_pattern entries above these.
  103. refresh_pattern ^ftp: 1440 20% 10080
  104. refresh_pattern ^gopher: 1440 0% 1440
  105. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  106. refresh_pattern . 0 20% 4320
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement