Advertisement
febripratama

squid config

Sep 7th, 2014
888
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. acl manager proto cache_object
  2. acl localhost src 127.0.0.1/32 ::1
  3. acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
  4. acl pepznet.co.id src 192.168.20.0/24
  5. acl SSL_ports port 443
  6. acl Safe_ports port 80 # http
  7. acl Safe_ports port 21 # ftp
  8. acl Safe_ports port 443 # https
  9. acl Safe_ports port 70 # gopher
  10. acl Safe_ports port 210 # wais
  11. acl Safe_ports port 1025-65535 # unregistered ports
  12. acl Safe_ports port 280 # http-mgmt
  13. acl Safe_ports port 488 # gss-http
  14. acl Safe_ports port 591 # filemaker
  15. acl Safe_ports port 777 # multiling http
  16. acl CONNECT method CONNECT
  17.  
  18. http_access allow manager localhost
  19. http_access deny manager
  20.  
  21. http_access deny !Safe_ports
  22.  
  23. http_access deny CONNECT !SSL_ports
  24.  
  25. #http_access deny to_localhost
  26.  
  27. #http_access allow localnet
  28. http_access allow localhost
  29. http_access allow pepznet.co.id
  30. http_access deny all
  31.  
  32. http_port 3128 transparent
  33.  
  34. hierarchy_stoplist cgi-bin ?
  35.  
  36. #cache_dir ufs /var/spool/squid 100 16 256
  37.  
  38. # Leave coredumps in the first cache dir
  39. coredump_dir /var/spool/squid
  40.  
  41. # Add any of your own refresh_pattern entries above these.
  42. refresh_pattern ^ftp: 1440 20% 10080
  43. refresh_pattern ^gopher: 1440 0% 1440
  44. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  45. refresh_pattern . 0 20% 4320
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement