Advertisement
Guest User

PT OS X Template

a guest
Sep 24th, 2017
4,226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. # ----------------------------------------------------------------------
  2. # WARNING - do not edit this template unless you know what you are doing
  3. # ----------------------------------------------------------------------
  4.  
  5. http_port 808
  6.  
  7. # the parent cache
  8. cache_peer %PARENTPROXY% parent %PARENTPORT% 7 no-query no-digest no-netdb-exchange default
  9.  
  10. #Ini untuk memaksa DNS ke OpenDNS. Bisa dihapus atau dikasih tanda pagar (#) di depannya.
  11. dns_nameservers 8.8.8.8 8.8.4.4
  12.  
  13. # performance options
  14. pipeline_prefetch %PIPELINE_PREFETCH%
  15. cache_miss_revalidate %CACHE_MISS_REVALIDATE%
  16. read_ahead_gap %READ_AHEAD_GAP%
  17. cache_replacement_policy %CACHE_REPLACEMENT_POLICY%
  18. memory_replacement_policy %MEMORY_REPLACEMENT_POLICY%
  19.  
  20.  
  21. # disk and memory cache settings
  22. cache_dir ufs %CACHEDIR% %CACHESIZE% 16 256
  23. maximum_object_size %MAXOBJECTSIZE%
  24. cache_mem %MEMCACHESIZE%
  25. maximum_object_size_in_memory %MEMMAXOBJECTSIZE%
  26.  
  27.  
  28. # store coredumps in the first cache dir
  29. coredump_dir %CACHEDIR%
  30.  
  31.  
  32. # the hostname squid displays in error messages
  33. visible_hostname %VISIBLEHOSTNAME%
  34.  
  35.  
  36. # log & process ID file details
  37. cache_access_log stdio:%ACCESSLOG%
  38. cache_store_log stdio:%STORELOG%
  39. cache_log %CACHELOG%
  40. pid_filename %PIDFILE%
  41.  
  42.  
  43. # Squid listening port
  44. http_port %PORT%
  45.  
  46.  
  47. # Access Control lists
  48. acl manager proto cache_object
  49. acl localnet src 10.0.0.0/8
  50. acl localnet src 172.16.0.0/12
  51. acl localnet src 192.168.2.0/24
  52. acl localnet src 192.168.1.0/24
  53. acl Safe_ports port 80 # http
  54. acl Safe_ports port 21 # ftp
  55. acl Safe_ports port 443 # https
  56. acl Safe_ports port 70 # gopher
  57. acl Safe_ports port 210 # wais
  58. acl Safe_ports port 1025-65535 # unregistered ports
  59. acl Safe_ports port 280 # http-mgmt
  60. acl Safe_ports port 488 # gss-http
  61. acl Safe_ports port 591 # filemaker
  62. acl Safe_ports port 777 # multiling http
  63. acl pkgfile url_regex gs2.ww.prod.dl.playstation.net/gs2/appkgo/prod/CUSA01127_00/1/f_1818ed1e5995c6e5950f34b9c57faac61a2a63693828d6b9290e8c74e4b9d5cc/f/UP4511-CUSA01127_00-PPPPPPPPTTTTTTTT.json
  64. deny_info http://archive.org/download/studios/studios.json pkgfile
  65.  
  66. http_reply_access deny pkgfile
  67.  
  68. acl iconwall url_regex gs2.ww.prod.dl.playstation.net/gs2/appkgo/prod/CUSA01114_00/1/f_1a12093906541bc35b535b00d2b92966faf18f77e404548377e471f0f7aa8259/f/EP4511-CUSA01114_00-PPPPPPPPTTTTTTTT.json
  69. deny_info http://archive.org/download/yikes_201512/yikes.json iconwall
  70.  
  71. http_reply_access deny iconwall
  72.  
  73.  
  74. # protect web apps running on the proxy host from external users
  75. http_access deny to_localhost
  76.  
  77.  
  78. # rules for client access go here
  79. http_access allow manager localhost
  80. http_access allow localhost
  81. http_access allow localnet
  82. http_access allow all
  83. %HTTPACCESSALLOWED%
  84.  
  85.  
  86. # after allowed hosts, deny all other access to this proxy
  87. # don't list any other access settings below this point
  88. http_access deny all
  89.  
  90.  
  91. # specify which hosts have direct access (bypassing the parent proxy)
  92. %ALWAYSDIRECT%
  93. http_access deny manager
  94. http_access deny !Safe_ports
  95.  
  96.  
  97. # refresh patterns (squid-recommended)
  98. refresh_pattern ^ftp: 1440 20% 10080
  99. refresh_pattern ^gopher: 1440 0% 1440
  100. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  101. refresh_pattern . 0 20% 4320
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement