Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. # Radiomidun ehf.
  2.  
  3. http_port 3128
  4.  
  5. hierarchy_stoplist cgi-bin ?
  6.  
  7. acl QUERY urlpath_regex cgi-bin \?
  8. no_cache deny QUERY
  9.  
  10.  
  11. cache_mem 8 MB
  12. #cache_mem 32 MB
  13. cache_swap_low 90
  14. cache_swap_high 95
  15.  
  16. maximum_object_size 8 KB
  17. #maximum_object_size 128 KB
  18.  
  19. maximum_object_size_in_memory 8 KB
  20.  
  21. #test vegna dagsson, muses.is og kaupstadur.is
  22. reply_header_max_size 200 KB
  23.  
  24. #fqdncache_size 2048
  25. cache_replacement_policy lru
  26. memory_replacement_policy lru
  27.  
  28.  
  29. #LOGS
  30. cache_dir ufs /var/spool/squid 100 16 256
  31. cache_access_log /var/log/squid/access.log
  32. cache_log /var/log/squid/cache.log
  33. cache_store_log none
  34.  
  35. # END OF LOGS
  36.  
  37. hosts_file /etc/hosts
  38.  
  39. # redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
  40.  
  41. # Authentication
  42. auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
  43. auth_param basic children 5
  44. auth_param basic realm Squid proxy-caching web server
  45. auth_param basic credentialsttl 2 hours
  46. auth_param basic casesensitive off
  47.  
  48.  
  49. refresh_pattern ^ftp: 1440 20% 10080
  50. refresh_pattern ^gopher: 1440 0% 1440
  51. refresh_pattern . 0 20% 4320
  52.  
  53. #######
  54. # ACL #
  55. #######
  56.  
  57. #Recommended minimum configuration:
  58. acl all src 0.0.0.0/0.0.0.0
  59. acl manager proto cache_object
  60. acl localhost src 127.0.0.1/255.255.255.255
  61. acl to_localhost dst 127.0.0.0/8
  62. acl SSL_ports port 443 563 # https, snews
  63. acl SSL_ports port 873 # rsync
  64. acl Safe_ports port 80 # http
  65. acl Safe_ports port 21 # ftp
  66. acl Safe_ports port 443 563 # https, snews
  67. acl Safe_ports port 70 # gopher
  68. acl Safe_ports port 210 # wais
  69. acl Safe_ports port 1025-65535 # unregistered ports
  70. acl Safe_ports port 280 # http-mgmt
  71. acl Safe_ports port 488 # gss-http
  72. acl Safe_ports port 591 # filemaker
  73. acl Safe_ports port 777 # multiling http
  74. acl Safe_ports port 631 # cups
  75. acl Safe_ports port 873 # rsync
  76. acl Safe_ports port 901 # SWAT
  77. acl purge method PURGE
  78. acl CONNECT method CONNECT
  79.  
  80. ##############
  81.  
  82. # BRIM
  83. acl logmein dstdomain .logmein.com
  84. acl logmein dstdomain .logme.in
  85. acl sendlingur dstdomain sendlingur.skrin.is
  86. acl brim dstdomain 212.30.252.101
  87. acl brim dstdomain .apf.gl
  88. acl brim dstdomain kerfisleiga.hysing.is
  89. acl brim dstdomain mail.hysing.is
  90. acl brim dstdomain .maxsea.com
  91. acl brim dstdomain .maxsea.fr
  92. acl brim dstdomain .app.gl
  93. acl brim dstdomain .brimhf.is
  94. acl trend dstdomain .trendmicro.com
  95. acl trend dstdomain 212.30.237.3
  96.  
  97. http_access allow brim
  98. http_access allow sendlingur
  99. http_access allow trend
  100. http_access allow logmein
  101.  
  102. acl windowsupdate dstdomain .microsoft.com
  103. acl windowsupdate dstdomain .windowsupdate.com
  104. acl office dstdomain .office.com
  105. acl office dstdomain .office.net
  106. acl office dstdomain .live.com
  107. acl windowsupdate dstdomain .windows.com
  108.  
  109. acl CONNECT method CONNECT
  110. acl wuCONNECT dstdomain .microsoft.com
  111.  
  112. http_access allow CONNECT wuCONNECT
  113. http_access allow windowsupdate
  114. http_access allow office
  115.  
  116. #chat fb
  117. acl chfb dstdomain .chat.facebook.com
  118. acl chfb dstdomain .messenger.com
  119. acl chfb dstdomain b-graph.facebook.com
  120. acl chfb dstdomain b-api.facebook.com
  121. acl chfb dstdomain graph.facebook.com
  122. acl chfb dstdomain edge-mqtt.facebook.com
  123. acl chfb dstdomain api.facebook.com
  124. http_access allow chfb
  125.  
  126. #sjvarp
  127. acl sjovarp dstdomain .sjovarp.is
  128. acl sjovarp dstdomain 192.168.1.240
  129. http_access allow sjovarp
  130.  
  131. ################
  132.  
  133. # TEAMVIEWER
  134. acl teamv dstdomain .teamviewer.com
  135. http_access allow teamv
  136.  
  137.  
  138. http_access allow manager localhost
  139. http_access deny manager
  140. http_access allow purge localhost
  141. http_access deny purge
  142. http_access deny !Safe_ports
  143. http_access deny CONNECT !SSL_ports
  144.  
  145. acl password proxy_auth REQUIRED
  146. http_access allow password
  147. http_access allow localhost
  148. http_access deny all
  149.  
  150. http_reply_access allow all
  151.  
  152. icp_access deny all
  153.  
  154. cache_mgr radiomidun@radiomidun.is
  155. visible_hostname none
  156.  
  157. cachemgr_passwd oksod10 all
  158.  
  159. # Leave coredumps in the first cache dir
  160. coredump_dir /var/spool/squid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement