musman2015

Untitled

Aug 17th, 2020
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 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.  
  9. acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
  10. acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
  11. acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
  12.  
  13. #acl localnet src 172.30.0.0/16 # RFC1918 possible internal network
  14. acl localnet src 169.254.0.0/16 # RFC1918 possible internal network
  15. acl localnet src fc00::/7 # RFC 4193 local private network range
  16. acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
  17.  
  18. acl SSL_ports port 443
  19. acl Safe_ports port 80 # http
  20. acl Safe_ports port 21 # ftp
  21. acl Safe_ports port 443 # https
  22. acl Safe_ports port 70 # gopher
  23. acl Safe_ports port 210 # wais
  24. acl Safe_ports port 1025-65535 # unregistered ports
  25. acl Safe_ports port 280 # http-mgmt
  26. acl Safe_ports port 488 # gss-http
  27. acl Safe_ports port 591 # filemaker
  28. acl Safe_ports port 777 # multiling http
  29. acl CONNECT method CONNECT
  30.  
  31. #
  32. # Recommended minimum Access Permission configuration:
  33. #
  34.  
  35. # Only allow cachemgr access from localhost
  36. #http_access allow localhost manager
  37. #http_access deny manager
  38.  
  39. # Deny requests to certain unsafe ports
  40. #http_access deny !Safe_ports
  41.  
  42. # Deny CONNECT to other than secure SSL ports
  43. #http_access deny CONNECT !SSL_ports
  44.  
  45. # We strongly recommend the following be uncommented to protect innocent
  46. # web applications running on the proxy server who think the only
  47. # one who can access services on "localhost" is a local user
  48. #http_access deny to_localhost
  49.  
  50. #
  51. # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
  52. #
  53.  
  54. # Example rule allowing access from your local networks.
  55. # Adapt localnet in the ACL section to list your (internal) IP networks
  56. # from where browsing should be allowed
  57.  
  58. http_access allow localnet
  59. http_access allow localhost
  60.  
  61. # And finally deny all other access to this proxy
  62.  
  63. http_access allow all
  64.  
  65. # Squid normally listens to port 3128
  66.  
  67. http_port 54321
  68.  
  69. # Uncomment the line below to enable disk caching - path format is /cygdrive/<full path to cache folder>, i.e.
  70. #cache_dir aufs /cygdrive/d/squid/cache 3000 16 256
  71.  
  72.  
  73. # Leave coredumps in the first cache dir
  74. coredump_dir /var/cache/squid
  75.  
  76. # Add any of your own refresh_pattern entries above these.
  77. refresh_pattern ^ftp: 1440 20% 10080
  78. refresh_pattern ^gopher: 1440 0% 1440
  79. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  80. refresh_pattern . 0 20% 4320
  81.  
  82. dns_nameservers 8.8.8.8 172.30.10.9
  83.  
  84. max_filedescriptors 3200
  85.  
  86. tcp_outgoing_address 172.30.72.41 localnet
  87. tcp_outgoing_address 172.30.72.41
  88.  
  89.  
  90. cache_peer 172.30.10.11 parent 3128 0 default default
  91. never_direct allow all
Add Comment
Please, Sign In to add comment