Advertisement
Guest User

Untitled

a guest
Mar 28th, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. # SQUID erforderliche Minimalkonfiguration
  2. acl all src all
  3. acl manager proto cache_object
  4. acl localhost src 127.0.0.1/32
  5. acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
  6.  
  7. # Example rule allowing access from your local networks.
  8. acl localnet src 192.168.10.0/24 # RFC1918 possible internal network
  9.  
  10. # lokale Rechner freigegeben
  11. acl lokale_rechner src 192.168.10.0/255.255.255.0
  12. http_access allow lokale_rechner
  13.  
  14. acl SSL_ports port 443 # https
  15. acl SSL_ports port 563 # snews
  16. acl SSL_ports port 873 # rsync
  17. acl Safe_ports port 80 # http
  18. acl Safe_ports port 21 # ftp
  19. acl Safe_ports port 443 # https
  20. acl Safe_ports port 70 # gopher
  21. acl Safe_ports port 210 # wais
  22. acl Safe_ports port 1025-65535 # unregistered ports
  23. acl Safe_ports port 280 # http-mgmt
  24. acl Safe_ports port 488 # gss-http
  25. acl Safe_ports port 591 # filemaker
  26. acl Safe_ports port 777 # multiling http
  27. acl Safe_ports port 631 # cups
  28. acl Safe_ports port 873 # rsync
  29. acl Safe_ports port 901 # SWAT
  30. acl purge method PURGE
  31. acl CONNECT method CONNECT
  32.  
  33. http_access allow manager localhost
  34. http_access deny manager
  35.  
  36. # Only allow purge requests from localhost
  37. http_access allow purge localhost
  38. http_access deny purge
  39.  
  40. # Deny requests to unknown ports
  41. http_access deny !Safe_ports
  42.  
  43. # Deny CONNECT to other than SSL ports
  44. http_access deny CONNECT !SSL_ports
  45.  
  46. http_access deny all
  47.  
  48. #Allow ICP queries from local networks only
  49. icp_access allow localnet
  50. icp_access deny all
  51.  
  52. # verwendeter Port 3128
  53. http_port 192.168.10.1:3128 transparent
  54.  
  55. # Tag: Programmumleitung zu Squid-Guard / hier deaktiviert
  56. # redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
  57.  
  58. access_log /var/log/squid3/access.log squid
  59.  
  60. # Speicherverwaltung
  61. cache_dir ufs /var/spool/squid3 2000 16 256
  62. cache_replacement_policy heap LFUDA
  63. memory_replacement_policy heap LFUDA
  64. maximum_object_size 5000 KB
  65. maximum_object_size_in_memory 32 KB
  66. cache_mem 32 MB
  67.  
  68. cache_peer 127.0.0.1 parent 8080 0 no-query no-digest no-netdb-exchange default
  69. cache_peer_access 127.0.0.1 allow all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement