Advertisement
Guest User

Squid Conf

a guest
Jul 20th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. # TAG: acl
  2. # Defining an Access List
  3. #Default:
  4. # ACLs all, manager, localhost, and to_localhost are predefined.
  5. #
  6. #
  7. # Recommended minimum configuration:
  8. #
  9. # Example rule allowing access from your local networks.
  10. # Adapt to list your (internal) IP networks from where browsing
  11. # should be allowed
  12. acl localnet src 10.10.10.0/24 # RFC1918 possible internal network
  13. acl localnet src 172.10.0.0/22 # RFC1918 possible internal network
  14. acl localnet src 172.11.0.0/22 # RFC1918 possible internal network
  15. acl localnet src 172.12.0.0/22 # RFC1918 possible internal network
  16. acl localnet src 10.13.0.0/22 # RFC1918 possible internal network
  17. acl localnet src 172.1.0.0/24 # RFC1918 possible internal network
  18.  
  19. acl SSL_ports port 443
  20. acl Safe_ports port 80 # http
  21. acl Safe_ports port 21 # ftp
  22. acl Safe_ports port 443 # https
  23. acl Safe_ports port 70 # gopher
  24. acl Safe_ports port 210 # wais
  25. acl Safe_ports port 1025-65535 # unregistered ports
  26. acl Safe_ports port 280 # http-mgmt
  27. acl Safe_ports port 488 # gss-http
  28. acl Safe_ports port 591 # filemaker
  29. acl Safe_ports port 777 # multiling http
  30. acl CONNECT method CONNECT
  31.  
  32. #
  33. # Recommended minimum Access Permission configuration:
  34. #
  35. # Deny requests to certain unsafe ports
  36. http_access deny !Safe_ports
  37.  
  38. # Deny CONNECT to other than secure SSL ports
  39. http_access deny CONNECT !SSL_ports
  40.  
  41. # Only allow cachemgr access from localhost
  42. http_access allow localhost manager
  43. http_access deny manager
  44.  
  45. # Squid normally listens to port 3128
  46. http_port 8080 transparent
  47.  
  48. # MEMORY CACHE OPTIONS
  49. # -----------------------------------------------------------------------------
  50. #Default:
  51. maximum_object_size_in_memory 5 MB
  52.  
  53. # DISK CACHE OPTIONS
  54. # -----------------------------------------------------------------------------
  55. #Default:
  56. maximum_object_size 1 GB
  57.  
  58. # Uncomment and adjust the following to add a disk cache directory.
  59. cache_dir ufs /var/spool/squid 200000 16 256
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement