Squid Server


Published on

This Ppt contains some details about squid server,
Linux must see it once.

Published in: Technology
  • Be the first to comment

Squid Server

  1. 1. What is Squid?
  2. 2. Other proxies
  3. 3. What is a proxy?
  4. 4. What is a caching proxy?
  5. 5. How proxies work (configuration)
  6. 6. Setup Proxy In Browser
  7. 7. How proxies work (user request)
  8. 8. Cacheable objects
  9. 9. Non-cacheable objects
  10. 10. Transparent proxying
  11. 11. Transparent proxying
  12. 12. Squid hardware requirements
  13. 13. ∗ 1.x and 1.NOVM.x∗ No longer supported∗ Entire cache lost if even one disk in cache fails∗ Doesn’t understand Cache-Control: tag∗ Other problems∗ Bottom line: don’t use themSquid distributions (versions)
  14. 14. ∗ 2.0, 2.1, 2.2∗ Redesigned disk storage algorithm much improved∗ Understands Cache-Control: tag∗ Better LRU/refresh rule engine∗ Supports proxy authentication∗ See documentation for full list of enhancements∗ Recommendation: 2.1 is fairly stable, but move to 2.2when 2.2STABLE releasedSquid distributions (versions)
  15. 15. ∗ acl manager proto cache_object∗ acl localhost src∗ acl managerhost src∗ acl managerhost src∗ acl managerhost src∗ acl cawtech src∗ acl cawtech-internal src∗ acl all src ACL example
  16. 16. ∗ acl SSL_ports port 443 563∗ acl gopher_ports port 70∗ acl wais_ports port 210∗ acl whois_ports port 43∗ acl www_ports port 80 81∗ acl ftp_ports port 21∗ acl Safe_ports port 1025-65535∗ acl CONNECT method CONNECT∗ acl FTP proto FTP∗ acl HTTP proto HTTP∗ acl WAIS proto WAIS∗ acl GOPHER proto GOPHER∗ acl WHOIS proto WHOISsquid.conf ACL example
  17. 17. ∗ http_access deny manager !localhost !managerhost∗ http_access deny CONNECT !SSL_ports∗ http_access deny HTTP !www_ports !Safe_ports∗ http_access deny FTP !ftp_ports !Safe_ports∗ http_access deny GOPHER !gopher_ports !Safe_ports∗ http_access deny WAIS !wais_ports !Safe_ports∗ http_access deny WHOIS !whois_ports !Safe_ports∗ http_access allow localhost∗ http_access allow cawtech∗ http_access allow cawtech-internal∗ http_access deny allsquid.conf ACL example
  18. 18. ∗ File we Edit for Sqid /etc/squid/squid.conf∗ acl mysurfers srcdomain .facebook.com∗ acl teachers src∗ acl students src∗ acl lunch time MTWHF 12:00-15:00∗ http_access deny localhost∗ http_access allow teachers∗ http_access allow students lunch time∗ http_access deny all∗ visible_hostname machine-name∗ http_port 3128∗ cache_dir ufs /var/spool/squid 1000 16 256∗ cache_access_log /var/log/squid/access.logSample proxy auto-configuration
  19. 19. Advantages of Squid
  20. 20. Advantages of Squid
  21. 21. Advantages of Squid